Simplify man page installation

Install it directly from %%{SOURCE1} rather than copying and then installing
This commit is contained in:
Benjamin A. Beasley 2022-02-20 11:18:55 -05:00
parent 13120c9574
commit e15cd40c1c

View File

@ -36,7 +36,6 @@ Summary: %{summary}
%prep %prep
%autosetup -n hatchling-%{version} -p1 %autosetup -n hatchling-%{version} -p1
cp -p '%{SOURCE1}' .
%generate_buildrequires %generate_buildrequires
@ -61,7 +60,7 @@ EOF
%install %install
%pyproject_install %pyproject_install
%pyproject_save_files hatchling %pyproject_save_files hatchling
install -t '%{buildroot}/%{_mandir}/man1' -D -p -m 0644 hatchling.1 install -t '%{buildroot}/%{_mandir}/man1' -D -p -m 0644 '%{SOURCE1}'
%check %check