From f223ab3fae669710ddee47986f66db686c2f2046c0ac75a070cc913585aa7ef8 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Thu, 27 Apr 2017 12:11:09 +0000 Subject: [PATCH] Accepting request 491278 from home:alarrosa:branches:devel:languages:python - Provide python-gflags in the python2 package OBS-URL: https://build.opensuse.org/request/show/491278 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gflags?expand=0&rev=16 --- python-python-gflags.changes | 5 +++++ python-python-gflags.spec | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/python-python-gflags.changes b/python-python-gflags.changes index 2a9969d..47ba813 100644 --- a/python-python-gflags.changes +++ b/python-python-gflags.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 26 16:20:48 UTC 2017 - alarrosa@suse.com + +- Provide python-gflags in the python2 package + ------------------------------------------------------------------- Tue Apr 25 21:48:26 UTC 2017 - toddrme2178@gmail.com diff --git a/python-python-gflags.spec b/python-python-gflags.spec index ff69b0d..396ec48 100644 --- a/python-python-gflags.spec +++ b/python-python-gflags.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-gflags # -# 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 @@ -16,6 +16,7 @@ # +%define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-python-gflags Version: 3.1.1 @@ -26,12 +27,16 @@ License: BSD-3-Clause Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/p/python-gflags/python-gflags-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: fdupes -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Provides: python-gflags = %{version} Obsoletes: python-gflags < %{version} +%ifpython2 +Provides: %{oldpython}-gflags = %{version} +Obsoletes: %{oldpython}-gflags < %{version} +%endif BuildArch: noarch Requires(post): update-alternatives Requires(preun): update-alternatives