diff --git a/.gitignore b/.gitignore index 1c2a080..5443bd9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/python2-chardet-2.0.1.tgz +SOURCES/chardet-2.2.1.tar.gz diff --git a/.python-chardet.metadata b/.python-chardet.metadata index 4f28767..97c30df 100644 --- a/.python-chardet.metadata +++ b/.python-chardet.metadata @@ -1 +1 @@ -d3240c8b7d04bd15d21feda76158223fa7f5f2bc SOURCES/python2-chardet-2.0.1.tgz +b59690c286ae2bc515da9b34eb30629d72f02e27 SOURCES/chardet-2.2.1.tar.gz diff --git a/SPECS/python-chardet.spec b/SPECS/python-chardet.spec index edbc10f..e557f4c 100644 --- a/SPECS/python-chardet.spec +++ b/SPECS/python-chardet.spec @@ -1,14 +1,14 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-chardet -Version: 2.0.1 -Release: 7%{?dist} +Version: 2.2.1 +Release: 1%{?dist} Summary: Character encoding auto-detection in Python Group: Development/Languages License: LGPLv2 URL: http://chardet.feedparser.org -Source0: http://chardet.feedparser.org/download/python2-chardet-%{version}.tgz +Source0: https://pypi.python.org/packages/source/c/chardet/chardet-2.2.1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -19,7 +19,8 @@ Character encoding auto-detection in Python. As smart as your browser. Open source. %prep -%setup -q -n python2-chardet-%{version} +%setup -q -n chardet-%{version} +sed -ie '1d' chardet/chardetect.py @@ -31,7 +32,6 @@ smart as your browser. Open source. %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT -chmod -x COPYING %clean rm -rf $RPM_BUILD_ROOT @@ -39,12 +39,17 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc COPYING +%doc LICENSE README.rst # For noarch packages: sitelib %{python_sitelib}/* +%{_bindir}/chardetect %changelog +* Mon Jun 01 2015 Matej Stuchlik - 2.2.1-1 +- Update to 2.2.1 +Resolves: rhbz#1233113 + * Fri Dec 27 2013 Daniel Mach - 2.0.1-7 - Mass rebuild 2013-12-27