diff --git a/fasteners-0.14.1.tar.gz b/fasteners-0.14.1.tar.gz index 39ddd221b95496cfcc642c382af9b944e73429b9..c8288aadff8d6dfb396bf94e3d48a0b5866670d6 100644 Binary files a/fasteners-0.14.1.tar.gz and b/fasteners-0.14.1.tar.gz differ diff --git a/fasteners-monotonic.patch b/fasteners-monotonic.patch deleted file mode 100644 index be2f767aec038bbc35a9249c5e987ee019a962ae..0000000000000000000000000000000000000000 --- a/fasteners-monotonic.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff -uNr fasteners-0.14.1.orig/fasteners/_utils.py fasteners-0.14.1/fasteners/_utils.py ---- fasteners-0.14.1.orig/fasteners/_utils.py 2015-11-13 07:46:46.000000000 +0100 -+++ fasteners-0.14.1/fasteners/_utils.py 2018-01-17 17:42:58.715726344 +0100 -@@ -19,7 +19,10 @@ - import logging - import time - --from monotonic import monotonic as now # noqa -+try: -+ from time import monotonic as now -+except ImportError: -+ from monotonic import monotonic as now - - # log level for low-level debugging - BLATHER = 5 -diff -uNr fasteners-0.14.1.orig/setup.py fasteners-0.14.1/setup.py ---- fasteners-0.14.1.orig/setup.py 2015-11-13 07:46:46.000000000 +0100 -+++ fasteners-0.14.1/setup.py 2018-01-17 17:50:26.654085344 +0100 -@@ -26,8 +26,10 @@ - - install_requires = [ - 'six', -- 'monotonic>=0.1', - ] -+import sys -+if sys.version_info < (3, 3, 0): -+ install_requires += ['monotonic>=0.1'] - - setup( - name='fasteners', diff --git a/python-fasteners.spec b/python-fasteners.spec index aa3b3500772bee0572243630ba2340a20407de9d..b7b3fa89d2e2c6187c189fbcd5182e5b99c2eb10 100644 --- a/python-fasteners.spec +++ b/python-fasteners.spec @@ -1,62 +1,71 @@ -%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: 20%{?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 -BuildArch: noarch - +%global _empty_manifest_terminate_build 0 +Name: python-fasteners +Version: 0.14.1 +Release: 1 +Summary: A python package that provides useful locks. +License: ASL 2.0 +URL: https://github.com/harlowja/fasteners +Source0: https://files.pythonhosted.org/packages/f4/6f/41b835c9bf69b03615630f8a6f6d45dafbec95eb4e2bb816638f043552b2/fasteners-0.14.1.tar.gz +BuildArch: noarch %description -A python package that provides useful locks. - - -%package -n python3-%{pypi_name} -Summary: A python package that provides useful locks -%{?python_provide:%python_provide python3-%{pypi_name}} - -BuildRequires: python3-six -BuildRequires: python3-devel -# tests -BuildRequires: python3-testtools -BuildRequires: python3-nose -Requires: python3-six - -%description -n python3-%{pypi_name} -A python package that provides useful locks. - +Fasteners Overview A python package that provides useful locks. + +%package -n python2-fasteners +Summary: A python package that provides useful locks. +Provides: python2-fasteners +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-six +Requires: python2-monotonic +%description -n python2-fasteners +Fasteners Overview A python package that provides useful locks. + +%package help +Summary: Development documents and examples for fasteners +Provides: python2-fasteners-doc +%description help +Fasteners Overview A python package that provides useful locks. %prep -%autosetup -p1 -n %{pypi_name}-%{version} - +%autosetup -n fasteners-0.14.1 %build -%py3_build - +%py2_build %install -%py3_install - -%check -nosetests-%{python3_version} - -%files -n python3-%{pypi_name} -%doc README.rst -%license LICENSE -%{python3_sitelib}/%{pypi_name}/ -%{python3_sitelib}/%{pypi_name}-*.egg-info/ - +%py2_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python2-fasteners -f filelist.lst +%dir %{python2_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog -* Fri Oct 30 2020 jiangxinyu - 0.14.1-21 -- Init python3-fasteners project +* Tue May 11 2021 OpenStack_SIG +- Package Spec generated