Sync from SUSE:ALP:Source:Standard:1.0 saltbundlepy-chardet revision a9b3e5798e885f1f26954b9adae016b3
This commit is contained in:
commit
3d42b249a8
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
chardet-5.1.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
chardet-5.1.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
3
saltbundlepy-chardet-rpmlintrc
Normal file
3
saltbundlepy-chardet-rpmlintrc
Normal file
@ -0,0 +1,3 @@
|
||||
# remove warnings about modules not being executable
|
||||
addFilter("non-executable-script")
|
||||
|
160
saltbundlepy-chardet.changes
Normal file
160
saltbundlepy-chardet.changes
Normal file
@ -0,0 +1,160 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 15 11:19:37 UTC 2023 - Victor Zhestkov <vzhestkov@suse.com>
|
||||
|
||||
- Update to 5.1.0:
|
||||
* Add should_rename_legacy argument to most functions, which will rename
|
||||
older encodings to their more modern equivalents (e.g., GB2312 becomes
|
||||
GB18030) (#264, @dan-blanchard)
|
||||
* Add capital letter sharp S and ISO-8859-15 support
|
||||
* Add a prober for MacRoman encoding
|
||||
* Add --minimal flag to chardetect command
|
||||
* Add type annotations to the project and run mypy on CI
|
||||
* Add support for Python 3.11
|
||||
* Clarify LGPL version in License trove classifier (#255, @musicinmybrain)
|
||||
* Remove support for EOL Python 3.6 (#260, @jdufresne)
|
||||
* Remove unnecessary guards for non-falsey values (#259, @jdufresne)
|
||||
* Switch to Python 3.10 release in GitHub actions (#257, @jdufresne)
|
||||
* Remove setup.py in favor of build package (#262, @jdufresne)
|
||||
* Run tests on macos, Windows, and 3.11-dev (#267, @dan-blanchard)
|
||||
|
||||
- Update to 5.0.0:
|
||||
* This release is the first release of chardet that no longer
|
||||
supports Python < 3.6
|
||||
* Added a prober for Johab Korean (#207, @grizlupo)
|
||||
* Added a prober for UTF-16/32 BE/LE (#109, #206, @jpz)
|
||||
* Added test data for Croatian, Czech, Hungarian, Polish, Slovak,
|
||||
Slovene, Greek, and Turkish, which should help prevent future
|
||||
errors with those languages
|
||||
* Improved XML tag filtering, which should improve accuracy for
|
||||
XML files (#208)
|
||||
* Tweaked SingleByteCharSetProber confidence to match latest
|
||||
uchardet (#209)
|
||||
* Made detect_all return child prober confidences (#210)
|
||||
* Updated examples in docs (#223, @domdfcoding)
|
||||
* Documentation fixes (#212, #224, #225, #226, #220, #221, #244
|
||||
from too many to mention)
|
||||
* Minor performance improvements (#252, @deedy5)
|
||||
* Add support for Python 3.10 when testing (#232, @jdufresne)
|
||||
* Lots of little development cycle improvements, mostly thanks to
|
||||
@jdufresne
|
||||
|
||||
- Drop prevent_fake_link.patch as not needed anymore
|
||||
|
||||
- Removed:
|
||||
* prevent_fake_link.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 5 13:05:03 UTC 2022 - Victor Zhestkov <victor.zhestkov@suse.com>
|
||||
|
||||
- On building package fdupes can create improper symbolic link for
|
||||
an empty file chardet/cli/__init__.py
|
||||
- Make rpmlint not reacting on script file in the docs as
|
||||
we are not shipping it with the Salt Bundle anyway
|
||||
|
||||
- Added:
|
||||
* prevent_fake_link.patch
|
||||
* saltbundlepy-chardet-rpmlintrc
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 4 12:29:39 UTC 2022 - Victor Zhestkov <victor.zhestkov@suse.com>
|
||||
|
||||
- Strictly require Python 3.10 with saltbundlepy requrement
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 20 21:47:30 UTC 2017 - dmueller@suse.com
|
||||
|
||||
- add update-alternatives post-requires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 25 13:09:48 UTC 2017 - tbechtold@suse.com
|
||||
|
||||
- Fix build for Leap-42.3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 15 09:57:21 UTC 2017 - dmueller@suse.com
|
||||
|
||||
- add update-alternative support for py2/py3 coinstallability
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 29 08:43:41 UTC 2017 - ecsos@opensuse.org
|
||||
|
||||
- fix source link
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 10 08:39:04 UTC 2017 - dmueller@suse.com
|
||||
|
||||
- update to 3.0.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 21 13:57:55 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
- do not use %py_ver, replace with %python_version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 19 08:23:54 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
- Converted to single spec.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 30 21:41:47 UTC 2017 - rjschwei@suse.com
|
||||
|
||||
- Include in SLE 12 (bsc#1002895, FATE#321630)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 11 05:49:58 UTC 2015 - arun@gmx.de
|
||||
|
||||
- specfile:
|
||||
* added update alternative to prevent conflicts with python3 version
|
||||
* add tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 10 23:45:01 UTC 2015 - aloisio@gmx.com
|
||||
|
||||
- Update to version 2.3.0
|
||||
* Added support for CP932 detection (thanks to @hashy)
|
||||
* Fixed an issue where UTF-8 with a BOM would not be detected
|
||||
as UTF-8-SIG (#8)
|
||||
* Modified chardetect to use argparse for argument parsing
|
||||
* Moved docs to a gh-pages branch. You can now access them
|
||||
at http://chardet.github.io
|
||||
- Changelog on https://github.com/chardet/chardet/commits/2.3.0
|
||||
- Other minor changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 24 11:00:03 UTC 2013 - speilicke@suse.com
|
||||
|
||||
- Require python-setuptools instead of distribute (upstreams merged)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 2 03:09:41 UTC 2012 - alexandre@exatati.com.br
|
||||
|
||||
- Update to 2.1.1:
|
||||
- Sorry, no changelog.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 27 15:10:36 UTC 2012 - alexandre@exatati.com.br
|
||||
|
||||
- Update to 1.1:
|
||||
- Sorry, no changelog.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 28 22:18:53 UTC 2011 - alexandre@exatati.com.br
|
||||
|
||||
- Standard in spec file;
|
||||
- Remove CFLAGS and %clean section from spec file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 8 11:12:41 UTC 2011 - coolo@suse.com
|
||||
|
||||
- the license seems to be LGPL-2.1+
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 26 02:11:35 UTC 2011 - alexandre@exatati.com.br
|
||||
|
||||
- Regenerate spec file with py2pack;
|
||||
- Bzip2 source file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 25 14:35:35 UTC 2010 - alexandre@exatati.com.br
|
||||
|
||||
- Initial package (2.0.1) for openSUSE.
|
115
saltbundlepy-chardet.spec
Normal file
115
saltbundlepy-chardet.spec
Normal file
@ -0,0 +1,115 @@
|
||||
#
|
||||
# spec file for package saltbundlepy-chardet
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}}
|
||||
%define pythons saltbundlepy
|
||||
|
||||
# Disable python bytecompile for all distros
|
||||
# It's called explicitly in the spec
|
||||
%global __brp_python_bytecompile %{nil}
|
||||
|
||||
%bcond_with tests
|
||||
|
||||
Name: saltbundlepy-chardet
|
||||
Version: 5.1.0
|
||||
Release: 0
|
||||
Summary: Universal encoding detector
|
||||
License: LGPL-2.1-or-later
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/chardet/chardet
|
||||
Source0: https://files.pythonhosted.org/packages/source/c/chardet/chardet-%{version}.tar.gz
|
||||
Source1: saltbundlepy-chardet-rpmlintrc
|
||||
BuildRequires: %{saltbundlepy_module devel >= 3.10}
|
||||
BuildRequires: %{saltbundlepy_module pip}
|
||||
BuildRequires: %{saltbundlepy_module wheel}
|
||||
%if %{with tests}
|
||||
BuildRequires: %{saltbundlepy_module hypothesis}
|
||||
BuildRequires: %{saltbundlepy_module pytest-runner}
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: saltbundlepy-rpm-macros
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires: saltbundlepy-base
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
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, ISO-2022-JP (Japanese)
|
||||
- EUC-KR, ISO-2022-KR (Korean)
|
||||
- KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic)
|
||||
- ISO-8859-2, windows-1250 (Hungarian)
|
||||
- ISO-8859-5, windows-1251 (Bulgarian)
|
||||
- windows-1252 (English)
|
||||
- ISO-8859-7, windows-1253 (Greek)
|
||||
- ISO-8859-8, windows-1255 (Visual and Logical Hebrew)
|
||||
- TIS-620 (Thai)
|
||||
|
||||
Requires Python 2.1 or later
|
||||
|
||||
Command-line Tool
|
||||
-----------------
|
||||
|
||||
chardet comes with a command-line script which reports on the encodings of one
|
||||
or more files::
|
||||
|
||||
% chardetect.py somefile someotherfile
|
||||
somefile: windows-1252 with confidence 0.5
|
||||
someotherfile: ascii with confidence 1.0
|
||||
|
||||
%prep
|
||||
%setup -q -n chardet-%{version}
|
||||
%autopatch -p1
|
||||
sed -i '1{/^#!/d}' chardet/lang*model.py chardet/metadata/languages.py
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/chardetect
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%prepare_alternative chardetect
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
donttest="test_detect_all_and_detect_one_should_agree"
|
||||
%pytest -k "not $donttest"
|
||||
%endif
|
||||
|
||||
%post
|
||||
%python_install_alternative chardetect
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative chardetect
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%python_alternative %{_bindir}/chardetect
|
||||
%{python_sitelib}/chardet
|
||||
%{python_sitelib}/chardet-%{version}*-info
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user