[packages/python-configobj] - Up to 5.0.6. Rel 1. Not packaging validate.py anymore.

matkor matkor at pld-linux.org
Mon Nov 30 15:08:08 CET 2015


commit 3fa1bbe957d06d292ab95b0d8c81040b45262272
Author: Mateusz Korniak <matkor at pld-linux.org>
Date:   Mon Nov 30 15:06:09 2015 +0100

    - Up to 5.0.6. Rel 1. Not packaging validate.py anymore.

 python-configobj.spec | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/python-configobj.spec b/python-configobj.spec
index b4284bc..922c5fa 100644
--- a/python-configobj.spec
+++ b/python-configobj.spec
@@ -1,18 +1,25 @@
+# NOTE:
+# Pollutes module namespace by
+# %{py_sitescriptdir}/_version.py*
+
+%define         module  configobj
 Summary:	Reading and writing config files
 Summary(pl.UTF-8):	Odczyt i zapis plików konfiguracyjnych
 Name:		python-configobj
-Version:	5.0.0
-Release:	3
+Version:	5.0.6
+Release:	1
 License:	MIT
 Group:		Libraries/Python
-Source0:	https://github.com/DiffSK/configobj/archive/%{version}.tar.gz
-# Source0-md5:	cb9267af109044bc74b9c2db62f9b97d
+## Source0:	https://github.com/DiffSK/configobj/archive/%{version}.tar.gz
+Source0:	https://pypi.python.org/packages/source/c/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5:	e472a3a1c2a67bb0ec9b5d54c13a47d6
 URL:		https://github.com/DiffSK/configobj
 BuildRequires:	python-devel >= 1:2.3.0
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.710
 BuildRequires:	unzip
 Requires:	python-modules
+Requires:	python-six
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -42,4 +49,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%{py_sitescriptdir}/*
+%{py_sitescriptdir}/configobj.py*
+# Import error without _version.p
+%{py_sitescriptdir}/_version.py*
+# Seems not be needed:
+## %{py_sitescriptdir}/validate.py*
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-configobj.git/commitdiff/3fa1bbe957d06d292ab95b0d8c81040b45262272



More information about the pld-cvs-commit mailing list