commit 1b77e28405cb13753ae7982bde673fa466e1b5b337d37c79a93bdd42100eb9b1 Author: Ondřej Súkup Date: Wed Dec 11 13:04:45 2019 +0000 - add fix-collections.patch to import from colllections.abc OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cchardet?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/cchardet-2.1.5.tar.gz b/cchardet-2.1.5.tar.gz new file mode 100644 index 0000000..6107372 --- /dev/null +++ b/cchardet-2.1.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:240efe3f255f916769458343840b9c6403cf3192720bc5129792cbcb88bf72fb +size 653280 diff --git a/python-cchardet.changes b/python-cchardet.changes new file mode 100644 index 0000000..7f954f0 --- /dev/null +++ b/python-cchardet.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Dec 11 13:02:14 UTC 2019 - Ondřej Súkup + +- initial commit diff --git a/python-cchardet.spec b/python-cchardet.spec new file mode 100644 index 0000000..ef891d8 --- /dev/null +++ b/python-cchardet.spec @@ -0,0 +1,55 @@ +# +# spec file for package python-cchardet +# +# Copyright (c) 2019 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-cchardet +Version: 2.1.5 +Release: 0 +Summary: cChardet is high speed universal character encoding detector +License: MPL-1.1 +URL: https://github.com/PyYoshi/cChardet +Source: https://files.pythonhosted.org/packages/source/c/cchardet/cchardet-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(uchardet) +%python_subpackages + +%description +cChardet is high speed universal character encoding detector. - binding to `uchardet`_. + +%prep +%setup -q -n cchardet-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%files %{python_files} +%license COPYING +%doc README.rst +%python3_only %{_bindir}/cchardetect +%{python_sitearch}/* + +%changelog