forked from pool/python-chardet
- Standard in spec file;
- Remove CFLAGS and %clean section from spec file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-chardet?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
d1bb1490c2
commit
e07ae4e280
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user