## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## 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 # Building the documentation requires the furo Sphinx theme. But building furo # requires sphinx_theme_builder, which requires this package. Avoid a # dependency loop with this conditional. %bcond doc 0 Name: python-pyproject-metadata Version: 0.9.0 Release: %autorelease Summary: PEP 621 metadata parsing License: MIT URL: https://github.com/FFY00/python-pyproject-metadata VCS: git:%{url}.git Source: %{url}/archive/%{version}/pyproject-metadata-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %global _desc %{expand: Dataclass for PEP 621 metadata with support for core metadata generation. This project does not implement the parsing of pyproject.toml containing PEP 621 metadata. Instead, given a Python data structure representing PEP 621 metadata (already parsed), it will validate this input and generate a PEP 643-compliant metadata file (e.g. PKG-INFO).} %description %_desc %package -n python3-pyproject-metadata Summary: PEP 621 metadata parsing # This can be removed when F40 reaches EOL Obsoletes: python3-pep621 < 0.5 Provides: python3-pep621 = %{version}-%{release} %description -n python3-pyproject-metadata %_desc %if %{with doc} %package doc Summary: Documentation for python3-pyproject-metadata # This can be removed when F40 reaches EOL Obsoletes: python3-pep621-doc < 0.5 Provides: python3-pep621-doc = %{version}-%{release} %description doc Documentation for python3-pyproject-metadata. %endif %prep %autosetup -n pyproject-metadata-%{version} # No need to BuildRequire pytest-cov to run pytest sed -i /pytest-cov/d pyproject.toml %generate_buildrequires %pyproject_buildrequires -x test%{?with_doc:,docs} %build %pyproject_wheel %if %{with doc} # Build the documentation PYTHONPATH=$PWD/build/lib mkdir html sphinx-build -b html docs html rm -rf html/{.buildinfo,.doctrees} %endif %install %pyproject_install %pyproject_save_files pyproject_metadata %check %pytest %files -n python3-pyproject-metadata -f %{pyproject_files} %doc README.md %license LICENSE %if %{with doc} %files doc %doc html %endif %changelog ## START: Generated by rpmautospec * Wed Oct 23 2024 Lumir Balhar - 0.9.0-1 - Update to 0.9.0 (rhbz#2312092) * Fri Jul 19 2024 Fedora Release Engineering - 0.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 17 2024 Jerry James - 0.8.0-3 - Add VCS field * Fri Jun 07 2024 Python Maint - 0.8.0-2 - Rebuilt for Python 3.13 * Thu Apr 18 2024 Jerry James - 0.8.0-1 - Version 0.8.0 - Drop now unnecessary test patch - Minor spec file simplifications * Fri Jan 26 2024 Fedora Release Engineering - 0.7.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.7.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Miro HronĨok - 0.7.1-3 - Drop an unused build requirement on pytest-cov * Tue Jun 13 2023 Python Maint - 0.7.1-2 - Rebuilt for Python 3.12 * Thu Feb 23 2023 Jerry James - 0.7.1-1 - Dynamically generate BuildRequires * Mon Jan 30 2023 Jerry James - 0.7.1-1 - Version 0.7.1 - Drop packaging workaround, resolved upstream * Fri Jan 20 2023 Fedora Release Engineering - 0.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jan 18 2023 Jerry James - 0.7.0-2 - Work around FTI due to version of packaging (rhbz#2161981) * Tue Jan 17 2023 Jerry James - 0.7.0-1 - Version 0.7.0 * Tue Jul 26 2022 Jerry James - 0.6.1-1 - Initial RPM, obsoleting python-pep621 ## END: Generated by rpmautospec