[perl-GD] modernize spec

Iain Arnell iarnell at fedoraproject.org
Sat Jun 18 00:50:19 UTC 2011


commit 951fa152d9747bb65a8849794d05321aae99c44a
Author: Iain Arnell <iarnell at gmail.com>
Date:   Sat Jun 18 02:42:40 2011 +0200

    modernize spec

 perl-GD.spec |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/perl-GD.spec b/perl-GD.spec
index da14651..af3cf4b 100644
--- a/perl-GD.spec
+++ b/perl-GD.spec
@@ -12,13 +12,14 @@ Patch1:		perl-GD-skip-3.patch
 # see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628522
 # and https://rt.cpan.org/Public/Bug/Display.html?id=67990
 Patch2:         perl-GD-ccflags.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  gd-devel >= 2.0.28
 BuildRequires:  perl(ExtUtils::MakeMaker)
 Requires:       gd >= 2.0.28
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
+%{?perl_default_filter}
+
 %description
 This is a autoloadable interface module for GD, a popular library
 for creating and manipulating PNG files.  With this library you can
@@ -44,7 +45,6 @@ make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
@@ -65,12 +65,7 @@ base64 t/test.out.3.png_new
 %endif
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc ChangeLog README README.QUICKDRAW demos/
 %{_bindir}/*
 %{perl_vendorarch}/auto/GD
@@ -84,6 +79,8 @@ rm -rf $RPM_BUILD_ROOT
 * Sat Jun 18 2011 Iain Arnell <iarnell at gmail.com> 2.44-8
 - patch to avoid issue with ExtUtils::MakeMaker and CCFLAGS
   see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628522
+- clean up spec for modern rpmbuild
+- use perl_default_filter
 
 * Wed Jun 15 2011 Marcela Mašláňová <mmaslano at redhat.com> - 2.44-7
 - Perl mass rebuild


More information about the scm-commits mailing list