| |
@@ -1,8 +1,8 @@
|
| |
%global modname contextlib2
|
| |
|
| |
Name: python-contextlib2
|
| |
- Version: 0.6.0.post1
|
| |
- Release: 5%{?dist}
|
| |
+ Version: 21.6.0
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Backports and enhancements for the contextlib module
|
| |
|
| |
License: Python
|
| |
@@ -35,30 +35,27 @@
|
| |
|
| |
%prep
|
| |
%setup -q -n %{modname}-%{version}
|
| |
- %if 0%{?el6}
|
| |
- %patch0 -p1 -b skip-tests-on-el6
|
| |
- %endif
|
| |
-
|
| |
- # Remove bundled egg-info in case it exists
|
| |
- rm -rf %{modname}.egg-info
|
| |
|
| |
%build
|
| |
- %{__python3} setup.py build
|
| |
+ %py3_build
|
| |
|
| |
%install
|
| |
- %{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
|
| |
+ %py3_install
|
| |
|
| |
%check
|
| |
- %{__python3} test_contextlib2.py
|
| |
+ %{__python3} -m unittest discover -t . -s test
|
| |
|
| |
%files -n python3-contextlib2
|
| |
%doc README.rst VERSION.txt NEWS.rst
|
| |
%license LICENSE.txt
|
| |
- %{python3_sitelib}/%{modname}.py*
|
| |
- %{python3_sitelib}/__pycache__/%{modname}*
|
| |
+ %{python3_sitelib}/%{modname}/
|
| |
%{python3_sitelib}/%{modname}-%{version}-*
|
| |
|
| |
%changelog
|
| |
+ * Tue Jun 14 2022 Orion Poplawski <orion@nwra.com> - 21.6.0-1
|
| |
+ - Update to 21.6.0
|
| |
+ - Modernize spec a bit
|
| |
+
|
| |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.6.0.post1-5
|
| |
- Rebuilt for Python 3.11
|
| |
|
| |