11
0
Sascha Peilicke
2013-01-14 10:19:11 +00:00
committed by Git OBS Bridge
parent b47cf6039c
commit ebf9f85a9f
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 14 10:17:27 UTC 2013 - saschpe@suse.de
- Minimal cleanup
-------------------------------------------------------------------
Tue Jan 8 20:42:17 UTC 2013 - iacobcatalin@gmail.com

View File

@@ -27,7 +27,6 @@ BuildRequires: python-devel
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
BuildArch: noarch
%endif
@@ -42,10 +41,10 @@ extracted as a stand-alone project.
%prep
%setup -q -n cssselect-%{version}
sed -i '/#!\/usr\/bin\/env python/d' cssselect/tests.py
%build
CFLAGS="%{optflags}" python setup.py build
sed -i '/#!\/usr\/bin\/env python/d' cssselect/tests.py
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}