[python-pyside] Cleaned up the spec file for modern rpmbuild

Kalev Lember kalev at fedoraproject.org
Thu Jun 23 08:37:09 UTC 2011


commit d6016cb208ee9b12362014c71f1fc1d9d331eeff
Author: Kalev Lember <kalev at smartlink.ee>
Date:   Thu Jun 23 11:33:21 2011 +0300

    Cleaned up the spec file for modern rpmbuild

 python-pyside.spec |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/python-pyside.spec b/python-pyside.spec
index 6b1c6ed..9cd2597 100644
--- a/python-pyside.spec
+++ b/python-pyside.spec
@@ -9,7 +9,6 @@ Group:          Development/Languages
 License:        LGPLv2
 URL:            http://www.pyside.org
 Source0:        http://www.pyside.org/files/pyside-qt4.7+%{version}.tar.bz2
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  cmake
 BuildRequires:  generatorrunner-devel
@@ -66,12 +65,12 @@ make %{?_smp_mflags} -C %{_target_platform}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
 
 # Fix permissions
 chmod 755 $RPM_BUILD_ROOT%{python_sitearch}/PySide/*.so
 
+
 %check
 %if 0%{?runtests}
 # Tests need an X server
@@ -86,23 +85,17 @@ popd
 %endif
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 
 %files
-%defattr(-,root,root,-)
 %doc COPYING PySide/licensecomment.txt
 %{_libdir}/libpyside*.so.*
 %{python_sitearch}/PySide/
 
 %files devel
-%defattr(-,root,root,-)
 %{_includedir}/PySide/
 %{_libdir}/libpyside*.so
 %{_libdir}/cmake/PySide-%{version}/
@@ -113,6 +106,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Thu Jun 23 2011 Kalev Lember <kalev at smartlink.ee> - 1.0.4-1
 - Update to 1.0.4
+- Cleaned up the spec file for modern rpmbuild
 
 * Fri May 27 2011 Kalev Lember <kalev at smartlink.ee> - 1.0.3-1
 - Update to 1.0.3


More information about the scm-commits mailing list