From e24051ac20669225f63e5fc69d90c43b8503bbca55caad5f5c0453d9028cb7da Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 21 Mar 2017 16:21:21 +0000 Subject: [PATCH] Accepting request 477100 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/477100 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-babelfish?expand=0&rev=4 --- python-babelfish.changes | 5 +++++ python-babelfish.spec | 25 ++++++++++++++----------- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/python-babelfish.changes b/python-babelfish.changes index 657f331..c5fa8a3 100644 --- a/python-babelfish.changes +++ b/python-babelfish.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 1 13:47:44 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec + ------------------------------------------------------------------- Mon Apr 25 13:27:56 UTC 2016 - aloisio@gmx.com diff --git a/python-babelfish.spec b/python-babelfish.spec index 41ec137..5b4874c 100644 --- a/python-babelfish.spec +++ b/python-babelfish.spec @@ -1,7 +1,7 @@ # # spec file for package python-babelfish # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2015 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -16,7 +16,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-babelfish Version: 0.5.5 Release: 0 @@ -26,12 +26,13 @@ Group: Development/Languages/Python Url: https://travis-ci.org/Diaoul/babelfish Source: https://pypi.python.org/packages/source/b/babelfish/babelfish-%{version}.tar.gz Source99: %{name}-rpmlintrc -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} > 1110 BuildArch: noarch -%endif +%python_subpackages %description BabelFish is a Python library to work with countries and languages. @@ -40,17 +41,19 @@ BabelFish is a Python library to work with countries and languages. %setup -q -n babelfish-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} %check -python setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst -%{python_sitelib}/* +%{python_sitelib}/babelfish +%{python_sitelib}/babelfish-%{version}-py%{py_ver}.egg-info %changelog