From bda5a0f192221aa5b1d6993fbfbb44349c568d40235faeb6b454b0333a317a56 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 6 Apr 2017 05:40:09 +0000 Subject: [PATCH] Accepting request 485738 from devel:languages:python:singlespec - Fix python_module macro definition - update for multipython build OBS-URL: https://build.opensuse.org/request/show/485738 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagesize?expand=0&rev=5 --- python-imagesize.changes | 10 ++++++++++ python-imagesize.spec | 14 +++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) 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