172 lines
5.6 KiB
RPMSpec
172 lines
5.6 KiB
RPMSpec
|
## START: Set by rpmautospec
|
|||
|
## (rpmautospec version 0.3.0)
|
|||
|
%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
|
|||
|
|
|||
|
Name: python-hatchling
|
|||
|
Version: 1.21.0
|
|||
|
Release: %autorelease
|
|||
|
Summary: The build backend used by Hatch
|
|||
|
|
|||
|
# SPDX
|
|||
|
License: MIT
|
|||
|
URL: https://pypi.org/project/hatchling
|
|||
|
Source0: %{pypi_source hatchling}
|
|||
|
# Man page in groff_man(7) format, hand-written for Fedora based on package
|
|||
|
# metadata and --help output
|
|||
|
Source1: hatchling.1
|
|||
|
|
|||
|
BuildArch: noarch
|
|||
|
|
|||
|
BuildRequires: python%{python3_pkgversion}-devel
|
|||
|
BuildRequires: python%{python3_pkgversion}dist(editables) >= 0.3
|
|||
|
BuildRequires: python%{python3_pkgversion}dist(packaging) >= 21.3
|
|||
|
BuildRequires: python%{python3_pkgversion}dist(pathspec) >= 0.10.1
|
|||
|
BuildRequires: python%{python3_pkgversion}dist(pluggy) >= 1
|
|||
|
BuildRequires: python%{python3_pkgversion}dist(trove-classifiers)
|
|||
|
# RHBZ#1985340, RHBZ#2076994
|
|||
|
BuildRequires: pyproject-rpm-macros
|
|||
|
|
|||
|
%global common_description %{expand:
|
|||
|
This is the extensible, standards compliant build backend used by Hatch.}
|
|||
|
|
|||
|
%description %{common_description}
|
|||
|
|
|||
|
|
|||
|
%package -n python%{python3_pkgversion}-hatchling
|
|||
|
Summary: %{summary}
|
|||
|
|
|||
|
%description -n python%{python3_pkgversion}-hatchling %{common_description}
|
|||
|
|
|||
|
|
|||
|
%prep
|
|||
|
%autosetup -n hatchling-%{version}
|
|||
|
|
|||
|
%if 0%{?rhel} > 8
|
|||
|
%generate_buildrequires
|
|||
|
%pyproject_buildrequires
|
|||
|
%endif
|
|||
|
|
|||
|
%build
|
|||
|
%pyproject_wheel
|
|||
|
|
|||
|
|
|||
|
%install
|
|||
|
%pyproject_install
|
|||
|
%pyproject_save_files hatchling
|
|||
|
install -t '%{buildroot}/%{_mandir}/man1' -D -p -m 0644 '%{SOURCE1}'
|
|||
|
#rm -f %{buildroot}%{python3_sitelib}/hatchling-%{version}.dist-info/licenses/LICENSE.txt
|
|||
|
|
|||
|
%check
|
|||
|
# It’s not yet clear how, or if, we can run the upstream tests.
|
|||
|
# https://github.com/pypa/hatch/issues/120
|
|||
|
%pyproject_check_import
|
|||
|
|
|||
|
|
|||
|
%files -n python%{python3_pkgversion}-hatchling -f %{pyproject_files}
|
|||
|
%license LICENSE.txt
|
|||
|
%doc README.md
|
|||
|
|
|||
|
%{_bindir}/hatchling
|
|||
|
%{_mandir}/man1/hatchling.1*
|
|||
|
|
|||
|
|
|||
|
%changelog
|
|||
|
* Mon Jan 8 2024 Raven <raven@sysadmins.ws> 1.21.0-1
|
|||
|
- Update to 1.21.0
|
|||
|
|
|||
|
* Mon Sep 19 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.10.0-1
|
|||
|
- Update to 1.10.0 (close RHBZ#2127792)
|
|||
|
|
|||
|
* Sat Sep 10 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.9.0-1
|
|||
|
- Update to 1.9.0 (close RHBZ#2125746)
|
|||
|
- Use new “prepare_metadata_…” hooks for BuildRequires
|
|||
|
|
|||
|
* Thu Aug 25 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.8.1-1
|
|||
|
- Update to 1.8.1 (close RHBZ#2121312)
|
|||
|
|
|||
|
* Tue Aug 16 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.8.0-1
|
|||
|
- Update to 1.8.0 (close RHBZ#2117979)
|
|||
|
|
|||
|
* Sun Jul 24 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.6.0-1
|
|||
|
- Update to 1.6.0 (close RHBZ#2110167)
|
|||
|
|
|||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> 1.5.0-2
|
|||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|||
|
|
|||
|
* Mon Jul 11 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.5.0-1
|
|||
|
- Update to 1.5.0 (close RHBZ#2105880)
|
|||
|
|
|||
|
* Thu Jul 07 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.4.1-1
|
|||
|
- Update to 1.4.1 (close RHBZ#2103496)
|
|||
|
|
|||
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> 1.3.1-2
|
|||
|
- Rebuilt for Python 3.11
|
|||
|
|
|||
|
* Mon May 30 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.3.1-1
|
|||
|
- Update to 1.3.1 (close RHBZ#1609549)
|
|||
|
|
|||
|
* Mon May 23 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.3.0-1
|
|||
|
- Update to 1.3.0 (close RHBZ#2089077)
|
|||
|
|
|||
|
* Sat May 21 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.2.0-1
|
|||
|
- Update to 1.2.0 (close RHBZ#2088843)
|
|||
|
|
|||
|
* Fri May 20 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.1.0-1
|
|||
|
- Update to 1.1.0 (close RHBZ#2088671)
|
|||
|
|
|||
|
* Wed May 18 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.0.0-1
|
|||
|
- Update to 1.0.0 (close RHBZ#2087533)
|
|||
|
|
|||
|
* Mon May 16 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.25.0-1
|
|||
|
- Update to 0.25.0 (close RHBZ#2086373)
|
|||
|
|
|||
|
* Fri May 06 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.24.0-2
|
|||
|
- Use wheel-building support to generate BR’s
|
|||
|
|
|||
|
* Sat Apr 30 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.24.0-1
|
|||
|
- Update to 0.24.0 (close RHBZ#2079689)
|
|||
|
|
|||
|
* Tue Apr 12 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.22.0-2
|
|||
|
- Adjust for pyproject-rpm-macros >= 1.1.0
|
|||
|
|
|||
|
* Sun Mar 27 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.22.0-1
|
|||
|
- Update to 0.22.0 (close RHBZ#2068853)
|
|||
|
|
|||
|
* Tue Mar 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.21.1-1
|
|||
|
- Update to 0.21.1 (close RHBZ#2066578)
|
|||
|
|
|||
|
* Fri Mar 18 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.21.0-1
|
|||
|
- Update to 0.21.0 (close RHBZ#2065524)
|
|||
|
|
|||
|
* Mon Mar 07 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.20.1-1
|
|||
|
- Update to 0.20.1 (close RHBZ#2061214)
|
|||
|
|
|||
|
* Mon Feb 28 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.18.0-1
|
|||
|
- Update to 0.18.0 (close RHBZ#2059065)
|
|||
|
|
|||
|
* Sun Feb 27 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.17.0-1
|
|||
|
- Update to 0.17.0 (close RHBZ#2058939)
|
|||
|
|
|||
|
* Sat Feb 26 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.16.0-1
|
|||
|
- Update to 0.16.0 (close RHBZ#2058884)
|
|||
|
|
|||
|
* Wed Feb 23 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.15.0-1
|
|||
|
- Update to 0.15.0 (close RHBZ#2057315)
|
|||
|
|
|||
|
* Sun Feb 20 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.14.0-1
|
|||
|
- Update to 0.14.0 (close RHBZ#2050889)
|
|||
|
|
|||
|
* Sun Feb 20 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.11.3-3
|
|||
|
- Simplify man page installation
|
|||
|
|
|||
|
* Sun Feb 20 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.11.3-2
|
|||
|
- Clarify man page hand-written status
|
|||
|
|
|||
|
* Sun Feb 20 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.11.3-1
|
|||
|
- Initial package
|