python-faust-cchardet/python-faust-cchardet.spec

86 lines
2.5 KiB
RPMSpec
Raw Normal View History

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-faust-cchardet
Version: 2.1.19
Release: 2mamba
Summary: A high speed universal character encoding detector
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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: libpython311-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%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
%if "%{?with_pyver}" != "3"
# Rename any conflicting file outside of python site packages tree
for f in %{_bindir}/cchardetect; do
mv %{buildroot}${f}{,-%{?pyappend}}
done
sed -i "\,%{_bindir}/cchardetect,d" %{name}.filelist
%endif
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%{_bindir}/cchardetect*
%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info
%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/*
%doc COPYING
%changelog
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 2.1.19-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Sat Aug 12 2023 Automatic Build System <autodist@mambasoft.it> 2.1.19-1mamba
- automatic version update by autodist
* Tue Aug 01 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.18-2mamba
- rebuilt with python 3.10
* Thu Mar 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.18-1mamba
- update to 2.1.18
* Mon Feb 14 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.7-2mamba
- rebuilt with distdeps
* Mon Nov 09 2020 Automatic Build System <autodist@mambasoft.it> 2.1.7-1mamba
- automatic version update by autodist
* Sun Sep 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.6-1mamba
- package created using the webbuild interface