3 %bcond_with tests # do perform "make test" (broken, will download dependecies)
5 %define module unicodecsv
6 Summary: Replacement for csv module which supports unicode strings without a hassle
11 Group: Development/Languages/Python
12 Source0: http://pypi.python.org/packages/source/u/unicodecsv/%{module}-%{version}.tar.gz
13 # Source0-md5: ae2aaff1c2de7b15c741ac394f75a429
14 URL: https://github.com/jdunck/python-unicodecsv
15 BuildRequires: python-setuptools
16 BuildRequires: rpmbuild(macros) >= 1.710
17 BuildRequires: rpm-pythonprov
18 Requires: python-modules
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The unicodecsv is a drop-in replacement for Python 2's csv module
24 which supports unicode strings without a hassle.
27 %setup -q -n %{module}-%{version}
30 %py_build %{?with_tests:test}
33 rm -rf $RPM_BUILD_ROOT
40 rm -rf $RPM_BUILD_ROOT
43 %defattr(644,root,root,755)
45 %dir %{py_sitescriptdir}/%{module}
46 %{py_sitescriptdir}/%{module}/*.py[co]
47 %{py_sitescriptdir}/%{module}-*.egg-info