Blame SPECS/python-toml.spec

bc78ef
# Disable tests on RHEL9 as to not pull in the test dependencies
bc78ef
# Specify --with tests to run the tests e.g. on EPEL
bc78ef
%bcond_with tests
bc78ef
bc78ef
%global pypi_name toml
bc78ef
%global desc TOML aims to be a minimal configuration file format that's easy to read due to \
bc78ef
obvious semantics. TOML is designed to map unambiguously to a hash table. TOML \
bc78ef
should be easy to parse into data structures in a wide variety of languages. \
bc78ef
This package loads toml file into python dictionary and dump dictionary into \
bc78ef
toml file.
bc78ef
bc78ef
Name:           python-%{pypi_name}
bc78ef
Version:        0.10.2
bc78ef
Release:        5%{?dist}
bc78ef
Summary:        Python Library for Tom's Obvious, Minimal Language
bc78ef
bc78ef
License:        MIT
bc78ef
URL:            https://pypi.python.org/pypi/%{pypi_name}
bc78ef
Source0:        %{pypi_source}
bc78ef
bc78ef
BuildArch:      noarch
bc78ef
bc78ef
BuildRequires:  python%{python3_pkgversion}-devel
bc78ef
BuildRequires:  pyproject-rpm-macros
bc78ef
bc78ef
%if %{with tests}
bc78ef
BuildRequires:  /usr/bin/toml-test
bc78ef
%endif
bc78ef
bc78ef
%description
bc78ef
%desc
bc78ef
bc78ef
bc78ef
%package -n     python%{python3_pkgversion}-%{pypi_name}
bc78ef
Summary:        %{summary}
bc78ef
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
bc78ef
bc78ef
%description -n python%{python3_pkgversion}-%{pypi_name}
bc78ef
%desc
bc78ef
bc78ef
bc78ef
%prep
bc78ef
%autosetup -p1 -n %{pypi_name}-%{version}
bc78ef
# https://github.com/uiri/toml/pull/339
bc78ef
sed -i '/pytest-cov/d' tox.ini
bc78ef
bc78ef
bc78ef
%generate_buildrequires
bc78ef
%pyproject_buildrequires %{?with_tests:-t}
bc78ef
bc78ef
bc78ef
%build
bc78ef
%pyproject_wheel
bc78ef
bc78ef
bc78ef
%install
bc78ef
%pyproject_install
bc78ef
%pyproject_save_files %{pypi_name}
bc78ef
bc78ef
bc78ef
%if %{with tests}
bc78ef
%check
bc78ef
ln -s /usr/share/toml-test/ .  # python tests require test cases here
bc78ef
%tox
bc78ef
# Also using the language independent toml-test suite to launch tests
bc78ef
ln -s /usr/share/toml-test/tests/* tests/  # toml-test requires them here
bc78ef
toml-test $(pwd)/tests/decoding_test3.sh
bc78ef
%endif
bc78ef
bc78ef
bc78ef
%files -n python%{python3_pkgversion}-%{pypi_name} -f %{pyproject_files}
bc78ef
%license LICENSE
bc78ef
%doc README.rst
bc78ef
bc78ef
bc78ef
%changelog
bc78ef
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.10.2-5
bc78ef
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
bc78ef
  Related: rhbz#1991688
bc78ef
bc78ef
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.10.2-4
bc78ef
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
bc78ef
bc78ef
* Wed Mar 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 0.10.2-3
bc78ef
- Disable tests on RHEL9 to avoid pulling in the test dependencies
bc78ef
bc78ef
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-2
bc78ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
bc78ef
bc78ef
* Mon Nov 23 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.2-1
bc78ef
- Update to 0.10.2
bc78ef
- Fixes: rhbz#1893498
bc78ef
bc78ef
* Fri Nov 13 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.1-4
bc78ef
- Don't BR pytest-cov
bc78ef
bc78ef
* Thu Sep 03 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.1-3
bc78ef
- Use pyproject-rpm-macros
bc78ef
bc78ef
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-2
bc78ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
bc78ef
bc78ef
* Fri Jun 19 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.1-1
bc78ef
- Update to 0.10.1 (#1835567)
bc78ef
bc78ef
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-8
bc78ef
- Rebuilt for Python 3.9
bc78ef
bc78ef
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-7
bc78ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
bc78ef
bc78ef
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-6
bc78ef
- Rebuilt for Python 3.8.0rc1 (#1748018)
bc78ef
bc78ef
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-5
bc78ef
- Rebuilt for Python 3.8
bc78ef
bc78ef
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-4
bc78ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bc78ef
bc78ef
* Mon Feb 11 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-3
bc78ef
- Subpackage python2-toml has been removed
bc78ef
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
bc78ef
bc78ef
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
bc78ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bc78ef
bc78ef
* Sun Nov 25 2018 Julien Enselme <jujens@jujens.eu> - 0.10.0-1
bc78ef
- Update to 0.10.0 (#1652946)
bc78ef
bc78ef
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-5
bc78ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
bc78ef
bc78ef
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.4-4
bc78ef
- Rebuilt for Python 3.7
bc78ef
bc78ef
* Wed Feb 21 2018 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 0.9.4-3
bc78ef
- Make changes to build the package for EPEL
bc78ef
bc78ef
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-2
bc78ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bc78ef
bc78ef
* Wed Dec 27 2017 Julien Enselme <jujens@jujens.eu> - 0.9.4-1
bc78ef
- Update to 0.9.4
bc78ef
bc78ef
* Tue Sep 26 2017 Julien Enselme <jujens@jujens.eu> - 0.9.3-1
bc78ef
- Update to 0.9.3
bc78ef
bc78ef
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-4
bc78ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bc78ef
bc78ef
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-3
bc78ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bc78ef
bc78ef
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.2-2
bc78ef
- Rebuild for Python 3.6
bc78ef
bc78ef
* Thu Sep 01 2016 Julien Enselme <jujens@jujens.eu> - 0.9.2-1
bc78ef
- Update to 0.9.2
bc78ef
- Improve spec with %%summary and %%desc macros
bc78ef
bc78ef
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-7
bc78ef
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
bc78ef
bc78ef
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-6
bc78ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bc78ef
bc78ef
* Wed Nov 11 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-5
bc78ef
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
bc78ef
bc78ef
* Mon Nov 9 2015 Julien Enselme <jujens@jujens.eu> - 0.9.1-4
bc78ef
- Correct %%python_provides for python3
bc78ef
bc78ef
* Thu Nov 5 2015 Julien Enselme <jujens@jujens.eu> - 0.9.1-3
bc78ef
- Rebuilt for python 3.5
bc78ef
bc78ef
* Sat Aug 8 2015 Julien Enselme <jujens@jujens.eu> - 0.9.1-2
bc78ef
- Enable tests suite
bc78ef
- Build python3 and python2 in the same directory
bc78ef
- Use %%py2_build, %%py3_build, %%py2_install and %%py2_install
bc78ef
- Move python2 package in its own subpackage
bc78ef
bc78ef
* Sat Jul 11 2015 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 0.9.1-1
bc78ef
- Update to 0.9.1 (#1242131)
bc78ef
bc78ef
* Sun Jun 28 2015 Julien Enselme <jujens@jujens.eu> - 0.9.0-2
bc78ef
- Update description to explain what toml is
bc78ef
- Try to import the package in %%check
bc78ef
bc78ef
* Mon Jun 15 2015 Julien Enselme <jujens@jujens.eu> - 0.9.0-1
bc78ef
- Initial packaging