Blame SPECS/python-toml.spec

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