|
rdobuilder |
65d599 |
## START: Set by rpmautospec
|
|
rdobuilder |
65d599 |
## (rpmautospec version 0.3.1)
|
|
rdobuilder |
65d599 |
## RPMAUTOSPEC: autorelease, autochangelog
|
|
rdobuilder |
65d599 |
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
rdobuilder |
65d599 |
release_number = 3;
|
|
rdobuilder |
65d599 |
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
rdobuilder |
65d599 |
print(release_number + base_release_number - 1);
|
|
rdobuilder |
65d599 |
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
rdobuilder |
65d599 |
## END: Set by rpmautospec
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
# Let’s try to build this as early as we can, since it’s a dependency for
|
|
rdobuilder |
65d599 |
# some important libraries, such as python-platformdirs.
|
|
rdobuilder |
65d599 |
%bcond_with bootstrap
|
|
rdobuilder |
65d599 |
%if %{without bootstrap}
|
|
rdobuilder |
65d599 |
%bcond_without tests
|
|
rdobuilder |
65d599 |
%else
|
|
rdobuilder |
65d599 |
%bcond_with tests
|
|
rdobuilder |
65d599 |
%endif
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
Name: python-hatch-vcs
|
|
rdobuilder |
65d599 |
Version: 0.3.0
|
|
rdobuilder |
65d599 |
Release: %autorelease
|
|
rdobuilder |
65d599 |
Summary: Hatch plugin for versioning with your preferred VCS
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
# SPDX
|
|
rdobuilder |
65d599 |
License: MIT
|
|
rdobuilder |
65d599 |
URL: https://github.com/ofek/hatch-vcs
|
|
rdobuilder |
65d599 |
Source0: %{pypi_source hatch_vcs}
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
BuildArch: noarch
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
# Work with setuptools_scm 7.1 (fix #25)
|
|
rdobuilder |
65d599 |
# https://github.com/ofek/hatch-vcs/pull/26
|
|
rdobuilder |
65d599 |
Patch: %{url}/pull/26.patch
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
BuildRequires: python3-devel
|
|
rdobuilder |
65d599 |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
65d599 |
BuildRequires: python3dist(setuptools-scm) >= 6.4.0
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
Requires: python3dist(setuptools-scm) >= 6.4.0
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
%if %{with tests}
|
|
rdobuilder |
65d599 |
BuildRequires: python3dist(pytest)
|
|
rdobuilder |
65d599 |
BuildRequires: git-core
|
|
rdobuilder |
65d599 |
%endif
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
%global common_description %{expand:
|
|
rdobuilder |
65d599 |
This provides a plugin for Hatch that uses your preferred version control
|
|
rdobuilder |
65d599 |
system (like Git) to determine project versions.}
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
%description %{common_description}
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
%package -n python3-hatch-vcs
|
|
rdobuilder |
65d599 |
Summary: %{summary}
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
%description -n python3-hatch-vcs %{common_description}
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
%prep
|
|
rdobuilder |
65d599 |
%autosetup -n hatch_vcs-%{version} -p1
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
%generate_buildrequires
|
|
rdobuilder |
65d599 |
%pyproject_buildrequires -R
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
%build
|
|
rdobuilder |
65d599 |
%pyproject_wheel
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
%install
|
|
rdobuilder |
65d599 |
%pyproject_install
|
|
rdobuilder |
65d599 |
%pyproject_save_files hatch_vcs
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
%check
|
|
rdobuilder |
65d599 |
%if %{with tests}
|
|
rdobuilder |
65d599 |
%pytest
|
|
rdobuilder |
65d599 |
%else
|
|
rdobuilder |
65d599 |
%pyproject_check_import
|
|
rdobuilder |
65d599 |
%endif
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
%files -n python3-hatch-vcs -f %{pyproject_files}
|
|
rdobuilder |
65d599 |
%doc HISTORY.md
|
|
rdobuilder |
65d599 |
%doc README.md
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
%changelog
|
|
rdobuilder |
65d599 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
|
|
rdobuilder |
65d599 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
* Tue Dec 20 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.3.0-2
|
|
rdobuilder |
65d599 |
- Work with setuptools_scm 7.1
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
* Sat Dec 10 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.3.0-1
|
|
rdobuilder |
65d599 |
- Update to 0.3.0 (close RHBZ#2152320)
|
|
rdobuilder |
65d599 |
- We can now rely on pyproject-rpm-macros >= 1.2.0
|
|
rdobuilder |
65d599 |
- The LICENSE.txt file is now handled in pyproject_files
|
|
rdobuilder |
65d599 |
- The setuptools_scm 7 patch is now merged upstream
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
* Sat Oct 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.0-10
|
|
rdobuilder |
65d599 |
- Confirm License is SPDX MIT
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
* Sun Sep 11 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.0-9
|
|
rdobuilder |
65d599 |
- Use hatchling’s new “prepare_metadata_…” hook support for BR’s
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
* Thu Jul 21 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.0-8
|
|
rdobuilder |
65d599 |
- Updated setuptools_scm 7 patch again
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
* Thu Jul 07 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.0-7
|
|
rdobuilder |
65d599 |
- Fix extra newline in description
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
* Thu Jun 30 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.0-6
|
|
rdobuilder |
65d599 |
- Updated setuptools_scm 7 patch
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
* Thu Jun 30 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.0-5
|
|
rdobuilder |
65d599 |
- Fix test compatibility with setuptools_scm 7
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.2.0-4
|
|
rdobuilder |
65d599 |
- Rebuilt for Python 3.11
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
* Fri May 06 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.0-3
|
|
rdobuilder |
65d599 |
- Use wheel-building support to generate BR’s
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
* Sun May 01 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.0-2
|
|
rdobuilder |
65d599 |
- Adjust for pyproject-rpm-macros >= 1.1.0
|
|
rdobuilder |
65d599 |
|
|
rdobuilder |
65d599 |
* Fri Apr 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.0-1
|
|
rdobuilder |
65d599 |
- Initial package (close RHBZ#2077832)
|