Compare commits

..

No commits in common. "c8" and "c9s" have entirely different histories.
c8 ... c9s

6 changed files with 55 additions and 88 deletions

5
.gitignore vendored
View File

@ -1 +1,4 @@
SOURCES/fasteners-0.14.1.tar.gz
/fasteners-0.9.0.tar.gz
/fasteners-0.12.0.tar.gz
/fasteners-0.13.0.tar.gz
/fasteners-0.14.1.tar.gz

View File

@ -1 +0,0 @@
10aa9953dfab2b1dc07a1baebb079360b6b92e1a SOURCES/fasteners-0.14.1.tar.gz

View File

@ -1,14 +0,0 @@
diff -r -U3 fasteners-0.14.1-orig/fasteners/test.py fasteners-0.14.1/fasteners/test.py
--- fasteners-0.14.1-orig/fasteners/test.py 2015-11-13 07:46:46.000000000 +0100
+++ fasteners-0.14.1/fasteners/test.py 2018-06-19 13:38:10.956742064 +0200
@@ -16,8 +16,8 @@
# License for the specific language governing permissions and limitations
# under the License.
-import testtools
+import unittest
-class TestCase(testtools.TestCase):
+class TestCase(unittest.TestCase):
pass

View File

@ -1,52 +1,26 @@
%if 0%{?fedora} || 0%{?rhel} > 7
%global with_python3 1
%endif
%if 0%{?rhel} > 7
%global with_python2 0
%else
%global with_python2 1
%endif
%global pypi_name fasteners
%if 0%{?rhel} >= 8
%bcond_with pytests
%else
%bcond_without pytests
%endif
Name: python-%{pypi_name}
Version: 0.14.1
Release: 14%{?dist}
Release: 25%{?dist}
Summary: A python package that provides useful locks
License: ASL 2.0
URL: https://github.com/harlowja/fasteners
Source0: https://codeload.github.com/harlowja/fasteners/tar.gz/%{version}#/%{pypi_name}-%{version}.tar.gz
Patch0: fasteners-monotonic.patch
Patch1: remove-testtools.patch
BuildArch: noarch
%description
A python package that provides useful locks.
%if 0%{?with_python2}
%package -n python2-%{pypi_name}
Summary: A python package that provides useful locks
Obsoletes: python-%{pypi_name} < 0.13.0-3
%{?python_provide:%python_provide python2-%{pypi_name}}
BuildRequires: python2-devel
BuildRequires: python2-six
# tests
BuildRequires: python2-nose
BuildRequires: python2-monotonic
BuildRequires: python2-futures
Requires: python2-six
Requires: python2-monotonic
%description -n python2-%{pypi_name}
A python package that provides useful locks.
%endif
%if 0%{?with_python3}
%package -n python3-%{pypi_name}
Summary: A python package that provides useful locks
%{?python_provide:%python_provide python3-%{pypi_name}}
@ -54,75 +28,79 @@ Summary: A python package that provides useful locks
BuildRequires: python3-six
BuildRequires: python3-devel
# tests
%if %{with pytests}
BuildRequires: python3-testtools
BuildRequires: python3-nose
Requires: python3-six
%endif
%description -n python3-%{pypi_name}
A python package that provides useful locks.
%endif
%prep
%autosetup -p1 -n %{pypi_name}-%{version}
%build
%if 0%{?with_python2}
%py2_build
%endif # with_python2
%if 0%{?with_python3}
%py3_build
%endif # with_python3
%install
%if 0%{?with_python2}
%py2_install
%endif # with_python2
%if 0%{?with_python3}
%py3_install
%endif # with_python3
%if %{with pytests}
%check
%if 0%{?with_python2}
nosetests-%{python2_version}
%endif # with_python2
%if 0%{?with_python3}
nosetests-%{python3_version}
%endif # with_python3
%endif
%if 0%{?with_python2}
%files -n python2-%{pypi_name}
%doc README.rst
%license LICENSE
%{python2_sitelib}/%{pypi_name}/
%{python2_sitelib}/%{pypi_name}-*.egg-info/
%endif # with_python2
%if 0%{?with_python3}
%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%endif # with_python3
%changelog
* Tue Jun 19 2018 Petr Viktorin <pviktori@redhat.com> - 0.14.1-14
- Drop the python-testtools build dependency
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.14.1-25
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
The testtools module adds some extensions to unittest, but none of these
extensions are actually used in python-fasteners tests (or they've been
added back to unittest years ago, and thus aren't extensions any more).
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jun 05 2018 Troy Dawson <tdawson@redhat.com> - 0.14.1-13
- Do not do python2 in RHEL8
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-22
- Rebuilt for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jan 15 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.14.1-21
- Fix conditionals.
* Mon Jan 13 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.14.1-19
- Disable tests on EL-8
* Mon Sep 02 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-18
- Subpackage python2-fasteners has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-17
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-13
- Rebuilt for Python 3.7
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.14.1-12
- Update Python 2 dependency declarations to new packaging standards

1
sources Normal file
View File

@ -0,0 +1 @@
f641c55508d30b29eacd8c7a8785fab0 fasteners-0.14.1.tar.gz