[libspiro] Resolves:rh#879153 - spec cleanup for recent packaging guidelines

paragn paragn at fedoraproject.org
Thu Nov 22 10:32:40 UTC 2012


commit b49d4ecfca7208e983568ba528bdda116d5b8ef1
Author: Parag <paragn at fedoraproject.org>
Date:   Thu Nov 22 16:04:29 2012 +0530

    Resolves:rh#879153 - spec cleanup for recent packaging guidelines

 libspiro.spec |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/libspiro.spec b/libspiro.spec
index 906b4ab..f3c5a1e 100644
--- a/libspiro.spec
+++ b/libspiro.spec
@@ -1,13 +1,12 @@
 Name:           libspiro
 Version:        20071029
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        Library to simplify the drawing of beautiful curves
 
 Group:          System Environment/Libraries
 License:        GPLv2+
 URL:            http://libspiro.sourceforge.net/
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}_src-%{version}.tar.bz2
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
 This library will take an array of spiro control points and 
@@ -17,7 +16,7 @@ be used in the myriad of ways the world has come to use béziers.
 %package        devel
 Summary:        Development files for %{name}
 Group:          Development/Libraries
-Requires:       %{name} = %{version}-%{release}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
 
 %description    devel
 The %{name}-devel package contains libraries and header files for
@@ -31,31 +30,26 @@ developing applications that use %{name}.
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 
 %files
-%defattr(-,root,root,-)
 %doc README gpl.txt README-RaphLevien
 %{_libdir}/*.so.*
 
 %files devel
-%defattr(-,root,root,-)
-%doc README gpl.txt README-RaphLevien
 %{_includedir}/*
 %{_libdir}/*.so
 
 %changelog
+* Thu Nov 22 2012 Parag <paragn AT fedoraproject DOT org> - 20071029-8
+- Resolves:rh#879153 - spec cleanup for recent packaging guidelines
+
 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20071029-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list