[packages/python-pytz] verify olson version match

glen glen at pld-linux.org
Mon Oct 17 22:49:21 CEST 2016


commit 59e720fb8321462d2c9ebe8911cc0c87f283a9d2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Oct 17 23:48:27 2016 +0300

    verify olson version match

 python-pytz.spec | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/python-pytz.spec b/python-pytz.spec
index 412f993..5f90f6b 100644
--- a/python-pytz.spec
+++ b/python-pytz.spec
@@ -76,6 +76,9 @@ przy użyciu Pythona 3.x
 %patch0 -p1
 
 %build
+v=$(sed -rne "s/^OLSON_VERSION = '(.+)'/\1/p" pytz/__init__.py)
+test "$v" = "%{olsonver}"
+
 %if %{with python2}
 %py_build
 %py_lint
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pytz.git/commitdiff/fa19a5fc1f8f382ca6fee37490b0473c50406acf



More information about the pld-cvs-commit mailing list