Compare commits
No commits in common. "c8" and "c9s" have entirely different histories.
5
.gitignore
vendored
5
.gitignore
vendored
@ -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
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
10aa9953dfab2b1dc07a1baebb079360b6b92e1a SOURCES/fasteners-0.14.1.tar.gz
|
|
||||||
@ -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
|
|
||||||
@ -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
|
%global pypi_name fasteners
|
||||||
|
|
||||||
|
%if 0%{?rhel} >= 8
|
||||||
|
%bcond_with pytests
|
||||||
|
%else
|
||||||
|
%bcond_without pytests
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 0.14.1
|
Version: 0.14.1
|
||||||
Release: 14%{?dist}
|
Release: 25%{?dist}
|
||||||
Summary: A python package that provides useful locks
|
Summary: A python package that provides useful locks
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/harlowja/fasteners
|
URL: https://github.com/harlowja/fasteners
|
||||||
Source0: https://codeload.github.com/harlowja/fasteners/tar.gz/%{version}#/%{pypi_name}-%{version}.tar.gz
|
Source0: https://codeload.github.com/harlowja/fasteners/tar.gz/%{version}#/%{pypi_name}-%{version}.tar.gz
|
||||||
Patch0: fasteners-monotonic.patch
|
Patch0: fasteners-monotonic.patch
|
||||||
Patch1: remove-testtools.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A python package that provides useful locks.
|
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}
|
%package -n python3-%{pypi_name}
|
||||||
Summary: A python package that provides useful locks
|
Summary: A python package that provides useful locks
|
||||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||||
@ -54,75 +28,79 @@ Summary: A python package that provides useful locks
|
|||||||
BuildRequires: python3-six
|
BuildRequires: python3-six
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
# tests
|
# tests
|
||||||
|
%if %{with pytests}
|
||||||
|
BuildRequires: python3-testtools
|
||||||
BuildRequires: python3-nose
|
BuildRequires: python3-nose
|
||||||
|
|
||||||
Requires: python3-six
|
Requires: python3-six
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n python3-%{pypi_name}
|
%description -n python3-%{pypi_name}
|
||||||
A python package that provides useful locks.
|
A python package that provides useful locks.
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{pypi_name}-%{version}
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?with_python2}
|
|
||||||
%py2_build
|
|
||||||
%endif # with_python2
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?with_python2}
|
|
||||||
%py2_install
|
|
||||||
%endif # with_python2
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
|
%if %{with pytests}
|
||||||
%check
|
%check
|
||||||
%if 0%{?with_python2}
|
|
||||||
nosetests-%{python2_version}
|
|
||||||
%endif # with_python2
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
nosetests-%{python3_version}
|
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}
|
%files -n python3-%{pypi_name}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/%{pypi_name}/
|
%{python3_sitelib}/%{pypi_name}/
|
||||||
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jun 19 2018 Petr Viktorin <pviktori@redhat.com> - 0.14.1-14
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.14.1-25
|
||||||
- Drop the python-testtools build dependency
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
The testtools module adds some extensions to unittest, but none of these
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-24
|
||||||
extensions are actually used in python-fasteners tests (or they've been
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
added back to unittest years ago, and thus aren't extensions any more).
|
|
||||||
|
|
||||||
* Tue Jun 05 2018 Troy Dawson <tdawson@redhat.com> - 0.14.1-13
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-23
|
||||||
- Do not do python2 in RHEL8
|
- 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
|
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.14.1-12
|
||||||
- Update Python 2 dependency declarations to new packaging standards
|
- Update Python 2 dependency declarations to new packaging standards
|
||||||
Loading…
Reference in New Issue
Block a user