## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 pypi_name pipcl %global module_name pipcl %bcond docs 1 %bcond tests 1 Name: python-%{pypi_name} Version: 12 Release: %autorelease Summary: Python packaging operations including PEP-517 support # Clarified by license classifier License: AGPL-3.0-only URL: https://github.com/ArtifexSoftware/pipcl Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz # alternative: %%{pypi_source %%{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %if %{with tests} # test dependencies not picked up by generator BuildRequires: gcc-c++ BuildRequires: python3dist(pytest) BuildRequires: python3dist(swig) %endif %if %{with docs} # doc dependencies BuildRequires: python3-sphinx BuildRequires: python3-sphinx-theme-alabaster BuildRequires: python3dist(autodocsumm) %endif %global _description %{expand: Python packaging operations, including PEP-517 support, for use by a script.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %if %{with docs} %package doc Summary: Documentation for python-%{pypi_name} BuildArch: noarch %description doc python-%{pypi_name}-doc contains documentation for %{pypi_name} %endif %prep %autosetup -n %{pypi_name}-%{version} -p 1 # do not run pip over the internet sed -i -e '/pip install/d' docs/conf.py tests/test_doctest.py %generate_buildrequires %pyproject_buildrequires -R %build %pyproject_wheel %if %{with docs} export PYTHONPATH=%{_pyproject_wheeldir}/%{pypi_name}-%{version}-py3-none-any.whl sphinx-build -M html docs docs/_build %endif %install %pyproject_install %pyproject_save_files -L %{module_name} %check %pyproject_check_import %if %{with tests} # do not run linters during build check # test_change_versions and test_project use piprepo (not packaged) %pytest -k "not test_lint and not test_change_versions and not test_project" %endif %files -n python3-%{pypi_name} -f %{pyproject_files} %license COPYING %if %{with docs} %files doc %license COPYING %doc docs/_build/* README.rst %endif %changelog ## START: Generated by rpmautospec * Thu Jul 09 2026 Michael J Gruber - 12-1 - rebase to upstream v12 (rhbz#2498428) * Thu Jul 02 2026 Michael J Gruber - 11-2 - Initial import (fedora#2462581) * Thu Jul 02 2026 Michael J Gruber - 11-1 - rebase to upstream v11 * Thu Jul 02 2026 Michael J Gruber - 10-1 - rebase to upstream v10 * Thu Jul 02 2026 Michael J Gruber - 9-2 - fix usage with non-git checkout * Thu Jul 02 2026 Michael J Gruber - 9-1 - rebase to upstream v9 * Thu Jul 02 2026 Michael J Gruber - 8-1 - rebase to upstream v8 * Thu Jul 02 2026 Michael J Gruber - 7-2 - ensure that sphinx-autodoc can import the module * Thu Jul 02 2026 Michael J Gruber - 7-1 - rebase to upstream v7 * Thu Jul 02 2026 Michael J Gruber - 2-5 - err on the safe side for license * Thu Jul 02 2026 Michael J Gruber - 2-4 - enable more tests * Thu Jul 02 2026 Michael J Gruber - 2-3 - autodocsumm is landing in Fedora * Thu Jul 02 2026 Michael J Gruber - 2-2 - conditionally build docs * Thu Jul 02 2026 Michael J Gruber - 2-1 - initial spec file ## END: Generated by rpmautospec