Blame SPECS/python-toml.spec

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