Compare commits
93 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17642dfc17 | ||
|
|
2683a63371 | ||
|
|
74eeca0894 | ||
|
|
1b67fcd42b | ||
|
|
f3975537e1 | ||
|
|
09b953d845 | ||
|
|
353a16c6dc | ||
|
|
de9115b8d0 | ||
|
|
0216c447b6 | ||
|
|
e544222c20 | ||
|
|
e8ed5df38f | ||
|
|
b65093a110 | ||
|
|
09dae8a7bb | ||
|
|
a2f928beb2 | ||
|
|
be25609845 | ||
|
|
f5e5a80c16 | ||
|
|
63ae951a91 | ||
|
|
efdc312e8f | ||
|
|
c079aef0ca | ||
|
|
e1a31906fd | ||
|
|
b11aa7eefc | ||
|
|
01a67c2e9d | ||
|
|
07aea33b15 | ||
|
|
188cee849d | ||
|
|
94b3a06b76 | ||
|
|
ced676c2d7 | ||
|
|
1159f9bf7b | ||
|
|
70b1e7fa69 | ||
|
|
1bae21d579 | ||
|
|
504995a382 | ||
|
|
8d4593d9d9 | ||
|
|
7c2ef5edec | ||
|
|
4e6f753383 | ||
|
|
54e08a90f3 | ||
|
|
5ac8e73c24 | ||
|
|
47140811aa | ||
|
|
404157ecdc | ||
|
|
e537507a1b | ||
|
|
4c620ca71a | ||
|
|
f47b6c6309 | ||
|
|
fd71cc4645 | ||
|
|
f6552e77b0 | ||
|
|
b660867530 | ||
|
|
c74715dc2b | ||
|
|
6955ef0ec4 | ||
|
|
3d69120124 | ||
|
|
b4451f5f06 | ||
|
|
d621a0aae0 | ||
|
|
648edbafb2 | ||
|
|
dfeac08817 | ||
|
|
73037ec629 | ||
|
|
6770299bbc | ||
|
|
1f30dbfcea | ||
|
|
2a8b62bcef | ||
|
|
5c191bbe10 | ||
|
|
c7732f881c | ||
|
|
9f6cb06a91 | ||
|
|
4a8271ecba | ||
|
|
19290cb937 | ||
|
|
d947672d8f | ||
|
|
ef4c7330c8 | ||
|
|
a860223f54 | ||
|
|
31fb39b3ae | ||
|
|
0d57d4096d | ||
|
|
13a39db950 | ||
|
|
631a7704b8 | ||
|
|
481b4eaf24 | ||
|
|
b174f7e6a8 | ||
|
|
e30d288e7f | ||
|
|
5eba2c4cd2 | ||
|
|
fba4f3316d | ||
|
|
2271487493 | ||
|
|
5737c81db4 |
||
|
|
a956d8fe40 |
||
|
|
9e6423d7e6 | ||
|
|
1577a13a8a | ||
|
|
9973efd3a8 | ||
|
|
ad2fc6b38d | ||
|
|
1428284b2b | ||
|
|
8bf0e9907d | ||
|
|
1d11ce81ff | ||
|
|
1e01f3eec0 | ||
|
|
5be0e0171b | ||
|
|
c6cc577ae0 | ||
|
|
caedaec44d | ||
|
|
d212b2f2a2 | ||
|
|
f55b4c59c8 | ||
|
|
2108229038 | ||
|
|
cb6c147eed | ||
|
|
0d0a7a428c | ||
|
|
401ac81241 | ||
|
|
44e00cf733 | ||
|
|
819c1db1cd |
10 changed files with 301 additions and 63 deletions
|
|
@ -1 +0,0 @@
|
|||
chardet-1.0.1.tgz
|
||||
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/chardet-*.tar.gz
|
||||
/chardet-*/
|
||||
/chardet-4.0.0-filtered.tar.xz
|
||||
/chardet-5.0.0-filtered.tar.xz
|
||||
/chardet-5.1.0-filtered.tar.xz
|
||||
/chardet-5.2.0-filtered.tar.xz
|
||||
/chardet-5.2.0-filtered.tar.zst
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: python-chardet
|
||||
# $Id$
|
||||
NAME := python-chardet
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
143
changelog
Normal file
143
changelog
Normal file
|
|
@ -0,0 +1,143 @@
|
|||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 4.0.0-7
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 4.0.0-6
|
||||
- Bootstrap for Python 3.11
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 4.0.0-3
|
||||
- Rebuilt for Python 3.10
|
||||
|
||||
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 4.0.0-2
|
||||
- Bootstrap for Python 3.10
|
||||
|
||||
* Fri Feb 05 2021 Miro Hrončok <mhroncok@redhat.com> - 4.0.0-1
|
||||
- Update to 4.0.0
|
||||
- Fixes: rhbz#1906585
|
||||
- Fixes: rhbz#1923076
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 3.0.4-17
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 3.0.4-16
|
||||
- Bootstrap for Python 3.9
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Nov 14 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0.4-14
|
||||
- Subpackage python2-chardet has been removed
|
||||
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0.4-13
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0.4-12
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Wed Aug 14 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0.4-11
|
||||
- Bootstrap for Python 3.8
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Aug 17 2018 Miro Hrončok <mhroncok@redhat.com> - 3.0.4-8
|
||||
- Only have one /usr/bin/chardetect
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 3.0.4-6
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Sun Feb 11 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.0.4-5
|
||||
- Update Python 2 dependency declarations to new packaging standards
|
||||
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.4-3
|
||||
- Python 2 binary package renamed to python2-chardet
|
||||
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Tue Jun 20 2017 Jeremy Cline <jeremy@jcline.org> - 3.0.4-1
|
||||
- Update to 3.0.4 (#1441436)
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.3.0-2
|
||||
- Rebuild for Python 3.6
|
||||
|
||||
* Wed Jul 27 2016 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-1
|
||||
- Update to 2.3.0 (#1150536)
|
||||
|
||||
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-6
|
||||
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 2.2.1-4
|
||||
- Rebuilt for Python3.5 rebuild
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Thu Jul 31 2014 Tom Callaway <spot@fedoraproject.org> - 2.2.1-2
|
||||
- fix license handling
|
||||
|
||||
* Wed Jul 02 2014 Miro Hrončok <mhroncok@redhat.com> - 2.2.1-1
|
||||
- Updated to 2.2.1
|
||||
- Introduced Python 3 subpackage (upstream has merged the codebase)
|
||||
- Removed BuildRoot and python_sitelib definition
|
||||
- Use python2 macros instead of just python
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 2.0.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||
|
||||
* Wed Jan 13 2010 Kushal Das <kushal@fedoraproject.org> 2.0.1-1
|
||||
- New release
|
||||
|
||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1
|
||||
- Initial release
|
||||
|
||||
29
chardetect.1
Normal file
29
chardetect.1
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
.TH CHARDETECT "1" "June 2022" "" "User Commands"
|
||||
.SH NAME
|
||||
.B chardetect
|
||||
\(en takes one or more file paths and reports their detected encodings
|
||||
.SH SYNOPSIS
|
||||
.B chardetect
|
||||
.RB [ \-h ]
|
||||
.RB [ \-\-version ]
|
||||
.RI [ input \ ...]
|
||||
.SH OPTIONS
|
||||
.SS "POSITIONAL ARGUMENTS"
|
||||
.TP
|
||||
.I input
|
||||
File whose encoding we would like to determine.
|
||||
(default:
|
||||
.IR stdin )
|
||||
.SS "OPTIONAL ARGUMENTS"
|
||||
.TP
|
||||
.B \-h\fR, \fB\-\-help
|
||||
show a help message and exit
|
||||
.TP
|
||||
.B \-\-minimal
|
||||
Print only the encoding to standard output
|
||||
.TP
|
||||
.B \-l\fR, \fB\-\-legacy
|
||||
Rename legacy encodings to more modern ones.
|
||||
.TP
|
||||
.B \-\-version
|
||||
show program\(cqs version number and exit
|
||||
48
get_source
Executable file
48
get_source
Executable file
|
|
@ -0,0 +1,48 @@
|
|||
#!/bin/sh
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
|
||||
if [ "$#" != '1' ]
|
||||
then
|
||||
cat 1>&2 <<EOF
|
||||
Usage: $0 VERSION
|
||||
|
||||
Downloads the requested version and creates a filtered source tarball.
|
||||
EOF
|
||||
exit 1
|
||||
fi
|
||||
|
||||
VERSION="${1}"
|
||||
OUTDIR="${PWD}"
|
||||
TMPDIR="$(mktemp -d)"
|
||||
trap "rm -rf '${TMPDIR}'" INT TERM EXIT
|
||||
|
||||
cd "${TMPDIR}"
|
||||
URL="$(rpm -E "%{pypi_source chardet ${VERSION}}")"
|
||||
echo "--> Downloading: ${URL}" 1>&2
|
||||
curl -L -O "${URL}"
|
||||
|
||||
ARCHIVE="$(find . -mindepth 1 -maxdepth 1 -type f -name '*.tar.gz' -print -quit)"
|
||||
echo "--> Extracting: $(basename "${ARCHIVE}")" 1>&2
|
||||
tar -xzf "${ARCHIVE}"
|
||||
echo '--> Removing tests due to licensing issues' 1>&2
|
||||
TARDIR="$(basename "${ARCHIVE}" '.tar.gz')"
|
||||
MTIME="$(stat -c '%Y' "${TARDIR}")"
|
||||
rm -rvf "${TARDIR}/tests/"
|
||||
# Restore the original mtime even though we modified the base directory by
|
||||
# removing the tests.
|
||||
touch -d @"${MTIME}" "${TARDIR}"
|
||||
FILTERED="$(basename "${ARCHIVE}" .tar.gz)-filtered.tar.zst"
|
||||
echo "--> Re-archiving: ${FILTERED}" 1>&2
|
||||
# https://www.gnu.org/software/tar/manual/html_section/Reproducibility.html
|
||||
TZ=UTC LC_ALL=C tar \
|
||||
--create --verbose \
|
||||
--sort=name \
|
||||
--format=posix \
|
||||
--numeric-owner --owner=0 --group=0 \
|
||||
--mode=go+u,go-w \
|
||||
--pax-option='delete=atime,delete=ctime' \
|
||||
"${TARDIR}/" |
|
||||
zstdmt --ultra -22 > "${FILTERED}"
|
||||
mv -v "${FILTERED}" "${OUTDIR}"
|
||||
echo 'Done.' 1>&2
|
||||
|
|
@ -1 +0,0 @@
|
|||
python-chardet-1_0_1-1_fc9:HEAD:python-chardet-1.0.1-1.fc9.src.rpm:1239526287
|
||||
11
python-chardet.rpmlintrc
Normal file
11
python-chardet.rpmlintrc
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Not a real spelling error:
|
||||
addFilter(r" spelling-error \('([Pp]rober)s?',")
|
||||
# This Source cannot be a URL because we must filter out certain files.
|
||||
addFilter(r" invalid-url Source[0-9]+: chardet-.*-filtered\.tar\.zst")
|
||||
# Bogus; it is a perfectly fine zstandard file.
|
||||
addFilter(r" inconsistent-file-extension chardet-.*-filtered\.tar\.zst$")
|
||||
# The -doc subpackage was removed without an equivalent replacement.
|
||||
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 ")
|
||||
|
|
@ -1,55 +1,78 @@
|
|||
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
|
||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
Name: python-chardet
|
||||
Version: 1.0.1
|
||||
Release: 2%{?dist}
|
||||
Summary: Character encoding auto-detection in Python
|
||||
Version: 5.2.0
|
||||
Release: %autorelease
|
||||
Summary: Python character encoding detector
|
||||
|
||||
Group: Development/Languages
|
||||
License: LGPLv2
|
||||
URL: http://chardet.feedparser.org
|
||||
Source0: http://chardet.feedparser.org/download/chardet-%{version}.tgz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
# The entire source, after tests/ are filtered, is LGPL-2.0-or-later. See the
|
||||
# comment above Source0 for more details on tests/.
|
||||
License: LGPL-2.0-or-later
|
||||
URL: https://github.com/chardet/chardet
|
||||
# A filtered source tarball, obtained by (see Source1):
|
||||
#
|
||||
# ./get_source %%{version}
|
||||
#
|
||||
# is required because the contents of tests/ are under various undocumented
|
||||
# licenses and are, for the most part, not freely redistributable. See:
|
||||
#
|
||||
# problematic licensing of /tests?
|
||||
# https://github.com/chardet/chardet/issues/231
|
||||
Source0: chardet-%{version}-filtered.tar.zst
|
||||
Source1: get_source
|
||||
# Hand-written for Fedora in groff_man(7) format based on --help output
|
||||
Source2: chardetect.1
|
||||
|
||||
BuildSystem: pyproject
|
||||
BuildOption(install): -l chardet
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python-devel, python-setuptools
|
||||
|
||||
%global common_description %{expand:
|
||||
Chardet: The Universal Character Encoding Detector
|
||||
|
||||
Detects:
|
||||
|
||||
• ASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants)
|
||||
• Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN (Traditional and Simplified
|
||||
Chinese)
|
||||
• EUC-JP, SHIFT_JIS, CP932, ISO-2022-JP (Japanese)
|
||||
• EUC-KR, ISO-2022-KR, Johab (Korean)
|
||||
• KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic)
|
||||
• ISO-8859-5, windows-1251 (Bulgarian)
|
||||
• ISO-8859-1, windows-1252 (Western European languages)
|
||||
• ISO-8859-7, windows-1253 (Greek)
|
||||
• ISO-8859-8, windows-1255 (Visual and Logical Hebrew)
|
||||
• TIS-620 (Thai)
|
||||
|
||||
ISO-8859-2 and windows-1250 (Hungarian) probers have been temporarily
|
||||
disabled.}
|
||||
|
||||
%description
|
||||
Character encoding auto-detection in Python. As
|
||||
smart as your browser. Open source.
|
||||
|
||||
%prep
|
||||
%setup -q -n chardet-%{version}
|
||||
%{common_description}
|
||||
|
||||
|
||||
%package -n python3-chardet
|
||||
Summary: %{summary}
|
||||
|
||||
%build
|
||||
# Remove CFLAGS=... for noarch packages (unneeded)
|
||||
%{__python} setup.py build
|
||||
# Removed in F41:
|
||||
Obsoletes: python-chardet-doc < 5.2.0-12
|
||||
|
||||
%description -n python3-chardet
|
||||
%{common_description}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
chmod -x COPYING
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%install -a
|
||||
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE2}'
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
# For noarch packages: sitelib
|
||||
%{python_sitelib}/*
|
||||
# We cannot run the upstream tests because they would require data files with
|
||||
# problematic license status.
|
||||
|
||||
|
||||
%files -n python3-chardet -f %{pyproject_files}
|
||||
%doc README.rst
|
||||
%{_bindir}/chardetect
|
||||
%{_mandir}/man1/chardetect.1*
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1
|
||||
- Initial release
|
||||
|
||||
%autochangelog
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
f8c510a6fac300fe0ac9a0c24a76a7ba chardet-1.0.1.tgz
|
||||
SHA512 (chardet-5.2.0-filtered.tar.zst) = 410b2d62c54781f9b848ee78c659d4607bbb7f94f6117d7fa7cd5f82a50dfaf10d6e4c6dfaefa9b9a721b846c167aa12eae029debbaa66b0d830875c8ce5749c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue