## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global modname pywikibot Name: python-pywikibot Version: 10.6.0 Release: %autorelease Summary: A Python library that interfaces with the MediaWiki API # License details: # https://doc.wikimedia.org/pywikibot/stable/licenses.html (or docs/licenses.rst) License: MIT and CC-BY-SA-3.0 and BSD-3-Clause and PSF-2.0 and LicenseRef-Fedora-Public-Domain URL: https://github.com/wikimedia/pywikibot Source: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # fix import error on pyproject_check_import: pywikibot.data.mysql (optional dependency) BuildRequires: python3-PyMySQL %global _description %{expand: Pywikibot is a Python library and collection of tools that automate work on MediaWiki sites. Originally designed for Wikipedia, it is now used throughout the Wikimedia Foundation’s projects and on many other MediaWiki wikis. } %description %_description %package -n python3-%{modname} Summary: %{summary} %description -n python3-%{modname} %_description %prep %autosetup -p1 -n %{modname}-%{version} # Remove shebang from scripts which are not executable after installation. # (Otherwise rpminspect complains.) # Calling them as intended through the `pwb` executable works just fine. sed -i '/#!\/usr\/bin\/env python3$/d' pywikibot/scripts/*.py %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{modname} -l %check # py-memento-client is an optional dependency and not packaged anywhere, # therefore skipping that import %pyproject_check_import -e pywikibot.data.memento %tox %files -n python3-%{modname} -f %{pyproject_files} %doc README.* %doc ROADMAP.rst %doc HISTORY.rst %license docs/licenses.rst %license LICENSE %{_bindir}/pwb %changelog ## START: Generated by rpmautospec * Thu Oct 30 2025 David Auer - 10.6.0-2 - Forgot CC license * Thu Oct 30 2025 David Auer - 10.6.0-1 - Update and more - Update to 10.6.0 - Fix spdx tags - Add license files to files section * Thu Oct 30 2025 David Auer - 10.3.2-9 - Add documentation link * Thu Oct 30 2025 David Auer - 10.3.2-8 - Prepare readme * Wed Aug 27 2025 David Auer - 10.3.2-7 - Remove shebangs * Sat Aug 23 2025 David Auer - 10.3.2-6 - Description lines too long * Sat Aug 23 2025 David Auer - 10.3.2-5 - Ignore dev stuff * Mon Aug 18 2025 David Auer - 10.3.2-4 - Fix noarch, tests, files, cleanup * Mon Aug 18 2025 David Auer - 10.3.2-3 - Ignore build files in git * Mon Aug 18 2025 David Auer - 10.3.2-2 - Fix Source * Mon Aug 18 2025 David Auer - 10.3.2-1 - First iteration of python-pywikibot ## END: Generated by rpmautospec