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

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


commit 2b0fc64602e514ce606eca9fac7dac7875f9df75
Author: Kalev Lember <kalev at smartlink.ee>
Date:   Thu Jun 23 11:34:20 2011 +0300

    Cleaned up the spec file for modern rpmbuild

 pyside-tools.spec |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/pyside-tools.spec b/pyside-tools.spec
index ad84072..4687606 100644
--- a/pyside-tools.spec
+++ b/pyside-tools.spec
@@ -9,7 +9,6 @@ Group:          Development/Tools
 License:        GPLv2
 URL:            http://www.pyside.org
 Source0:        http://www.pyside.org/files/pyside-tools-%{version}.tar.bz2
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  cmake
 BuildRequires:  python2-devel
@@ -44,16 +43,10 @@ make %{?_smp_mflags} -C %{_target_platform}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc AUTHORS ChangeLog LICENSE*
 %{_bindir}/pyside-rcc
 %{_bindir}/pyside-uic
@@ -67,6 +60,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Thu Jun 23 2011 Kalev Lember <kalev at smartlink.ee> - 0.2.10-1
 - Update to 0.2.10
+- Cleaned up the spec file for modern rpmbuild
 
 * Fri May 27 2011 Kalev Lember <kalev at smartlink.ee> - 0.2.9-1
 - Update to 0.2.9


More information about the scm-commits mailing list