From e11492a78091555212d7b693156249f0fe689a9cda8ee20e7a4f2f76fa3996c8 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 31 Aug 2017 22:37:01 +0000 Subject: [PATCH 1/2] Accepting request 520052 from devel:languages:python:singlespec-staging - singlespec auto-conversion - Initial package. OBS-URL: https://build.opensuse.org/request/show/520052 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wikipedia?expand=0&rev=3 --- python-wikipedia.changes | 6 ++++++ python-wikipedia.spec | 29 ++++++++++++++++------------- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/python-wikipedia.changes b/python-wikipedia.changes index c730f4a..b1940d8 100644 --- a/python-wikipedia.changes +++ b/python-wikipedia.changes @@ -1,5 +1,11 @@ +------------------------------------------------------------------- +Thu Aug 24 13:57:39 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Tue Apr 12 23:12:21 UTC 2016 - badshah400@gmail.com - Initial package. + diff --git a/python-wikipedia.spec b/python-wikipedia.spec index 9eb65dc..686a4ba 100644 --- a/python-wikipedia.spec +++ b/python-wikipedia.spec @@ -1,7 +1,7 @@ # # spec file for package python-wikipedia # -# Copyright (c) 2016 SUSE LINUX 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 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-wikipedia Version: 1.4.0 Release: 0 @@ -23,20 +24,21 @@ Summary: Wikipedia API for Python License: MIT Group: Development/Languages/Python Url: https://github.com/goldsmith/Wikipedia -Source: https://pypi.python.org/packages/source/w/wikipedia/wikipedia-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-nose -BuildRequires: python-setuptools -# REEQUIRED FOR %%check -BuildRequires: python-beautifulsoup4 -BuildRequires: python-requests +Source: https://files.pythonhosted.org/packages/source/w/wikipedia/wikipedia-%{version}.tar.gz +BuildRequires: %{python_module beautifulsoup4} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros Requires: python-beautifulsoup4 Requires: python-requests BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%python_subpackages %description -**Wikipedia** is a Python library that makes it easy to access and parse +Wikipedia is a Python library that makes it easy to access and parse data from Wikipedia. Search Wikipedia, get article summaries, get data like links and images @@ -48,15 +50,16 @@ Wikipedia data, not getting it. %setup -q -n wikipedia-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check -nosetests +ln -s tests/request_mock_data.py . +%python_exec nosetests-%{$python_bin_suffix} -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst %{python_sitelib}/* From 7f02a12d2d0126f20a3e5193847d3ca8ab02e89b400f08392773c8a488fdc2f4 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 1 Sep 2017 15:39:32 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wikipedia?expand=0&rev=4 --- python-wikipedia.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-wikipedia.spec b/python-wikipedia.spec index 686a4ba..0734b61 100644 --- a/python-wikipedia.spec +++ b/python-wikipedia.spec @@ -57,7 +57,7 @@ Wikipedia data, not getting it. %check ln -s tests/request_mock_data.py . -%python_exec nosetests-%{$python_bin_suffix} +%python_expand nosetests-%{$python_bin_suffix} %files %{python_files} %defattr(-,root,root,-)