Compare commits

...
Sign in to create a new pull request.

95 commits

Author SHA1 Message Date
Python Maint
17642dfc17 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:58:27 +02:00
Python Maint
2683a63371 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 13:54:11 +02:00
Fedora Release Engineering
74eeca0894 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 07:09:54 +00:00
Python Maint
1b67fcd42b Rebuilt for Python 3.14 2025-06-02 20:12:11 +02:00
Benjamin A. Beasley
f3975537e1 F41+: Use the provisional pyproject declarative buildsystem 2025-05-03 08:03:22 -04:00
Benjamin A. Beasley
09b953d845 Update .rpmlintrc file for current rpmlint 2025-05-03 08:01:53 -04:00
Fedora Release Engineering
353a16c6dc Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 12:50:21 +00:00
Benjamin A. Beasley
de9115b8d0 Remove a debugging line from the get_source script
[skip changelog]
2024-08-06 17:32:36 -04:00
Benjamin A. Beasley
0216c447b6 Fix source archive, which was xz-compressed despite the .zst extension 2024-07-29 08:06:21 -04:00
Fedora Release Engineering
e544222c20 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 10:18:16 +00:00
Benjamin A. Beasley
e8ed5df38f F41+: Stop building PDF documentation; drop -doc subpackage 2024-07-05 16:37:52 -04:00
Miro Hrončok
b65093a110 Disable doc on RHEL
There is no /usr/bin/xindy in c9s, epel9, c10s.

This package might be needed in future epel10 for tox.

