15
0

Accepting request 134037 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/134037
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-chardet?expand=0&rev=10
This commit is contained in:
Stephan Kulow
2012-09-23 15:08:37 +00:00
committed by Git OBS Bridge
4 changed files with 34 additions and 15 deletions

3
chardet-1.1.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d580e326d4d5e882e27e5dc40eb182efafd7490573a8e750ea594cd245aa952f
size 120503

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 27 15:10:36 UTC 2012 - alexandre@exatati.com.br
- Update to 1.1:
- Sorry, no changelog.
-------------------------------------------------------------------
Wed Dec 28 22:18:53 UTC 2011 - alexandre@exatati.com.br

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-chardet
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 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
@@ -14,25 +14,25 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{!?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)")}
Name: python-chardet
Version: 2.0.1
Version: 1.1
Release: 0
Url: http://chardet.feedparser.org/
Summary: Universal encoding detector
License: LGPL-2.1+
Group: Development/Languages/Python
Source: python2-chardet-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://chardet.feedparser.org/
Source: chardet-%{version}.tar.bz2
BuildRequires: python-devel
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildRequires: python-distribute
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?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)")}
%else
BuildArch: noarch
%endif
%endif
%description
Universal character encoding detector
@@ -51,8 +51,20 @@ Detects
- ISO-8859-8, windows-1255 (Visual and Logical Hebrew)
- TIS-620 (Thai)
Requires Python 2.1 or later
Command-line Tool
-----------------
chardet comes with a command-line script which reports on the encodings of one
or more files::
% chardetect.py somefile someotherfile
somefile: windows-1252 with confidence 0.5
someotherfile: ascii with confidence 1.0
%prep
%setup -q -n python2-chardet-%{version}
%setup -q -n chardet-%{version}
%build
python setup.py build
@@ -63,5 +75,6 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%{python_sitelib}/*
%{_bindir}/chardetect.py
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:11fd7d03421b617591533d6fc2de1860bd9248008b61d8a3539468d3f9d5393b
size 141573