2022-02-20 16:17:55 +00:00
|
|
|
|
Name: python-hatchling
|
2022-07-24 14:23:05 +00:00
|
|
|
|
Version: 1.6.0
|
2022-02-20 16:17:55 +00:00
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: The build backend used by Hatch
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://pypi.org/project/hatchling
|
|
|
|
|
Source0: %{pypi_source hatchling}
|
2022-02-20 16:18:12 +00:00
|
|
|
|
# Man page in groff_man(7) format, hand-written for Fedora based on package
|
|
|
|
|
# metadata and --help output
|
2022-02-20 16:17:55 +00:00
|
|
|
|
Source1: hatchling.1
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
2022-04-23 14:34:29 +00:00
|
|
|
|
# RHBZ#1985340, RHBZ#2076994
|
|
|
|
|
BuildRequires: pyproject-rpm-macros >= 1.2.0
|
2022-02-20 16:17:55 +00:00
|
|
|
|
|
|
|
|
|
%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-04-23 14:34:29 +00:00
|
|
|
|
%pyproject_buildrequires -w
|
2022-02-20 16:17:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files hatchling
|
2022-02-20 16:18:55 +00:00
|
|
|
|
install -t '%{buildroot}/%{_mandir}/man1' -D -p -m 0644 '%{SOURCE1}'
|
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}
|
2022-04-12 19:17:14 +00:00
|
|
|
|
%license LICENSE.txt
|
2022-02-20 16:17:55 +00:00
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
|
|
%{_bindir}/hatchling
|
|
|
|
|
%{_mandir}/man1/hatchling.1*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
%autochangelog
|