diff --git a/fasteners-monotonic.patch b/fasteners-monotonic.patch index c12d450..be2f767 100644 --- a/fasteners-monotonic.patch +++ b/fasteners-monotonic.patch @@ -1,7 +1,6 @@ -diff --git a/fasteners/_utils.py b/fasteners/_utils.py -index c5418d7..e0eff38 100644 ---- a/fasteners/_utils.py -+++ b/fasteners/_utils.py +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 @@ -14,3 +13,18 @@ index c5418d7..e0eff38 100644 # 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 7e8f0dc..5332ada 100644 --- a/python-fasteners.spec +++ b/python-fasteners.spec @@ -6,7 +6,7 @@ Name: python-%{pypi_name} Version: 0.14.1 -Release: 9%{?dist} +Release: 10%{?dist} Summary: A python package that provides useful locks License: ASL 2.0 @@ -99,6 +99,9 @@ nosetests-%{python3_version} %changelog +* Wed Jan 17 2018 Igor Gnatenko - 0.14.1-10 +- Fix monotonic req on py3 + * Thu Jul 27 2017 Fedora Release Engineering - 0.14.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild