[libmowgli/f15] Use %_isa in -devel package dependency. Drop unneeded BuildRoot stuff. Drop %defattr lines.

Michael Schwendt mschwendt at fedoraproject.org
Fri Sep 16 19:50:17 UTC 2011


commit e8874bcc6ecd1ee6840ab75e58ad61ecfa3c65b0
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date:   Fri Sep 16 21:50:05 2011 +0200

    Use %_isa in -devel package dependency.
    Drop unneeded BuildRoot stuff.
    Drop %defattr lines.

 libmowgli.spec |   20 ++++++++------------
 1 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/libmowgli.spec b/libmowgli.spec
index 10b58a6..d85bffb 100644
--- a/libmowgli.spec
+++ b/libmowgli.spec
@@ -2,7 +2,7 @@
 
 Name: libmowgli
 Version: 0.9.50
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: Library of many utility functions and classes
 Group: System Environment/Libraries
 
@@ -12,7 +12,6 @@ License: MIT
 URL: http://www.atheme.org/project/mowgli
 
 Source0: http://distfiles.atheme.org/libmowgli-%{version}.tar.bz2
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 
 %description
@@ -26,9 +25,7 @@ performance block allocator.
 %package devel
 Summary: Files needed for developing with libmowgli
 Group: Development/Libraries
-
-Requires: libmowgli = %{version}-%{release}
-Requires: pkgconfig
+Requires: %{name}%{?_isa} = %{version}-%{release}
 
 %description devel
 This package contains the files that are needed when building
@@ -55,8 +52,7 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
+make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
 
 
 %check
@@ -67,27 +63,27 @@ done
 exit 0
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 
 %files
-%defattr(-,root,root,-)
 %doc AUTHORS COPYING README
 %{_libdir}/*.so.*
 
 %files devel
-%defattr(-,root,root,-)
 %doc %{examplesdir}/*
 %{_libdir}/*.so
 %{_includedir}/libmowgli/
 %{_libdir}/pkgconfig/libmowgli.pc
 
 %changelog
+* Fri Sep 16 2011 Michael Schwendt <mschwendt at fedoraproject.org> - 0.9.50-2
+- Use %%_isa in -devel package dependency.
+- Drop unneeded BuildRoot stuff.
+- Drop %%defattr lines.
+
 * Mon Jan 31 2011 Michael Schwendt <mschwendt at fedoraproject.org> - 0.9.50-1
 - Upgrade to 0.9.50.
 - mowgli_dictionary is deprecated and pending removal in Mowgli 1.0 series.


More information about the scm-commits mailing list