Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17642dfc17 | ||
|
|
2683a63371 | ||
|
|
74eeca0894 | ||
|
|
1b67fcd42b | ||
|
|
f3975537e1 | ||
|
|
09b953d845 |
2 changed files with 7 additions and 19 deletions
|
|
@ -6,3 +6,6 @@ addFilter(r" invalid-url Source[0-9]+: chardet-.*-filtered\.tar\.zst")
|
||||||
addFilter(r" inconsistent-file-extension chardet-.*-filtered\.tar\.zst$")
|
addFilter(r" inconsistent-file-extension chardet-.*-filtered\.tar\.zst$")
|
||||||
# The -doc subpackage was removed without an equivalent replacement.
|
# The -doc subpackage was removed without an equivalent replacement.
|
||||||
addFilter(r" obsolete-not-provided python-chardet-doc$")
|
addFilter(r" obsolete-not-provided python-chardet-doc$")
|
||||||
|
# Update LGPLv2.1 license text and notices for remote-only FSF
|
||||||
|
# https://github.com/chardet/chardet/pull/307
|
||||||
|
addFilter(r" incorrect-fsf-address ")
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,10 @@ Source1: get_source
|
||||||
# Hand-written for Fedora in groff_man(7) format based on --help output
|
# Hand-written for Fedora in groff_man(7) format based on --help output
|
||||||
Source2: chardetect.1
|
Source2: chardetect.1
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildSystem: pyproject
|
||||||
|
BuildOption(install): -l chardet
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildArch: noarch
|
||||||
|
|
||||||
%global common_description %{expand:
|
%global common_description %{expand:
|
||||||
Chardet: The Universal Character Encoding Detector
|
Chardet: The Universal Character Encoding Detector
|
||||||
|
|
@ -59,28 +60,12 @@ Obsoletes: python-chardet-doc < 5.2.0-12
|
||||||
%{common_description}
|
%{common_description}
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%install -a
|
||||||
%autosetup -n chardet-%{version}
|
|
||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
|
||||||
%pyproject_buildrequires
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
|
||||||
%pyproject_wheel
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
|
||||||
%pyproject_install
|
|
||||||
%pyproject_save_files -l chardet
|
|
||||||
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE2}'
|
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE2}'
|
||||||
|
|
||||||
|
|
||||||
%check
|
|
||||||
# We cannot run the upstream tests because they would require data files with
|
# We cannot run the upstream tests because they would require data files with
|
||||||
# problematic license status.
|
# problematic license status.
|
||||||
%pyproject_check_import
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-chardet -f %{pyproject_files}
|
%files -n python3-chardet -f %{pyproject_files}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue