]> git.pld-linux.org Git - packages/python-unicodecsv.git/commitdiff
Version: 0.14.0 auto/th/python-unicodecsv-0.14.0-1
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 1 Aug 2017 08:21:47 +0000 (10:21 +0200)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 1 Aug 2017 08:21:47 +0000 (10:21 +0200)
python-unicodecsv.spec

index 88fdd0ddaff3f6d242c81160097203499992d5b2..7ca6af54d4d459c88b5a601b3819ed46db149fb1 100644 (file)
@@ -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
This page took 0.084419 seconds and 4 git commands to generate.