From 8907222061ddded78dc251bdd7c902826e509a8d13b36d764d94ccaa7aa495b8 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 31 Jan 2012 14:51:05 +0000 Subject: [PATCH 1/3] - 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* From bb23e2683f0f9894f723d1124be8e73036aeb6e6f4492b08151fef290b4ef54e Mon Sep 17 00:00:00 2001 From: Greg Freemyer Date: Tue, 31 Jan 2012 22:56:39 +0000 Subject: [PATCH 2/3] Accepting request 102303 from home:gregfreemyer:Tools-for-forensic-boot-cd Minor spec file clean up. No end user impact. OBS-URL: https://build.opensuse.org/request/show/102303 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fuse?expand=0&rev=5 --- python-fuse.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python-fuse.spec b/python-fuse.spec index 14edb4d..873bc8e 100644 --- a/python-fuse.spec +++ b/python-fuse.spec @@ -1,5 +1,5 @@ # -# spec file for package python-fuse-python +# spec file for package python-fuse # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -27,6 +27,7 @@ BuildRequires: fuse-devel BuildRequires: pkg-config BuildRequires: python-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build + %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 @@ -41,9 +42,7 @@ Python bindings for FUSE (User space File System) CFLAGS="%{optflags}" python setup.py build %install -python setup.py install --root=%{buildroot} -mv %{buildroot}%{_prefix}/local/* %{buildroot}/usr -rm -rf %{buildroot}%{_prefix}/local +python setup.py install --root=%{buildroot} --prefix=%{_prefix} %files %defattr(-,root,root) From d5164493f2deacc3272e159f28c685995d8e9f9020598dcecff97a4276fef7af Mon Sep 17 00:00:00 2001 From: Greg Freemyer Date: Tue, 7 Feb 2012 00:09:26 +0000 Subject: [PATCH 3/3] Accepting request 102952 from home:gregfreemyer:Tools-for-forensic-boot-cd a small specfile cleanum OBS-URL: https://build.opensuse.org/request/show/102952 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fuse?expand=0&rev=7 --- python-fuse.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/python-fuse.spec b/python-fuse.spec index 873bc8e..70df9e1 100644 --- a/python-fuse.spec +++ b/python-fuse.spec @@ -42,11 +42,9 @@ Python bindings for FUSE (User space File System) CFLAGS="%{optflags}" python setup.py build %install -python setup.py install --root=%{buildroot} --prefix=%{_prefix} +python setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm=INSTALLED_FILES -%files +%files -f INSTALLED_FILES %defattr(-,root,root) -%doc AUTHORS COPYING Changelog FAQ PKG-INFO README* -%{python_sitearch}/* %changelog