[packages/python-parsedatetime] - up to 2.1
arekm
arekm at pld-linux.org
Fri Dec 30 23:03:02 CET 2016
commit cd1df77b93784d4a281f2bf615705462724c2ee4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Dec 30 23:02:57 2016 +0100
- up to 2.1
fix-non-executable-script-init.patch | 8 --------
python-parsedatetime.spec | 31 ++++++++++++++-----------------
2 files changed, 14 insertions(+), 25 deletions(-)
---
diff --git a/python-parsedatetime.spec b/python-parsedatetime.spec
index e9a85e9..5f6feed 100644
--- a/python-parsedatetime.spec
+++ b/python-parsedatetime.spec
@@ -8,26 +8,31 @@
%define module parsedatetime
Summary: Parse human-readable date/time strings in Python
Name: python-%{module}
-Version: 1.5
-Release: 2
+Version: 2.1
+Release: 1
License: Apache v2.0
Group: Libraries/Python
Source0: https://github.com/bear/%{module}/archive/v%{version}/%{module}-%{version}.tar.gz
-# Source0-md5: f7b6b8258728ca9aa2ef536b3f221baf
-Patch0: fix-non-executable-script-init.patch
+# Source0-md5: 9054ba8585a94fb68f29d47c14536cc5
URL: https://github.com/bear/parsedatetime
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.713
%if %{with python2}
BuildRequires: python-modules
BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-pyicu
BuildRequires: python-test
%endif
+%endif
%if %{with python3}
BuildRequires: python3-modules
BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pyicu
BuildRequires: python3-test
%endif
+%endif
%if %{with doc}
BuildRequires: epydoc
%endif
@@ -56,20 +61,14 @@ date/time strings.
%prep
%setup -q -n %{module}-%{version}
-%patch0 -p1
-
-# Fixes spurious-executable-perm warning
-chmod 644 implementation_notes.txt
%build
%if %{with python2}
-%py_build
-%{?with_tests:%{__python} run_tests.py}
+%py_build %{?with_tests:test}
%endif
%if %{with python3}
-%py3_build
-%{?with_tests:%{__python3} run_tests.py test}
+%py3_build %{?with_tests:test}
%endif
%if %{with doc}
@@ -81,14 +80,12 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%py_install
-rm -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
%py_postclean
%endif
%if %{with python3}
%py3_install
-rm -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/%{module}/tests
%endif
%clean
@@ -97,7 +94,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc LICENSE.txt
-%doc AUTHORS.txt CHANGES.txt INSTALL.txt README.rst THANKS.txt
+%doc AUTHORS.txt CHANGES.txt README.rst
%{py_sitescriptdir}/%{module}
%{py_sitescriptdir}/%{module}-%{version}-*.egg-info
@@ -105,7 +102,7 @@ rm -rf $RPM_BUILD_ROOT
%files -n python3-%{module}
%defattr(644,root,root,755)
%doc LICENSE.txt
-%doc AUTHORS.txt CHANGES.txt INSTALL.txt README.rst THANKS.txt
+%doc AUTHORS.txt CHANGES.txt README.rst
%{py3_sitescriptdir}/%{module}
%{py3_sitescriptdir}/%{module}*.egg-info
%endif
@@ -113,5 +110,5 @@ rm -rf $RPM_BUILD_ROOT
%if %{with doc}
%files doc
%defattr(644,root,root,755)
-%doc docs/ examples/ implementation_notes.txt locale_date_grouping_notes.txt
+%doc docs/ examples/
%endif
diff --git a/fix-non-executable-script-init.patch b/fix-non-executable-script-init.patch
deleted file mode 100644
index a7a00b9..0000000
--- a/fix-non-executable-script-init.patch
+++ /dev/null
@@ -1,8 +0,0 @@
-diff -up parsedatetime-1.4/parsedatetime/__init__.py.orig parsedatetime-1.4/parsedatetime/__init__.py
---- parsedatetime-1.4/parsedatetime/__init__.py.orig 2015-06-04 20:20:30.547391210 +0200
-+++ parsedatetime-1.4/parsedatetime/__init__.py 2015-06-04 20:20:36.820432846 +0200
-@@ -1,4 +1,3 @@
--#!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- # vim: sw=2 ts=2 sts=2
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-parsedatetime.git/commitdiff/cd1df77b93784d4a281f2bf615705462724c2ee4
More information about the pld-cvs-commit
mailing list