Compare commits
No commits in common. "c9s" and "c8" have entirely different histories.
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,4 +1 @@
|
||||
/fasteners-0.9.0.tar.gz
|
||||
/fasteners-0.12.0.tar.gz
|
||||
/fasteners-0.13.0.tar.gz
|
||||
/fasteners-0.14.1.tar.gz
|
||||
SOURCES/fasteners-0.14.1.tar.gz
|
||||
|
||||
1
.python-fasteners.metadata
Normal file
1
.python-fasteners.metadata
Normal file
@ -0,0 +1 @@
|
||||
10aa9953dfab2b1dc07a1baebb079360b6b92e1a SOURCES/fasteners-0.14.1.tar.gz
|
||||
14
SOURCES/remove-testtools.patch
Normal file
14
SOURCES/remove-testtools.patch
Normal file
@ -0,0 +1,14 @@
|
||||
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
|
||||
@ -1,26 +1,52 @@
|
||||
%global pypi_name fasteners
|
||||
|
||||
%if 0%{?rhel} >= 8
|
||||
%bcond_with pytests
|
||||
%else
|
||||
%bcond_without pytests
|
||||
%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
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 0.14.1
|
||||
Release: 25%{?dist}
|
||||
Release: 14%{?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}}
|
||||
@ -28,79 +54,75 @@ 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
|
||||
%py3_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
|
||||
nosetests-%{python3_version}
|
||||
%endif
|
||||
%if 0%{?with_python2}
|
||||
nosetests-%{python2_version}
|
||||
%endif # with_python2
|
||||
|
||||
%if 0%{?with_python3}
|
||||
nosetests-%{python3_version}
|
||||
%endif # with_python3
|
||||
|
||||
%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
|
||||
* 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
|
||||
* Tue Jun 19 2018 Petr Viktorin <pviktori@redhat.com> - 0.14.1-14
|
||||
- Drop the python-testtools build dependency
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
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 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
|
||||
* Tue Jun 05 2018 Troy Dawson <tdawson@redhat.com> - 0.14.1-13
|
||||
- Do not do python2 in RHEL8
|
||||
|
||||
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.14.1-12
|
||||
- Update Python 2 dependency declarations to new packaging standards
|
||||
Loading…
Reference in New Issue
Block a user