Hello community, here is the log from the commit of package python-imagesize for openSUSE:Factory checked in at 2017-04-19 18:07:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-imagesize (Old) and /work/SRC/openSUSE:Factory/.python-imagesize.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-imagesize" Wed Apr 19 18:07:54 2017 rev:3 rq:485965 version:0.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-imagesize/python-imagesize.changes 2017-03-16 09:34:13.140908715 +0100 +++ /work/SRC/openSUSE:Factory/.python-imagesize.new/python-imagesize.changes 2017-04-19 18:07:55.566452077 +0200 @@ -1,0 +2,5 @@ +Wed Apr 5 05:39:41 UTC 2017 - tbechtold@suse.com + +- Fix python_module macro definition + +------------------------------------------------------------------- @@ -4,0 +10,5 @@ + +------------------------------------------------------------------- +Mon Dec 19 15:51:22 UTC 2016 - jmatejek@suse.com + +- update for multipython build ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-imagesize.spec ++++++ --- /var/tmp/diff_new_pack.4slcsa/_old 2017-04-19 18:07:56.254354770 +0200 +++ /var/tmp/diff_new_pack.4slcsa/_new 2017-04-19 18:07:56.258354204 +0200 @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-imagesize Version: 0.7.1 Release: 0 @@ -24,11 +25,14 @@ Group: Development/Languages/Python Url: https://github.com/shibukawa/imagesize_py Source: https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-%{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 BuildArch: noarch +%python_subpackages + %description Pure Python library which parses image files' header and returns the image size. @@ -42,12 +46,12 @@ %setup -q -n imagesize-%{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,-) %{python_sitelib}/* %doc README.rst