Add a man page for the chardetect command
This commit is contained in:
parent
49576e97da
commit
b0c718ea21
2 changed files with 27 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ Summary: Character encoding auto-detection in Python
|
|||
License: LGPLv2+
|
||||
URL: https://github.com/chardet/chardet
|
||||
Source0: %{pypi_source chardet}
|
||||
# Hand-written for Fedora in groff_man(7) format based on --help output
|
||||
Source1: chardetect.1
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
|
@ -59,6 +61,7 @@ grep -lr "^#\!/usr/bin/env python" chardet/ | xargs sed -i "1d"
|
|||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files chardet
|
||||
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE1}'
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
|
|
@ -71,6 +74,7 @@ grep -lr "^#\!/usr/bin/env python" chardet/ | xargs sed -i "1d"
|
|||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{_bindir}/chardetect
|
||||
%{_mandir}/man1/chardetect.1*
|
||||
|
||||
|
||||
%changelog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue