From 478f7d2d614e0c068a9f53a073599f26856edc2dd6735df9d29aef3c9b43a40e Mon Sep 17 00:00:00 2001 From: Bruno Friedmann Date: Wed, 26 Jul 2017 11:59:21 +0000 Subject: [PATCH] Accepting request 512641 from home:bruno_friedmann:branches:devel:languages:python - specfile : add line to define python-modules (fix build on Leap) OBS-URL: https://build.opensuse.org/request/show/512641 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-et_xmlfile?expand=0&rev=3 --- python-et_xmlfile.changes | 5 +++++ python-et_xmlfile.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-et_xmlfile.changes b/python-et_xmlfile.changes index fde713e..babfb2e 100644 --- a/python-et_xmlfile.changes +++ b/python-et_xmlfile.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 26 08:56:00 UTC 2017 - bruno@ioda-net.ch + +- specfile : add line to define python-modules (fix build on Leap) + ------------------------------------------------------------------- Wed Jun 7 12:56:15 UTC 2017 - bruno@ioda-net.ch diff --git a/python-et_xmlfile.spec b/python-et_xmlfile.spec index 3d68cf5..95764e9 100644 --- a/python-et_xmlfile.spec +++ b/python-et_xmlfile.spec @@ -1,7 +1,7 @@ # # spec file for package python-et_xmlfile # -# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,6 +15,8 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-et_xmlfile Version: 1.0.1 Release: 0 @@ -24,13 +26,13 @@ Group: Development/Languages/Python Url: https://pypi.python.org/pypi/et_xmlfile Source0: https://files.pythonhosted.org/packages/source/e/et_xmlfile/et_xmlfile-%{version}.tar.gz Source1: https://bitbucket.org/openpyxl/et_xmlfile/raw/8c7ad6904ebe0ff98c204a3e77d7e78528b10ffe/LICENCE.rst +BuildRequires: %{python_module base} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module lxml} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: %{python_module base} -BuildRequires: %{python_module devel} -BuildRequires: %{python_module lxml} -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} Requires: python-jdcal Requires: python-lxml >= 3.4 BuildArch: noarch @@ -76,5 +78,4 @@ cp -a %{S:1} . %{python_sitelib}/et_xmlfile-%{version}-py%{py_ver}.egg-info %{python_sitelib}/et_xmlfile/ - %changelog