2022-02-20 16:17:55 +00:00
|
|
|
|
Name: python-hatchling
|
2023-12-11 12:55:26 +00:00
|
|
|
|
Version: 1.20.0
|
2022-02-20 16:17:55 +00:00
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: The build backend used by Hatch
|
|
|
|
|
|
2022-08-16 21:45:52 +00:00
|
|
|
|
# SPDX
|
2022-02-20 16:17:55 +00:00
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://pypi.org/project/hatchling
|
|
|
|
|
Source0: %{pypi_source hatchling}
|
2022-10-09 14:29:18 +00:00
|
|
|
|
# Written for Fedora in groff_man(7) format based on --help output
|
|
|
|
|
Source100: hatchling.1
|
|
|
|
|
Source200: hatchling-build.1
|
|
|
|
|
Source300: hatchling-dep.1
|
|
|
|
|
Source310: hatchling-dep-synced.1
|
|
|
|
|
Source400: hatchling-metadata.1
|
|
|
|
|
Source500: hatchling-version.1
|
2022-02-20 16:17:55 +00:00
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
|
|
%global common_description %{expand:
|
|
|
|
|
This is the extensible, standards compliant build backend used by Hatch.}
|
|
|
|
|
|
|
|
|
|
%description %{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-hatchling
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
%description -n python3-hatchling %{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-03-07 19:19:30 +00:00
|
|
|
|
%autosetup -n hatchling-%{version}
|
2022-02-20 16:17:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
2022-09-10 12:39:28 +00:00
|
|
|
|
%pyproject_buildrequires
|
2022-02-20 16:17:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%pyproject_install
|
2023-12-17 17:29:49 +00:00
|
|
|
|
%pyproject_save_files -l hatchling
|
2022-10-09 14:29:18 +00:00
|
|
|
|
|
|
|
|
|
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 \
|
|
|
|
|
'%{SOURCE100}' \
|
|
|
|
|
'%{SOURCE200}' \
|
|
|
|
|
'%{SOURCE300}' '%{SOURCE310}' \
|
|
|
|
|
'%{SOURCE400}' \
|
|
|
|
|
'%{SOURCE500}'
|
2022-02-20 16:17:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# It’s not yet clear how, or if, we can run the upstream tests.
|
2022-05-18 11:58:44 +00:00
|
|
|
|
# https://github.com/pypa/hatch/issues/120
|
2022-02-20 16:17:55 +00:00
|
|
|
|
%pyproject_check_import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-hatchling -f %{pyproject_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
|
|
%{_bindir}/hatchling
|
|
|
|
|
%{_mandir}/man1/hatchling.1*
|
2022-10-09 14:29:18 +00:00
|
|
|
|
%{_mandir}/man1/hatchling-*.1*
|
2022-02-20 16:17:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
%autochangelog
|