Blame SPECS/python-toml.spec

e04aee
%global pypi_name toml
e04aee
%global desc TOML aims to be a minimal configuration file format that's easy to read due to \
e04aee
obvious semantics. TOML is designed to map unambiguously to a hash table. TOML \
e04aee
should be easy to parse into data structures in a wide variety of languages. \
e04aee
This package loads toml file into python dictionary and dump dictionary into \
e04aee
toml file.
e04aee
e04aee
Name:           python-%{pypi_name}
e04aee
Version:        0.10.1
e04aee
Release:        5%{?dist}
e04aee
Summary:        Python Library for Tom's Obvious, Minimal Language
e04aee
e04aee
License:        MIT
e04aee
URL:            https://pypi.python.org/pypi/%{pypi_name}
e04aee
Source0:        %{pypi_source}
e04aee
e04aee
BuildArch:      noarch
e04aee
# Exclude i686 arch. Due to a modularity issue it's being added to the
e04aee
# x86_64 compose of CRB, but we don't want to ship it at all.
e04aee
# See: https://projects.engineering.redhat.com/browse/RCM-72605
e04aee
ExcludeArch:    i686
e04aee
e04aee
BuildRequires:  python%{python3_pkgversion}-devel
e04aee
BuildRequires:  python%{python3_pkgversion}-rpm-macros
e04aee
BuildRequires:  python%{python3_pkgversion}-setuptools
e04aee
e04aee
# RHEL: tests disabled due to missing dependencies
e04aee
%bcond_with tests
e04aee
%if %{with tests}
e04aee
BuildRequires:  python%{python3_pkgversion}-numpy
e04aee
BuildRequires:  python%{python3_pkgversion}-pytest
e04aee
BuildRequires:  /usr/bin/toml-test
e04aee
%endif
e04aee
e04aee
%description
e04aee
%desc
e04aee
e04aee
%package -n     python%{python3_pkgversion}-%{pypi_name}
e04aee
Summary:        %{summary}
e04aee
BuildRequires:  python%{python3_pkgversion}-devel
e04aee
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
e04aee
e04aee
%description -n python%{python3_pkgversion}-%{pypi_name}
e04aee
%desc
e04aee
e04aee
%prep
e04aee
%autosetup -p1 -n %{pypi_name}-%{version}
e04aee
# https://github.com/uiri/toml/pull/339
e04aee
sed -i '/pytest-cov/d' tox.ini
e04aee
e04aee
e04aee
%build
e04aee
%py3_build
e04aee
e04aee
e04aee
%install
e04aee
%py3_install
e04aee
e04aee
e04aee
%if %{with tests}
e04aee
%check
e04aee
ln -s /usr/share/toml-test/ .  # python tests require test cases here
e04aee
%pytest
e04aee
# Also using the language independent toml-test suite to launch tests
e04aee
ln -s /usr/share/toml-test/tests/* tests/  # toml-test requires them here
e04aee
toml-test $(pwd)/tests/decoding_test3.sh
e04aee
%endif
e04aee
e04aee
e04aee
%files -n python%{python3_pkgversion}-%{pypi_name}
e04aee
%license LICENSE
e04aee
%doc README.rst
e04aee
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
e04aee
%{python3_sitelib}/%{pypi_name}/
e04aee
e04aee
e04aee
%changelog
e04aee
* Tue Dec 01 2020 Tomas Orsava <torsava@redhat.com> - 0.10.1-5
e04aee
- Convert spec for python39 module in RHEL8
e04aee
- Revert usage of pyproject-rpm-macros
e04aee
- Resolves: rhbz#1877430
e04aee
e04aee
* Fri Nov 13 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.1-4
e04aee
- Don't BR pytest-cov
e04aee
e04aee
* Thu Sep 03 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.1-3
e04aee
- Use pyproject-rpm-macros
e04aee
e04aee
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-2
e04aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e04aee
e04aee
* Fri Jun 19 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.1-1
e04aee
- Update to 0.10.1 (#1835567)
e04aee
e04aee
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-8
e04aee
- Rebuilt for Python 3.9
e04aee
e04aee
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-7
e04aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e04aee
e04aee
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-6
e04aee
- Rebuilt for Python 3.8.0rc1 (#1748018)
e04aee
e04aee
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-5
e04aee
- Rebuilt for Python 3.8
e04aee
e04aee
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-4
e04aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e04aee
e04aee
* Mon Feb 11 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-3
e04aee
- Subpackage python2-toml has been removed
e04aee
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
e04aee
e04aee
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
e04aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e04aee
e04aee
* Sun Nov 25 2018 Julien Enselme <jujens@jujens.eu> - 0.10.0-1
e04aee
- Update to 0.10.0 (#1652946)
e04aee
e04aee
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-5
e04aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e04aee
e04aee
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.4-4
e04aee
- Rebuilt for Python 3.7
e04aee
e04aee
* Wed Feb 21 2018 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 0.9.4-3
e04aee
- Make changes to build the package for EPEL
e04aee
e04aee
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-2
e04aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e04aee
e04aee
* Wed Dec 27 2017 Julien Enselme <jujens@jujens.eu> - 0.9.4-1
e04aee
- Update to 0.9.4
e04aee
e04aee
* Tue Sep 26 2017 Julien Enselme <jujens@jujens.eu> - 0.9.3-1
e04aee
- Update to 0.9.3
e04aee
e04aee
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-4
e04aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e04aee
e04aee
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-3
e04aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e04aee
e04aee
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.2-2
e04aee
- Rebuild for Python 3.6
e04aee
e04aee
* Thu Sep 01 2016 Julien Enselme <jujens@jujens.eu> - 0.9.2-1
e04aee
- Update to 0.9.2
e04aee
- Improve spec with %%summary and %%desc macros
e04aee
e04aee
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-7
e04aee
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e04aee
e04aee
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-6
e04aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e04aee
e04aee
* Wed Nov 11 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-5
e04aee
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
e04aee
e04aee
* Mon Nov 9 2015 Julien Enselme <jujens@jujens.eu> - 0.9.1-4
e04aee
- Correct %%python_provides for python3
e04aee
e04aee
* Thu Nov 5 2015 Julien Enselme <jujens@jujens.eu> - 0.9.1-3
e04aee
- Rebuilt for python 3.5
e04aee
e04aee
* Sat Aug 8 2015 Julien Enselme <jujens@jujens.eu> - 0.9.1-2
e04aee
- Enable tests suite
e04aee
- Build python3 and python2 in the same directory
e04aee
- Use %%py2_build, %%py3_build, %%py2_install and %%py2_install
e04aee
- Move python2 package in its own subpackage
e04aee
e04aee
* Sat Jul 11 2015 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 0.9.1-1
e04aee
- Update to 0.9.1 (#1242131)
e04aee
e04aee
* Sun Jun 28 2015 Julien Enselme <jujens@jujens.eu> - 0.9.0-2
e04aee
- Update description to explain what toml is
e04aee
- Try to import the package in %%check
e04aee
e04aee
* Mon Jun 15 2015 Julien Enselme <jujens@jujens.eu> - 0.9.0-1
e04aee
- Initial packaging