python-pytoml/python-pytoml.spec

85 lines
2.4 KiB
RPMSpec
Raw Normal View History

2019-12-14 21:12:51 +08:00
%global github_name pytoml
Name: python-%{github_name}
Version: 0.1.18
Release: 7
2019-12-14 21:12:51 +08:00
Summary: Parser for TOML
License: MIT
URL: https://github.com/avakar/%{github_name}
Source0: https://github.com/avakar/%{github_name}/archive/v%{version}/%{github_name}-%{version}.tar.gz
Patch0: Add-.vscode-and-.pytest_cache-to-.gitignore.patch
2023-10-31 09:56:30 +08:00
Patch1: Fix-datetime-serialization.patch
Patch2: Reject-invalid-escapes-in-strings.patch
Patch3: Avoid-annoying-SystemExit-breaks-in-vscode.patch
Patch4: Add-a-decoder-implementing-the-toml-test-protocol.patch
2019-12-14 21:12:51 +08:00
BuildArch: noarch
%global my_description \
This package aims at being a specs-conforming and\
strict parser and writer for TOML files.
%description
%{my_description}
%package -n python2-%{github_name}
Summary: %{summary}
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%{?python_provide:%python_provide python2-%{github_name}}
%description -n python2-%{github_name}
%{my_description}
%package -n python3-%{github_name}
Summary: %{summary}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%{?python_provide:%python_provide python3-%{github_name}}
%description -n python3-%{github_name}
%{my_description}
%prep
%autosetup -p1 -n %{github_name}-%{version}
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%files -n python2-%{github_name}
%doc README.md
%license LICENSE
%{python2_sitelib}/%{github_name}-%{version}*-py%{python2_version}.egg-info/
%{python2_sitelib}/%{github_name}/
%files -n python3-%{github_name}
%doc README.md
%license LICENSE
%{python3_sitelib}/%{github_name}-%{version}*-py%{python3_version}.egg-info/
%{python3_sitelib}/%{github_name}/
%changelog
* Wed Dec 27 2023 fandehui <fandehui@xfusion.com> - 0.1.18-7
- Add a decoder implementing the `toml-test` protocol
* Mon Dec 11 2023 fandehui <fandehui@xfusion.com> - 0.1.18-6
- Avoid annoying SystemExit breaks in vscode
* Fri Nov 24 2023 fandehui <fandehui@xfusion.com> - 0.1.18-5
- Fixes `invalid-escape` test.
2023-10-31 09:56:30 +08:00
* Tue Nov 14 2023 fandehui <fandehui@xfusion.com> - 0.1.18-4
- Fix-datetime-serialization.patch
* Fri Nov 3 2023 fandehui <fandehui@xfusion.com> - 0.1.18-3
- Add .vscode and .pytest_cache to .gitignore
2019-12-14 21:12:51 +08:00
* Tue Dec 3 2019 mengxian <mengxian@huawei.com> - 0.1.18-2
- Package init