diff --git a/python-imagesize.changes b/python-imagesize.changes index b3d417f..94af7d0 100644 --- a/python-imagesize.changes +++ b/python-imagesize.changes @@ -1,8 +1,18 @@ +------------------------------------------------------------------- +Wed Apr 5 05:39:41 UTC 2017 - tbechtold@suse.com + +- Fix python_module macro definition + ------------------------------------------------------------------- Sat Mar 11 17:07:00 UTC 2017 - jengelh@inai.de - Typographic corrections to descriptions +------------------------------------------------------------------- +Mon Dec 19 15:51:22 UTC 2016 - jmatejek@suse.com + +- update for multipython build + ------------------------------------------------------------------- Sun May 29 10:31:23 UTC 2016 - michael@stroeder.com diff --git a/python-imagesize.spec b/python-imagesize.spec index 9799ffa..5b01de5 100644 --- a/python-imagesize.spec +++ b/python-imagesize.spec @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-imagesize Version: 0.7.1 Release: 0 @@ -24,11 +25,14 @@ License: MIT 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 @@ Supported formats: %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