diff --git a/python-chardet.changes b/python-chardet.changes index fc8da0a..afca02a 100644 --- a/python-chardet.changes +++ b/python-chardet.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Dec 28 22:18:53 UTC 2011 - alexandre@exatati.com.br + +- Standard in spec file; +- Remove CFLAGS and %clean section from spec file. + ------------------------------------------------------------------- Thu Dec 8 11:12:41 UTC 2011 - coolo@suse.com diff --git a/python-chardet.spec b/python-chardet.spec index 9ca2db2..87c9135 100644 --- a/python-chardet.spec +++ b/python-chardet.spec @@ -14,21 +14,17 @@ # 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)")} -%define mod_name chardet - -Name: python-%{mod_name} +Name: python-chardet Version: 2.0.1 Release: 0 Url: http://chardet.feedparser.org/ Summary: Universal encoding detector License: LGPL-2.1+ Group: Development/Languages/Python -Source: python2-%{mod_name}-%{version}.tar.bz2 +Source: python2-chardet-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel %if 0%{?suse_version} @@ -56,24 +52,16 @@ Detects - TIS-620 (Thai) %prep -%setup -q -n python2-%{mod_name}-%{version} +%setup -q -n python2-chardet-%{version} %build -export CFLAGS="%{optflags}" python setup.py build %install 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 +%{python_sitelib}/* %changelog