[skip changelog]
2024-07-04 23:07:41 +02:00
Python Maint
09dae8a7bb Rebuilt for Python 3.13 2024-06-07 20:41:48 +02:00
Python Maint
a2f928beb2 Bootstrap for Python 3.13 2024-06-07 08:39:31 +02:00
Benjamin A. Beasley
be25609845 Use zstd instead of xz for filtered source archive compression
This is based on the relative health of the upstream projects.
2024-04-04 22:48:39 -04:00
Benjamin A. Beasley
f5e5a80c16 Make the filtered source archive more reproducible 2024-04-04 22:48:23 -04:00
Benjamin A. Beasley
63ae951a91 Update rpmlintrc file
[skip changelog]
2024-04-04 22:48:21 -04:00
Benjamin A. Beasley
efdc312e8f Add an rpmlintrc file
[skip changelog]
2024-03-28 20:10:20 -04:00
Fedora Release Engineering
c079aef0ca Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 02:21:39 +00:00
Fedora Release Engineering
e1a31906fd Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 00:05:33 +00:00
Benjamin A. Beasley
b11aa7eefc Assert that %pyproject_files contains a license file 2023-12-17 13:40:37 -05:00
Benjamin A. Beasley
01a67c2e9d Update to 5.2.0 (close RHBZ#2228250) 2023-08-01 21:01:12 -04:00
Fedora Release Engineering
07aea33b15 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 08:19:39 +00:00
Benjamin A. Beasley
188cee849d When PDF docs are disabled, omit the -doc subpackage 2023-07-11 08:13:08 -04:00
Benjamin A. Beasley
94b3a06b76 Use new (rpm 4.17.1+) bcond style 2023-07-06 21:05:56 -04:00
Python Maint
ced676c2d7 Rebuilt for Python 3.12 2023-06-16 08:18:02 +02:00
Python Maint
1159f9bf7b Bootstrap for Python 3.12 2023-06-13 20:33:25 +02:00
Benjamin A. Beasley
70b1e7fa69 Don’t assume %_smp_mflags is -j%_smp_build_ncpus 2023-03-17 09:55:48 -04:00
Fedora Release Engineering
1bae21d579 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 12:03:12 +00:00
Benjamin A. Beasley
504995a382 Update to 5.1.0 (close RHBZ#2150154) 2022-12-01 18:01:02 -05:00
Benjamin A. Beasley
8d4593d9d9 Update License to SPDX 2022-10-21 09:18:15 -04:00
Fedora Release Engineering
7c2ef5edec Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 17:15:48 +00:00
Benjamin A. Beasley
4e6f753383 Update to 5.0.0 (close RHBZ#2101067) 2022-06-25 13:01:53 -04:00
Benjamin A. Beasley
54e08a90f3 Fix get_source_script 2022-06-25 12:59:37 -04:00
Benjamin A. Beasley
5ac8e73c24 Drop test data with problematic license status 2022-06-25 12:53:26 -04:00
Benjamin A. Beasley
47140811aa BR python3dist(hypothesis) to enable more tests 2022-06-25 10:56:55 -04:00
Benjamin A. Beasley
404157ecdc Package Sphinx-generated PDF in a -doc subpackage 2022-06-25 10:51:49 -04:00
Benjamin A. Beasley
e537507a1b Drop explicit pyproject-rpm-macros BR 2022-06-25 10:20:01 -04:00
Benjamin A. Beasley
4c620ca71a Update summary and description from upstream 2022-06-25 10:19:04 -04:00
Benjamin A. Beasley
f47b6c6309 Add a man page for the chardetect command 2022-06-25 10:08:20 -04:00
Benjamin A. Beasley
fd71cc4645 Correct License from LGPLv2 to LGPLv2+ 2022-06-25 10:01:11 -04:00
Benjamin A. Beasley
f6552e77b0 Opt in to rpmautospec 2022-06-25 09:07:01 -04:00
Python Maint
b660867530 Rebuilt for Python 3.11 2022-06-13 17:09:17 +02:00
Python Maint
c74715dc2b Bootstrap for Python 3.11 2022-06-13 14:58:50 +02:00
Fedora Release Engineering
6955ef0ec4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 11:05:32 +00:00
Karolina Surma
3d69120124 Remove pipenv metadata
This package is bundled with pipenv, there is no need to test it with
Fedora's version.
2021-08-03 10:08:30 +02:00
Fedora Release Engineering
b4451f5f06 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 05:35:29 +00:00
Karolina Surma
d621a0aae0 Run pipenv tests on package update 2021-07-02 12:40:44 +02:00
Python Maint
648edbafb2 Rebuilt for Python 3.10 2021-06-02 17:02:14 +02:00
Python Maint
dfeac08817 Bootstrap for Python 3.10 2021-06-02 11:13:30 +02:00
Miro Hrončok
73037ec629 Convert to pyproject-rpm-macros 2021-02-05 12:03:12 +01:00
Miro Hrončok
6770299bbc Update to 4.0.0 2021-02-05 11:55:12 +01:00
Fedora Release Engineering
1f30dbfcea - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 09:47:01 +00:00
Fedora Release Engineering
2a8b62bcef - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 00:08:08 +00:00
Miro Hrončok
5c191bbe10 Rebuilt for Python 3.9 2020-05-22 15:50:49 +02:00
Miro Hrončok
c7732f881c Bootstrap for Python 3.9 2020-05-22 04:35:29 +02:00
Fedora Release Engineering
9f6cb06a91 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 11:09:44 +00:00
Miro Hrončok
4a8271ecba Subpackage python2-chardet has been removed 2019-11-14 11:02:42 +01:00
Miro Hrončok
19290cb937 Rebuilt for Python 3.8.0rc1 (#1748018) 2019-10-03 14:05:42 +02:00
Miro Hrončok
d947672d8f Rebuilt for Python 3.8 2019-08-15 15:41:37 +02:00
Miro Hrončok
ef4c7330c8 Bootstrap for Python 3.8 2019-08-14 23:58:51 +02:00
Fedora Release Engineering
a860223f54 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 12:38:19 +00:00
Miro Hrončok
31fb39b3ae Support pytest 4 (#1687942) 2019-03-12 18:53:12 +01:00
Miro Hrončok
0d57d4096d Circular dependency on pytest, add bcond 2019-03-11 07:47:51 +01:00
Fedora Release Engineering
13a39db950 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 06:03:27 +00:00
Miro Hrončok
631a7704b8 Modernize spec
- only ship one version of the executable
- run tests
- drop python3 conditional
- use mdoern macros
- don't do py3dir
- remove Group definition
2018-08-17 14:18:14 +02:00
Fedora Release Engineering
481b4eaf24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 23:45:51 +00:00
Miro Hrončok
b174f7e6a8 Rebuilt for Python 3.7 2018-06-14 00:36:32 +02:00
Iryna Shcherbina
e30d288e7f Update Python 2 dependency declarations to new packaging standards 2018-02-12 00:44:02 +01:00
Fedora Release Engineering
5eba2c4cd2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 07:02:35 +00:00
Zbigniew Jędrzejewski-Szmek
fba4f3316d Python 2 binary package renamed to python2-chardet 2017-08-19 09:39:52 -04:00
Fedora Release Engineering
2271487493 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 09:51:20 +00:00
Jeremy Cline
5737c81db4
Adjust the sed call since chardetect.py moved
Signed-off-by: Jeremy Cline <jeremy@jcline.org>
2017-06-20 15:09:06 -04:00
Jeremy Cline
a956d8fe40
Update to 3.0.4
Signed-off-by: Jeremy Cline <jeremy@jcline.org>
2017-06-20 14:55:43 -04:00
Fedora Release Engineering
9e6423d7e6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 08:34:05 +00:00
Charalampos Stratakis
1577a13a8a Rebuild for Python 3.6 2016-12-11 13:26:23 +01:00
Miro Hrončok
9973efd3a8 Update to 2.3.0 (#1150536) 2016-07-27 12:08:34 +02:00
Fedora Release Engineering
ad2fc6b38d - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 09:12:32 +00:00
Fedora Release Engineering
1428284b2b - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 19:11:38 +00:00
Robert Kuska
8bf0e9907d Rebuilt for Python3.5 rebuild 2015-10-14 12:58:42 +02:00
Dennis Gilmore
1d11ce81ff - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 18:44:17 +00:00
Tom Callaway
1e01f3eec0 fix license handling 2014-07-31 10:02:24 -04:00
Miro Hrončok
5be0e0171b Updated, added python3 subpackage 2014-07-02 17:59:30 +02:00
Dennis Gilmore
c6cc577ae0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 14:03:30 -05:00
Dennis Gilmore
caedaec44d - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-04 01:41:03 -05:00
Dennis Gilmore
d212b2f2a2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 13:06:03 -06:00
Dennis Gilmore
f55b4c59c8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-21 00:18:44 -05:00
Dennis Gilmore
2108229038 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-13 19:37:05 -06:00
Dennis Gilmore
cb6c147eed - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 21:13:07 -06:00
Fedora Release Engineering
0d0a7a428c dist-git conversion 2010-07-29 10:14:18 +00:00
dmalcolm
401ac81241 - Rebuilt for
https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2010-07-22 03:55:52 +00:00
Kushal Das
44e00cf733 Updating to new release of 2.0.1 2010-04-07 09:53:48 +00:00
Bill Nottingham
819c1db1cd Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 23:31:53 +00:00
Jesse Keating
2fc9fb2568 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-26 20:12:11 +00:00
Kushal Das
26385f4e33 Found the long lost srpm, imported first time. 2009-04-12 08:50:15 +00:00
9 changed files with 317 additions and 21 deletions

View file

7
.gitignore vendored Normal file
View 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

View file

@ -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
View 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
View 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
View 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

11
python-chardet.rpmlintrc Normal file
View 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 ")

78
python-chardet.spec Normal file
View file

@ -0,0 +1,78 @@
Name: python-chardet
Version: 5.2.0
Release: %autorelease
Summary: Python character encoding detector
# 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
%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
%{common_description}
%package -n python3-chardet
Summary: %{summary}
# Removed in F41:
Obsoletes: python-chardet-doc < 5.2.0-12
%description -n python3-chardet
%{common_description}
%install -a
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE2}'
# 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
%autochangelog

View file

@ -0,0 +1 @@
SHA512 (chardet-5.2.0-filtered.tar.zst) = 410b2d62c54781f9b848ee78c659d4607bbb7f94f6117d7fa7cd5f82a50dfaf10d6e4c6dfaefa9b9a721b846c167aa12eae029debbaa66b0d830875c8ce5749c