From 67902cc7898bb77d98462b551f4a16a085da05cac75d127f6a7f2ac0f6d09900 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Thu, 31 Mar 2011 13:52:43 +0000 Subject: [PATCH] Accepting request 65631 from devel:languages:python Accepted submit request 65631 from user coolo OBS-URL: https://build.opensuse.org/request/show/65631 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-chardet?expand=0&rev=5 --- python-chardet.changes | 6 ++++ python-chardet.spec | 68 +++++++++++++++++++++++------------ python2-chardet-2.0.1.tar.bz2 | 3 ++ python2-chardet-2.0.1.tar.gz | 3 -- 4 files changed, 55 insertions(+), 25 deletions(-) create mode 100644 python2-chardet-2.0.1.tar.bz2 delete mode 100644 python2-chardet-2.0.1.tar.gz diff --git a/python-chardet.changes b/python-chardet.changes index 6ea83b5..a7bd7d2 100644 --- a/python-chardet.changes +++ b/python-chardet.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Mar 26 02:11:35 UTC 2011 - alexandre@exatati.com.br + +- Regenerate spec file with py2pack; +- Bzip2 source file. + ------------------------------------------------------------------- Mon Jan 25 14:35:35 UTC 2010 - alexandre@exatati.com.br diff --git a/python-chardet.spec b/python-chardet.spec index 16d2fcc..4e3b04c 100644 --- a/python-chardet.spec +++ b/python-chardet.spec @@ -1,7 +1,7 @@ # -# spec file for package python-chardet (Version 2.0.1) +# spec file for package python-chardet # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -11,45 +11,69 @@ # 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 http://bugs.opensuse.org/ # # norootforbuild +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%define mod_name chardet -Name: python-chardet +Name: python-%{mod_name} Version: 2.0.1 -Release: 1 -Summary: Universal encoding detectorUniversal encoding detector +Release: 0 +Url: http://chardet.feedparser.org/ +Summary: Universal encoding detector License: LGPL -Group: Development/Libraries/Python -Source: python2-chardet-%{version}.tar.gz -Url: http://chardet.feedparser.org -BuildRequires: python-devel python-setuptools +Group: Development/Languages/Python +Source: python2-%{mod_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{py_requires} -%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} +BuildRequires: python-devel +%if 0%{?suse_version} +%py_requires +%if 0%{?suse_version} > 1110 BuildArch: noarch %endif +%endif %description -Universal encoding detector. - -Author: --------- - Mark Pilgrim +Universal character encoding detector +------------------------------------- +Detects + - ASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants) + - Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN (Traditional and Simplified Chinese) + - EUC-JP, SHIFT_JIS, ISO-2022-JP (Japanese) + - EUC-KR, ISO-2022-KR (Korean) + - KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic) + - ISO-8859-2, windows-1250 (Hungarian) + - ISO-8859-5, windows-1251 (Bulgarian) + - windows-1252 (English) + - ISO-8859-7, windows-1253 (Greek) + - ISO-8859-8, windows-1255 (Visual and Logical Hebrew) + - TIS-620 (Thai) %prep -%setup -q -n python2-chardet-%{version} +%setup -q -n python2-%{mod_name}-%{version} %build -%{__python} setup.py build +export CFLAGS="%{optflags}" +python setup.py build %install -%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +# You may have to add additional files here (documentation and binaries mostly) +%python_sitelib/%{mod_name}* +%if 0%{suse_version} > 1010 +%python_sitelib/*.egg-info +%endif -%files -f INSTALLED_FILES -%defattr(-,root,root) %changelog diff --git a/python2-chardet-2.0.1.tar.bz2 b/python2-chardet-2.0.1.tar.bz2 new file mode 100644 index 0000000..ea413d6 --- /dev/null +++ b/python2-chardet-2.0.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11fd7d03421b617591533d6fc2de1860bd9248008b61d8a3539468d3f9d5393b +size 141573 diff --git a/python2-chardet-2.0.1.tar.gz b/python2-chardet-2.0.1.tar.gz deleted file mode 100644 index 2ce2505..0000000 --- a/python2-chardet-2.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:56fa0c37189b0a5f082d064dec59d69a044aaa3eeb7acb9b3081e2ba306deaa4 -size 177793