Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
5796c1a7f1
!7 【轻量级 PR】:fix bad date in %changelog
From: @loong-C 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-06-16 09:14:27 +00:00
loong-C
b0a26d5db9
fix bad date in %changelog 2022-06-16 01:49:24 +00:00
openeuler-ci-bot
2b32f21bee !5 python-cchardet delete BuildRequires gdb
From: @chenyanpanHW
Reviewed-by: @yangzhao_kl
Signed-off-by: @yangzhao_kl
2021-08-05 03:35:18 +00:00
chenyanpanHW
30ad75102c
delete BuildRequires gdb 2021-08-04 21:17:36 +08:00
openeuler-ci-bot
7913900f6c !4 更新python-cchardet至上游最新版2.1.7
From: @jinxu1992
Reviewed-by: @yangzhao_kl
Signed-off-by: @yangzhao_kl
2021-08-03 01:25:57 +00:00
jinxu1992
f41f308bef Update package to 2.1.7 2021-08-02 17:46:13 +08:00
openeuler-ci-bot
f18c7f30f3 !3 Add gcc-c++ for buildrequires
From: @si-gui
Reviewed-by: @myeuler
Signed-off-by: @myeuler
2021-07-27 07:25:47 +00:00
sunguoshuai
28f32c23ad Add gcc-c++ for buildrequires 2021-07-27 15:03:30 +08:00
openeuler-ci-bot
bbb95fb142 !1 Initialize Package
Merge pull request !1 from GuanYL/master
2020-07-30 22:54:38 +08:00
BruceGW
23b7219893 init package 2020-07-29 17:52:37 +08:00
2 changed files with 81 additions and 0 deletions

BIN
cchardet-2.1.7.tar.gz Normal file

Binary file not shown.

81
python-cchardet.spec Normal file
View File

@ -0,0 +1,81 @@
%global _empty_manifest_terminate_build 0
Name: python-cchardet
Version: 2.1.7
Release: 2
Summary: cChardet is high speed universal character encoding detector.
License: GPL-2.0-or-later and LGPL-2.1-only and MPL-1.1
URL: https://github.com/PyYoshi/cChardet
Source0: https://files.pythonhosted.org/packages/a8/5d/090c9f0312b7988a9433246c9cf0b566b1ae1374368cfb8ac897218a4f65/cchardet-2.1.7.tar.gz
%description
cChardet is high speed universal character encoding detector.
%package -n python3-cchardet
Summary: cChardet is high speed universal character encoding detector.
Provides: python-cchardet
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-cffi
BuildRequires: gcc gcc-c++
%description -n python3-cchardet
cChardet is high speed universal character encoding detector.
%package help
Summary: Development documents and examples for cchardet
Provides: python3-cchardet-doc
%description help
cChardet is high speed universal character encoding detector.
%prep
%autosetup -n cchardet-2.1.7
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-cchardet -f filelist.lst
%dir %{python3_sitearch}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Wed Aug 04 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.1.7-2
- DESC: delete BuildRequires gdb
* Mon Aug 02 2021 Xu Jin <jinxu@kylinos.cn> - 2.1.7-1
- Update package to 2.1.7
* Tue Jul 27 2021 sunguoshuai <sunguoshuai@huawei.com> - 2.1.6-2
- Add gcc-c++ for buildrequires
* Wed Jul 29 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated