Install the man page directly without first copying it to the build directory

This commit is contained in:
Benjamin A. Beasley 2024-01-19 09:49:29 -05:00
parent 3c83f047f0
commit ee0d532770

View File

@ -58,8 +58,6 @@ sed -r -i 's/(ext_modules=)/# \1/' setup.py
# Remove bundled adobe-afdko: # Remove bundled adobe-afdko:
rm -rf external rm -rf external
cp -p '%{SOURCE1}' .
%build %build
%pyproject_wheel %pyproject_wheel
@ -75,7 +73,7 @@ ln -s '%{txbin}' '%{buildroot}%{txbin}'
ln -s '%{buildroot}%{txbin}' %{buildroot}/%{python3_sitelib}/cffsubr/tx ln -s '%{buildroot}%{txbin}' %{buildroot}/%{python3_sitelib}/cffsubr/tx
symlinks -c -o %{buildroot}/%{python3_sitelib}/cffsubr/tx symlinks -c -o %{buildroot}/%{python3_sitelib}/cffsubr/tx
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 'cffsubr.1' install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE1}'
%check %check
%pytest %pytest