forked from pool/python-wikipedia
- Use fdupes. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wikipedia?expand=0&rev=11
69 lines
2.0 KiB
RPMSpec
69 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-wikipedia
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-wikipedia
|
|
Version: 1.4.0
|
|
Release: 0
|
|
Summary: Wikipedia API for Python
|
|
License: MIT
|
|
URL: https://github.com/goldsmith/Wikipedia
|
|
Source: https://files.pythonhosted.org/packages/source/w/wikipedia/wikipedia-%{version}.tar.gz
|
|
BuildRequires: %{python_module beautifulsoup4}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-beautifulsoup4
|
|
Requires: python-requests
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
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
|
|
from a page, and more. Wikipedia wraps the `MediaWiki
|
|
API <https://www.mediawiki.org/wiki/API>`__ so you can focus on using
|
|
Wikipedia data, not getting it.
|
|
|
|
%prep
|
|
%setup -q -n wikipedia-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
ln -s tests/request_mock_data.py .
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%{python_sitelib}/wikipedia
|
|
%{python_sitelib}/wikipedia-%{version}.dist-info
|
|
|
|
%changelog
|