Hello community, here is the log from the commit of package python-unicodecsv for openSUSE:Factory checked in at 2017-04-20 20:53:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-unicodecsv (Old) and /work/SRC/openSUSE:Factory/.python-unicodecsv.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-unicodecsv" Thu Apr 20 20:53:12 2017 rev:3 rq:487701 version:0.14.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-unicodecsv/python-unicodecsv.changes 2017-01-12 15:58:05.608361866 +0100 +++ /work/SRC/openSUSE:Factory/.python-unicodecsv.new/python-unicodecsv.changes 2017-04-20 20:53:13.320688244 +0200 @@ -1,0 +2,5 @@ +Mon Apr 10 08:17:44 UTC 2017 - alarr...@suse.com + +- Use singlespec macros + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-unicodecsv.spec ++++++ --- /var/tmp/diff_new_pack.MZ4XnM/_old 2017-04-20 20:53:14.556513490 +0200 +++ /var/tmp/diff_new_pack.MZ4XnM/_new 2017-04-20 20:53:14.560512924 +0200 @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-unicodecsv Version: 0.14.1 Release: 0 @@ -24,8 +25,9 @@ Group: Development/Languages/Python Url: https://github.com/jdunck/python-unicodecsv Source: https://pypi.io/packages/source/u/unicodecsv/unicodecsv-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} @@ -33,6 +35,8 @@ BuildArch: noarch %endif +%python_subpackages + %description Python 2's csv module doesn't easily deal with unicode strings, leading to the dreaded "'ascii' codec can't encode characters @@ -45,12 +49,12 @@ %setup -q -n unicodecsv-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.rst %{python_sitelib}/*