From 83b6a3eddf1707b8d5eb4f96079dd7e7a50b049fe10d6bd74649999c21fc16d9 Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Tue, 17 Feb 2015 10:22:31 +0000
Subject: [PATCH] Accepting request 286297 from
home:alois:branches:devel:languages:python
Updated to 2.3.0
OBS-URL: https://build.opensuse.org/request/show/286297
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-chardet?expand=0&rev=17
---
chardet-2.1.1.tar.bz2 | 3 ---
chardet-2.3.0.tar.bz2 | 3 +++
python-chardet-rpmlintrc | 3 +++
python-chardet.changes | 13 +++++++++++++
python-chardet.spec | 16 +++++++---------
5 files changed, 26 insertions(+), 12 deletions(-)
delete mode 100644 chardet-2.1.1.tar.bz2
create mode 100644 chardet-2.3.0.tar.bz2
create mode 100644 python-chardet-rpmlintrc
diff --git a/chardet-2.1.1.tar.bz2 b/chardet-2.1.1.tar.bz2
deleted file mode 100644
index 85d0c99..0000000
--- a/chardet-2.1.1.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:7b060958480939141f3133477f6811dca022ca145611ff65af590d1c55c48ab9
-size 143195
diff --git a/chardet-2.3.0.tar.bz2 b/chardet-2.3.0.tar.bz2
new file mode 100644
index 0000000..03b4fa9
--- /dev/null
+++ b/chardet-2.3.0.tar.bz2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:631fa4710e363fcfd36f932ff44871b8f2f3b91ebb3d992b7280e7be83beed26
+size 130671
diff --git a/python-chardet-rpmlintrc b/python-chardet-rpmlintrc
new file mode 100644
index 0000000..bb1d6f0
--- /dev/null
+++ b/python-chardet-rpmlintrc
@@ -0,0 +1,3 @@
+# remove warnings about modules not being executable
+addFilter("non-executable-script")
+
diff --git a/python-chardet.changes b/python-chardet.changes
index a75bc7b..0f6d67a 100644
--- a/python-chardet.changes
+++ b/python-chardet.changes
@@ -1,3 +1,16 @@
+-------------------------------------------------------------------
+Tue Feb 10 23:45:01 UTC 2015 - aloisio@gmx.com
+
+- Update to version 2.3.0
+ * Added support for CP932 detection (thanks to @hashy)
+ * Fixed an issue where UTF-8 with a BOM would not be detected
+ as UTF-8-SIG (#8)
+ * Modified chardetect to use argparse for argument parsing
+ * Moved docs to a gh-pages branch. You can now access them
+ at http://chardet.github.io
+- Changelog on https://github.com/chardet/chardet/commits/2.3.0
+- Other minor changes
+
-------------------------------------------------------------------
Thu Oct 24 11:00:03 UTC 2013 - speilicke@suse.com
diff --git a/python-chardet.spec b/python-chardet.spec
index 048ada5..f69622c 100644
--- a/python-chardet.spec
+++ b/python-chardet.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-chardet
#
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -17,20 +17,18 @@
Name: python-chardet
-Version: 2.1.1
+Version: 2.3.0
Release: 0
Summary: Universal encoding detector
License: LGPL-2.1+
Group: Development/Languages/Python
-Url: http://chardet.feedparser.org/
-Source: chardet-%{version}.tar.bz2
+Url: https://github.com/chardet/chardet
+Source0: chardet-%{version}.tar.bz2
+Source1: python-chardet-rpmlintrc
BuildRequires: python-devel
BuildRequires: python-setuptools
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
+%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
@@ -75,6 +73,6 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%{python_sitelib}/*
-%{_bindir}/chardetect.py
+%{_bindir}/chardetect
%changelog