[packages/python-monotonic] - updated to 1.5
qboosh
qboosh at pld-linux.org
Mon Jan 6 21:54:27 CET 2020
commit e1a75b88d92e2df18f2160f8e75c3f140bea849d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jan 6 21:54:22 2020 +0100
- updated to 1.5
python-monotonic.spec | 45 +++++++++++++++++++++++++++++++++------------
1 file changed, 33 insertions(+), 12 deletions(-)
---
diff --git a/python-monotonic.spec b/python-monotonic.spec
index 457b450..bfff237 100644
--- a/python-monotonic.spec
+++ b/python-monotonic.spec
@@ -3,24 +3,28 @@
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
-Summary: An implementation of time.monotonic() for Python 2 & < 3.3
+Summary: An implementation of time.monotonic() for Python 2
+Summary(pl.UTF-8): Implementacja time.monotinic() dla Pythona 2
Name: python-monotonic
-Version: 1.3
-Release: 3
-License: Apache
+Version: 1.5
+Release: 1
+License: Apache v2.0
Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/monotonic/
Source0: https://files.pythonhosted.org/packages/source/m/monotonic/monotonic-%{version}.tar.gz
-# Source0-md5: 34351251d1a67667a25cd7673d2e44bf
-URL: https://pypi.python.org/pypi/monotonic
+# Source0-md5: 9f81cb0e5966479754453dea2b6822f4
+URL: https://pypi.org/project/monotonic/
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with python2}
+BuildRequires: python-modules >= 1:2.5
BuildRequires: python-setuptools
%endif
%if %{with python3}
+BuildRequires: python3-modules >= 1:3.2
BuildRequires: python3-setuptools
%endif
-Requires: python-modules
+Requires: python-modules >= 1:2.5
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -33,11 +37,18 @@ from the standard library. On older versions, it will fall back to an
equivalent implementation.
%description -l pl.UTF-8
+Ten moduł udostępnia funkcję monotonic(), zwracającą wartość (w
+ułamkach sekundy) zegara, który nigdy się nie cofa.
+
+Dla Pythona 3.3 lub nowszego monotonic będzie aliasem dla funkcji
+time.monotonic z biblioteki standardowej. Dla starszych wersji
+odwołuje się do równoważnej implementacji.
%package -n python3-monotonic
-Summary: An implementation of time.monotonic() for Python 2 & < 3.3
+Summary: An implementation of time.monotonic() for Python < 3.3
+Summary(pl.UTF-8): Implementacja time.monotinic() dla Pythona < 3.3
Group: Libraries/Python
-Requires: python3-modules
+Requires: python3-modules >= 1:3.2
%description -n python3-monotonic
This module provides a monotonic() function which returns the value
@@ -47,16 +58,24 @@ On Python 3.3 or newer, monotonic will be an alias of time.monotonic
from the standard library. On older versions, it will fall back to an
equivalent implementation.
+%description -n python3-monotonic -l pl.UTF-8
+Ten moduł udostępnia funkcję monotonic(), zwracającą wartość (w
+ułamkach sekundy) zegara, który nigdy się nie cofa.
+
+Dla Pythona 3.3 lub nowszego monotonic będzie aliasem dla funkcji
+time.monotonic z biblioteki standardowej. Dla starszych wersji
+odwołuje się do równoważnej implementacji.
+
%prep
%setup -q -n monotonic-%{version}
%build
%if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
%endif
%if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
%endif
%install
@@ -78,6 +97,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
+%doc README.md
%{py_sitescriptdir}/monotonic.py[co]
%{py_sitescriptdir}/monotonic-%{version}-py*.egg-info
%endif
@@ -85,7 +105,8 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%files -n python3-monotonic
%defattr(644,root,root,755)
+%doc README.md
%{py3_sitescriptdir}/monotonic.py
-%{py3_sitescriptdir}/__pycache__/*
+%{py3_sitescriptdir}/__pycache__/monotonic.cpython-*.py[co]
%{py3_sitescriptdir}/monotonic-%{version}-py*.egg-info
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-monotonic.git/commitdiff/e1a75b88d92e2df18f2160f8e75c3f140bea849d
More information about the pld-cvs-commit
mailing list