## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 # upstream tests require the upstream repo, so we can't run those Name: python-setuptools-git-versioning Version: 2.0.0 Release: %autorelease Summary: Use git repo data for building a version number according PEP-440 License: MIT URL: https://setuptools-git-versioning.readthedocs.io/ Source0: https://github.com/dolfinus/setuptools-git-versioning/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch %global _description %{expand: Use git repo data (latest tag, current commit hash, etc) for building a version number according PEP 440. Features: - Can be installed & configured through both setup.py and PEP 518’s pyproject.toml - Does not require to change source code of the project - Tag-, file-, and callback-based versioning schemas are supported - Templates for tag, dev and dirty versions are separated - Templates support a lot of substitutions including git and environment information - Well-documented Limitations: - Currently the only supported VCS is Git - Only git v2 is supported - Currently does not support automatic exporting of package version to a file for runtime use (but you can use setuptools-git-versioning > file redirect instead) } %description %_description %package -n python3-setuptools-git-versioning Summary: Support for physical quantities with units, based on numpy BuildRequires: python3-devel BuildRequires: python3dist(setuptools) # man page BuildRequires: help2man %description -n python3-setuptools-git-versioning %_description %prep %autosetup -n setuptools-git-versioning-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l setuptools_git_versioning for binary in setuptools-git-versioning do echo "Generating man page for ${binary// /-/}" PYTHONPATH="$PYTHONPATH:%{buildroot}/%{python3_sitelib}/" PATH="$PATH:%{buildroot}/%{_bindir}/" help2man --no-info --no-discard-stderr --name="${binary}" --version-string="${binary} %{version}" --output="${binary// /-}.1" "${binary}" cat "${binary// /-}.1" install -t '%{buildroot}%{_mandir}/man1' -p -m 0644 -D "${binary// /-}.1" done %check %pyproject_check_import %files -n python3-setuptools-git-versioning -f %{pyproject_files} %{_bindir}/setuptools-git-versioning %{_mandir}/man1/setuptools-git-versioning.* %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 2.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 2.0.0-2 - Rebuilt for Python 3.13 * Mon Apr 08 2024 Packit - 2.0.0-1 - Update to 2.0.0 upstream release - Resolves: rhbz#2274050 * Tue Jan 30 2024 Packit - 1.13.6-1 - [packit] 1.13.6 upstream release - Resolves rhbz#2261897 * Fri Jan 26 2024 Fedora Release Engineering - 1.13.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.13.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Dec 31 2023 Benjamin A. Beasley - 1.13.5-2 - Assert that %%pyproject_files contains a license file * Sun Sep 24 2023 Packit - 1.13.5-1 - [packit] 1.13.5 upstream release * Thu Aug 10 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.13.3-6 - chore: add packit conf * Fri Jul 21 2023 Fedora Release Engineering - 1.13.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jun 26 2023 Python Maint - 1.13.3-4 - Rebuilt for Python 3.12 * Wed Jun 21 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.13.3-3 - feat: import sources (fixes rbhz#2213973) * Wed Jun 21 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.13.3-2 - feat: ready for review * Wed Jun 21 2023 Ankur Sinha (Ankur Sinha Gmail) - init ## END: Generated by rpmautospec