|
|
@ -1,30 +1,21 @@
|
|
|
|
%global modname attrs
|
|
|
|
# Disable tests on RHEL9 as to not pull in the test dependencies
|
|
|
|
|
|
|
|
# Specify --with tests to run the tests e.g. on EPEL
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
|
|
|
|
# Can't run tests on EPEL7 due to need for pytest >= 2.8
|
|
|
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
# Turn the tests off when bootstrapping Python, because pytest requires attrs
|
|
|
|
|
|
|
|
%bcond_with tests
|
|
|
|
%bcond_with tests
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%global modname attrs
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-attrs
|
|
|
|
Name: python-attrs
|
|
|
|
Version: 19.3.0
|
|
|
|
Version: 20.3.0
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 7%{?dist}
|
|
|
|
Summary: Python attributes without boilerplate
|
|
|
|
Summary: Python attributes without boilerplate
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: http://www.attrs.org/
|
|
|
|
URL: http://www.attrs.org/
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
|
|
|
|
|
|
|
# x86_64 compose of CRB, but we don't want to ship it at all.
|
|
|
|
|
|
|
|
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
|
|
|
|
|
|
|
ExcludeArch: i686
|
|
|
|
|
|
|
|
Source0: https://github.com/hynek/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/hynek/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
%if %{with tests}
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
@ -58,7 +49,7 @@ object protocols.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
%if %{with tests}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-%{python3_version} -v
|
|
|
|
PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 -v
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{modname}
|
|
|
|
%files -n python%{python3_pkgversion}-%{modname}
|
|
|
@ -67,11 +58,48 @@ PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-%{python3_version} -v
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 19.3.0-3
|
|
|
|
* Tue Feb 22 2022 Tomas Orsava <torsava@redhat.com> - 20.3.0-7
|
|
|
|
- Exclude unsupported i686 arch
|
|
|
|
- Add gating configuration and a simple smoke test
|
|
|
|
|
|
|
|
- Related: rhbz#1950291
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 20.3.0-6
|
|
|
|
|
|
|
|
- Add automatically generated Obsoletes tag with the python39- prefix
|
|
|
|
|
|
|
|
for smoother upgrade from RHEL8
|
|
|
|
|
|
|
|
- Related: rhbz#1990421
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 20.3.0-5
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 20.3.0-4
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 20.3.0-3
|
|
|
|
|
|
|
|
- Disable tests on RHEL9 to avoid pulling in the test dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.3.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Nov 19 2020 Lumír Balhar <lbalhar@redhat.com> - 20.3.0-1
|
|
|
|
|
|
|
|
- Update to 20.3.0 (#1894866)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 07 2020 Lumír Balhar <lbalhar@redhat.com> - 20.2.0-1
|
|
|
|
|
|
|
|
- Update to 20.2.0 (#1876063)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 27 2020 Lumír Balhar <lbalhar@redhat.com> - 20.1.0-1
|
|
|
|
|
|
|
|
- Update to 20.1.0 (#1870794)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19.3.0-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 19.3.0-4
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 19.3.0-3
|
|
|
|
|
|
|
|
- Bootstrap for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 19.3.0-2
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19.3.0-2
|
|
|
|
- Adjusted for Python 3.8 module in RHEL 8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 18 2019 Lumír Balhar <lbalhar@redhat.com> - 19.3.0-1
|
|
|
|
* Mon Nov 18 2019 Lumír Balhar <lbalhar@redhat.com> - 19.3.0-1
|
|
|
|
- New upstream version 19.3.0 (#1761701)
|
|
|
|
- New upstream version 19.3.0 (#1761701)
|
|
|
|