| |
@@ -2,13 +2,16 @@
|
| |
|
| |
%bcond_with bootstrap
|
| |
|
| |
- %if 0%{?fedora} || 0%{?rhel} > 7
|
| |
- %global do_test 0
|
| |
+ %if 0%{?fedora}
|
| |
+ %bcond_without tests
|
| |
+ %else
|
| |
+ # EPEL does not have the necessary testing dependencies
|
| |
+ %bcond_with tests
|
| |
%endif
|
| |
|
| |
Name: python-%{pypi_name}
|
| |
- Version: 5.6.0
|
| |
- Release: 2%{?dist}
|
| |
+ Version: 5.9.0
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Python Build Reasonableness
|
| |
|
| |
License: ASL 2.0
|
| |
@@ -38,15 +41,18 @@
|
| |
|
| |
BuildRequires: python%{python3_pkgversion}-devel
|
| |
BuildRequires: python%{python3_pkgversion}-setuptools
|
| |
- %if 0%{?do_test} == 1
|
| |
- BuildRequires: python%{python3_pkgversion}-coverage
|
| |
+ %if %{with tests}
|
| |
+ BuildRequires: gcc
|
| |
+ BuildRequires: gnupg
|
| |
+ BuildRequires: python%{python3_pkgversion}-fixtures
|
| |
BuildRequires: python%{python3_pkgversion}-hacking
|
| |
- BuildRequires: python%{python3_pkgversion}-mock
|
| |
+ BuildRequires: python%{python3_pkgversion}-six
|
| |
+ BuildRequires: python%{python3_pkgversion}-stestr
|
| |
BuildRequires: python%{python3_pkgversion}-testrepository
|
| |
BuildRequires: python%{python3_pkgversion}-testresources
|
| |
BuildRequires: python%{python3_pkgversion}-testscenarios
|
| |
- BuildRequires: gcc
|
| |
- BuildRequires: gnupg
|
| |
+ BuildRequires: python%{python3_pkgversion}-virtualenv
|
| |
+ BuildRequires: python%{python3_pkgversion}-wheel
|
| |
%endif
|
| |
Requires: python%{python3_pkgversion}-setuptools
|
| |
Requires: git-core
|
| |
@@ -58,7 +64,7 @@
|
| |
Manage dynamic plugins for Python applications
|
| |
|
| |
%prep
|
| |
- %autosetup -n %{pypi_name}-%{version} -S git
|
| |
+ %autosetup -n %{pypi_name}-%{version} -p1
|
| |
|
| |
rm -rf {test-,}requirements.txt pbr.egg-info/requires.txt
|
| |
|
| |
@@ -82,23 +88,40 @@
|
| |
ln -s ./pbr-3 %{buildroot}%{_bindir}/pbr
|
| |
|
| |
|
| |
- %if 0%{?do_test}
|
| |
+ %if %{with tests}
|
| |
%check
|
| |
- %{__python3} setup.py test
|
| |
+ export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
| |
+ export PYTHONDONTWRITEBYTECODE=1
|
| |
+ export PATH="%{buildroot}%{_bindir}:${PATH}"
|
| |
+ # Exclude tests that require networking
|
| |
+ stestr run -E 'test_requirement_parsing|test_pep_517_support'
|
| |
%endif
|
| |
|
| |
%files -n python%{python3_pkgversion}-pbr
|
| |
%license LICENSE
|
| |
- %doc README.rst
|
| |
- %if %{without bootstrap}
|
| |
- %doc html README.rst
|
| |
- %endif
|
| |
+ %doc README.rst %{?without_bootstrap:html}
|
| |
%{_bindir}/pbr
|
| |
%{_bindir}/pbr-3
|
| |
- %{python3_sitelib}/*.egg-info/
|
| |
+ %{python3_sitelib}/%{pypi_name}-*.egg-info/
|
| |
%{python3_sitelib}/%{pypi_name}/
|
| |
|
| |
%changelog
|
| |
+ * Sat Jul 23 2022 Maxwell G <gotmax@e.email> - 5.9.0-1
|
| |
+ - Update to 5.9.0. Fixes rhbz#2020182.
|
| |
+ - Re-enable unit tests
|
| |
+
|
| |
+ * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-6
|
| |
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
| |
+
|
| |
+ * Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 5.6.0-5
|
| |
+ - Rebuilt for Python 3.11
|
| |
+
|
| |
+ * Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 5.6.0-4
|
| |
+ - Bootstrap for Python 3.11
|
| |
+
|
| |
+ * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-3
|
| |
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
| |
+
|
| |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-2
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
| |
|
| |