%global python3_pkgversion 3.11 Name: python%{python3_pkgversion}-trove-classifiers-epel Version: 2023.5.24 Release: 2%{?dist} Summary: Canonical source for classifiers on PyPI (pypi.org) License: Apache-2.0 URL: https://github.com/pypa/trove-classifiers Source: %{pypi_source trove-classifiers} # Drop dependency on calver which is not packaged in Fedora. # This patch is rebased version of upstream PR: # https://github.com/pypa/trove-classifiers/pull/126/commits/809156bb35852bcaa1c753e0165f1814f2bcedf6 Patch: Move-to-PEP-621-declarative-metadata.patch BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pip BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-wheel %global _description %{expand: Canonical source for classifiers on PyPI. Classifiers categorize projects per PEP 301. Use this package to validate classifiers in packages for PyPI upload or download. } %description %_description %package -n python%{python3_pkgversion}-trove-classifiers Summary: %{summary} %description -n python%{python3_pkgversion}-trove-classifiers %_description %prep %autosetup -p1 -n trove-classifiers-%{version} # Replace @@VERSION@@ with %%version sed -i pyproject.toml -e 's/@@VERSION@@/%{version}/' %build %python3 -c 'from setuptools.build_meta import build_wheel; build_wheel("dist")' %install %py3_install_wheel trove_classifiers-%{version}-py3-none-any.whl DISTINFO=%{buildroot}%{python3_sitelib}/trove_classifiers-%{version}.dist-info rm -rv "${DISTINFO}/RECORD" "${DISTINFO}/REQUESTED" echo rpm >"${DISTINFO}/INSTALLER" %check %pytest %files -n python%{python3_pkgversion}-trove-classifiers %doc README.* %license LICENSE %{python3_sitelib}/trove_classifiers/ %{python3_sitelib}/trove_classifiers-%{version}.dist-info/ %changelog * Wed Jun 7 2023 Maxwell G - 2023.5.24-1 - Update to 2023.5.24. Fixes rhbz#2189711. - Initial EPEL python3.11 package * Wed Apr 26 2023 Tomáš Hrnčiar - 2023.4.25-1 - Update to 2023.4.25 Fixes: rhbz#2177081 Fixes: rhbz#2187710 * Tue Feb 21 2023 Tomáš Hrnčiar - 2023.2.20-1 Initial package