Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
72389c5edf
!29 [sync] PR-28: 清除无用内容
From: @openeuler-sync-bot 
Reviewed-by: @znzjugod 
Signed-off-by: @znzjugod
2023-04-15 09:57:29 +00:00
桐小哥
0feadd6d1e cleanup
Signed-off-by: 桐小哥 <shixuantong1@huawei.com>
(cherry picked from commit 05dc9aa995108375fb1efdce990a97fbd6a240d6)
2023-04-15 17:37:29 +08:00
openeuler-ci-bot
5459b436c9
!24 [sync] PR-20: 【轻量级 PR】:make the test check
From: @openeuler-sync-bot 
Reviewed-by: @gaoruoshu 
Signed-off-by: @gaoruoshu
2023-02-16 08:01:24 +00:00
zhuofeng
e2403b8a90 make the test check
Signed-off-by: zhuofeng <zhuofeng2@huawei.com>
(cherry picked from commit fa7d3278736cb796164613837068b9233c6b055b)
2023-02-16 15:37:54 +08:00
openeuler-ci-bot
52380ec83c
!15 【openEuler-22.03-LTS-Next】update to 5.0.0
From: @zhuofeng6 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-11-04 09:28:56 +00:00
zhuofeng
0152e1d953 update to 5.0.0 2022-10-29 17:29:10 +08:00
openeuler-ci-bot
4e0d431584
!13 【轻量级 PR】:Rebuild for next release
From: @zhangruifang2020 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-10-25 08:10:35 +00:00
张瑞方
624ef4cd4a
Rebuild for next release
Signed-off-by: 张瑞方 <xdzhangruifang@163.com>
2022-10-25 06:15:58 +00:00
openeuler-ci-bot
72b2fec00d !3 Upgrade package version for OpenStack Wallaby support
From: @sean-lau
Reviewed-by: @xiezhipeng1
Signed-off-by: @xiezhipeng1
2021-07-29 11:38:06 +00:00
sean-lau
0db4147e07 Add package for OpenStack Wallaby support 2021-07-28 10:31:29 +08:00
3 changed files with 75 additions and 40 deletions

Binary file not shown.

BIN
chardet-5.0.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,56 +1,91 @@
Name: python-chardet
Version: 3.0.4
Release: 9
Summary: Python 2/3 compatible character encoding detector.
License: LGPL-2.1
URL: https://github.com/chardet/chardet
Source0: https://github.com/chardet/chardet/archive/3.0.4.tar.gz
BuildArch: noarch
BuildRequires: python3-devel, python3-setuptools
%global _empty_manifest_terminate_build 0
Name: python-chardet
Version: 5.0.0
Release: 2
Summary: Universal encoding detector for Python 2 and 3
License: LGPL-2.1-only
URL: https://github.com/chardet/chardet
Source0: https://files.pythonhosted.org/packages/source/c/chardet/chardet-%{version}.tar.gz
BuildArch: noarch
%description
This is a continuation of Mark Pilgrim's excellent chardet. Previously,
two versions needed to be maintained: one that supported python 2.x
and one that supported python 3.x. We've recently merged with
Ian Cordasco's charade fork, so now we have one coherent version that
works for Python 2.7+ and 3.4+.
Universal encoding detector for Python 2 and 3
%package -n python3-chardet
Summary: Python 2/3 compatible character encoding detector.
Summary: Universal encoding detector for Python 2 and 3
Provides: python-chardet
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-pytest
%description -n python3-chardet
Python 2/3 compatible character encoding detector,Python 3 version.
Universal encoding detector for Python 2 and 3
%package help
Summary: Universal encoding detector for Python 2 and 3
Provides: python3-chardet-doc
%description help
Universal encoding detector for Python 2 and 3
%prep
%setup -q -n chardet-3.0.4
sed -ie '1d' chardet/cli/chardetect.py
rm -rf %{py3dir}
cp -a . %{py3dir}
%autosetup -n chardet-%{version} -S git
%build
pushd %{py3dir}
%{__python3} setup.py build
popd
%py3_build
%install
pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
mv %{buildroot}%{_bindir}/{,python3-}chardetect
popd
%py3_install
%files -n python3-chardet
%doc README.rst
%{!?_licensedir:%global license %%doc}
%license LICENSE
%{_bindir}/python3-chardetect
%{python3_sitelib}/*
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 .
%check
%{__python3} -m pytest -v
%files -n python3-chardet -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri Oct 30 2020 wuchaochao <wuchaochao4@huawei.com> - 3.0.4-9
- Type:bufix
* Wed Feb 08 2023 zhuofeng <zhuofeng2@huawei.com> - 5.0.0-2
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:remove python2
- DESC:make the test check
* Sat Sep 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.0.4-8
- Package init
* Sat Oct 29 2022 zhuofeng <zhuofeng2@huawei.com> - 5.0.0-1
- update to 5.0.0
* Tue Oct 25 2022 zhangruifang <zhangruifang1@h-partners.com> - 4.0.0-2
- Rebuild for next release
* Wed Jul 14 2021 OpenStack_SIG <openstack@openeuler.org> - 4.0.0-1
- Package Spec generate