[packages/python-unicodecsv] Version: 0.14.0

jajcus jajcus at pld-linux.org
Tue Aug 1 10:36:18 CEST 2017


commit edf4257f2c0dafa4a7ac32795216a2af8d1754f3
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Tue Aug 1 10:21:47 2017 +0200

    Version: 0.14.0

 python-unicodecsv.spec | 33 ++++++++++++---------------------
 1 file changed, 12 insertions(+), 21 deletions(-)
---
diff --git a/python-unicodecsv.spec b/python-unicodecsv.spec
index 88fdd0d..7ca6af5 100644
--- a/python-unicodecsv.spec
+++ b/python-unicodecsv.spec
@@ -1,23 +1,21 @@
 #
 # Conditional build:
-%bcond_without	tests	# do not perform "make test"
+%bcond_with	tests	# do perform "make test" (broken, will download dependecies)
 
 %define 	module	unicodecsv
 Summary:	Replacement for csv module which supports unicode strings without a hassle
 Name:		python-%{module}
-Version:	0.9.0
-Release:	0.1
-License:	- (enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here)
+Version:	0.14.0
+Release:	1
+License:	BSD
 Group:		Development/Languages/Python
 Source0:	http://pypi.python.org/packages/source/u/unicodecsv/%{module}-%{version}.tar.gz
-# Source0-md5:	83044c801fc761ccd5722bb63b5ed952
-URL:		-
-BuildRequires:	python-distribute
-BuildRequires:	rpm-pythonprov
-# if py_postclean is used
+# Source0-md5:	ae2aaff1c2de7b15c741ac394f75a429
+URL:		https://github.com/jdunck/python-unicodecsv
+BuildRequires:	python-setuptools
 BuildRequires:	rpmbuild(macros) >= 1.710
-#Requires:		python-libs
-Requires:		python-modules
+BuildRequires:	rpm-pythonprov
+Requires:	python-modules
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -29,18 +27,13 @@ which supports unicode strings without a hassle.
 %setup -q -n %{module}-%{version}
 
 %build
-%py_build
-
-%{?with_tests:%{__python} setup.py test}
+%py_build %{?with_tests:test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%py_install
 
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%py_install
 
-%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
-%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_postclean
 
 %clean
@@ -48,9 +41,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc README.rst
 %dir %{py_sitescriptdir}/%{module}
 %{py_sitescriptdir}/%{module}/*.py[co]
-%if "%{py_ver}" > "2.4"
 %{py_sitescriptdir}/%{module}-*.egg-info
-%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-unicodecsv.git/commitdiff/edf4257f2c0dafa4a7ac32795216a2af8d1754f3



More information about the pld-cvs-commit mailing list