forked from pool/python-wikipedia
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
This commit is contained in:
@@ -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
|
Tue Apr 12 23:12:21 UTC 2016 - badshah400@gmail.com
|
||||||
|
|
||||||
- Initial package.
|
- Initial package.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-wikipedia
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-wikipedia
|
Name: python-wikipedia
|
||||||
Version: 1.4.0
|
Version: 1.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -23,20 +24,21 @@ Summary: Wikipedia API for Python
|
|||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/goldsmith/Wikipedia
|
Url: https://github.com/goldsmith/Wikipedia
|
||||||
Source: https://pypi.python.org/packages/source/w/wikipedia/wikipedia-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/w/wikipedia/wikipedia-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module beautifulsoup4}
|
||||||
BuildRequires: python-nose
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module nose}
|
||||||
# REEQUIRED FOR %%check
|
BuildRequires: %{python_module requests}
|
||||||
BuildRequires: python-beautifulsoup4
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-requests
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-beautifulsoup4
|
Requires: python-beautifulsoup4
|
||||||
Requires: python-requests
|
Requires: python-requests
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%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.
|
data from Wikipedia.
|
||||||
|
|
||||||
Search Wikipedia, get article summaries, get data like links and images
|
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}
|
%setup -q -n wikipedia-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
nosetests
|
ln -s tests/request_mock_data.py .
|
||||||
|
%python_exec nosetests-%{$python_bin_suffix}
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE README.rst
|
%doc LICENSE README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|||||||
Reference in New Issue
Block a user