#
# 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)
%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
%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