From 8907222061ddded78dc251bdd7c902826e509a8d13b36d764d94ccaa7aa495b8 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 31 Jan 2012 14:51:05 +0000 Subject: [PATCH] - Fix SLE_11 build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fuse?expand=0&rev=4 --- python-fuse.changes | 5 +++++ python-fuse.spec | 10 ++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/python-fuse.changes b/python-fuse.changes index e28ad24..a71c10f 100644 --- a/python-fuse.changes +++ b/python-fuse.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 31 14:51:13 UTC 2012 - saschpe@suse.de + +- Fix SLE_11 build + ------------------------------------------------------------------- Fri Jan 27 22:24:31 UTC 2012 - Greg.Freemyer@gmail.com diff --git a/python-fuse.spec b/python-fuse.spec index 7dec7fe..14edb4d 100644 --- a/python-fuse.spec +++ b/python-fuse.spec @@ -27,26 +27,24 @@ BuildRequires: fuse-devel BuildRequires: pkg-config BuildRequires: python-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build -%py_requires +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%endif %description - Python bindings for FUSE (User space File System) %prep %setup -q -n fuse-python-%{version} %build -env CFLAGS="%{optflags}" python setup.py build +CFLAGS="%{optflags}" python setup.py build %install python setup.py install --root=%{buildroot} mv %{buildroot}%{_prefix}/local/* %{buildroot}/usr rm -rf %{buildroot}%{_prefix}/local -%clean -rm -rf %{buildroot} - %files %defattr(-,root,root) %doc AUTHORS COPYING Changelog FAQ PKG-INFO README*