forked from pool/python-tornado
Accepting request 121469 from home:TheBlackCat:branches:devel:languages:python
- Fix rpmlint warnings - Improve openSUSE 11.4 build fix - Clean up spec file OBS-URL: https://build.opensuse.org/request/show/121469 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado?expand=0&rev=19
This commit is contained in:
@@ -28,7 +28,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
Requires: python-pycurl
|
||||
Requires: python-simplejson
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
%if 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
@@ -58,10 +61,17 @@ python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%if 0%{?suse_version}
|
||||
%fdupes demos
|
||||
%endif
|
||||
# fix executability rmplint warning
|
||||
chmod +x %{buildroot}%{python_sitelib}/%{modname}/*.py
|
||||
chmod +x %{buildroot}%{python_sitelib}/%{modname}/*/*.py
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README demos
|
||||
%{python_sitelib}/%{modname}
|
||||
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user