Accepting request 102953 from devel:languages:python

spec file clean up - no end user impact except it now builds for SLE_11

OBS-URL: https://build.opensuse.org/request/show/102953
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fuse?expand=0&rev=2
This commit is contained in:
Stephan Kulow 2012-02-14 10:26:31 +00:00 committed by Git OBS Bridge
commit 3740304a7e
2 changed files with 13 additions and 13 deletions

View File

@ -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 Fri Jan 27 22:24:31 UTC 2012 - Greg.Freemyer@gmail.com

View File

@ -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. # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
@ -27,29 +27,24 @@ BuildRequires: fuse-devel
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: python-devel BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build 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 %description
Python bindings for FUSE (User space File System) Python bindings for FUSE (User space File System)
%prep %prep
%setup -q -n fuse-python-%{version} %setup -q -n fuse-python-%{version}
%build %build
env CFLAGS="%{optflags}" python setup.py build CFLAGS="%{optflags}" python setup.py build
%install %install
python setup.py install --root=%{buildroot} python setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm=INSTALLED_FILES
mv %{buildroot}%{_prefix}/local/* %{buildroot}/usr
rm -rf %{buildroot}%{_prefix}/local
%clean %files -f INSTALLED_FILES
rm -rf %{buildroot}
%files
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS COPYING Changelog FAQ PKG-INFO README*
%{python_sitearch}/*
%changelog %changelog