diff --git a/README.md b/README.md index 9dafbd8..d3042f6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-faust-cchardet +A high speed universal character encoding detector. + diff --git a/python-faust-cchardet.spec b/python-faust-cchardet.spec new file mode 100644 index 0000000..da7fc9c --- /dev/null +++ b/python-faust-cchardet.spec @@ -0,0 +1,66 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-faust-cchardet +Version: 2.1.18 +Release: 1mamba +Summary: A high speed universal character encoding detector +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/faust-streaming/cChardet +Source: https://pypi.debian.net/faust-cchardet/faust-cchardet-%{version}.tar.gz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libpython3-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%if "%{?with_pyver}" == "3" +%define py_requires_append \ +Provides: python-cchardet \ +Obsoletes: python-cchardet-py3 <= 2.1.7 +%endif +%pyver_package +%endif + +%prep +%setup -q -n faust-cchardet-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{python_inc} \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files %{?pyappend} -f %{name}.filelist +%defattr(-,root,root) +%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info +%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/* +%doc COPYING + +%changelog +* Thu Mar 09 2023 Silvan Calarco 2.1.18-1mamba +- update to 2.1.18 + +* Mon Feb 14 2022 Silvan Calarco 2.1.7-2mamba +- rebuilt with distdeps + +* Mon Nov 09 2020 Automatic Build System 2.1.7-1mamba +- automatic version update by autodist + +* Sun Sep 27 2020 Silvan Calarco 2.1.6-1mamba +- package created using the webbuild interface