[perl-MooseX-Types-DateTime] clean up spec for modern rpmbuild

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit dd2056e07b452d981e98b6237417d70ff6d60fad
Author: Iain Arnell <iarnell@xxxxxxxxx>
Date:   Sun Jun 26 14:57:12 2011 +0200

    clean up spec for modern rpmbuild

 perl-MooseX-Types-DateTime.spec |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/perl-MooseX-Types-DateTime.spec b/perl-MooseX-Types-DateTime.spec
index b5a8738..61adfdb 100644
--- a/perl-MooseX-Types-DateTime.spec
+++ b/perl-MooseX-Types-DateTime.spec
@@ -7,7 +7,6 @@ Group:      Development/Libraries
 Summary:    DateTime related constraints and coercions for Moose
 Source:     http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/MooseX-Types-DateTime-%{version}.tar.gz
 Url:        http://search.cpan.org/dist/MooseX-Types-DateTime
-BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 BuildArch:  noarch
 
@@ -45,8 +44,6 @@ find . -type f -exec chmod -c -x {} +
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
 make pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
 find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
@@ -56,11 +53,7 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
 %doc Changes
 %{perl_vendorlib}/*
 %{_mandir}/man3/*.3*
@@ -68,6 +61,7 @@ rm -rf %{buildroot}
 %changelog
 * Sun Jun 26 2011 Iain Arnell <iarnell@xxxxxxxxx> 0.05-7
 - remove unnecessary explicit requires
+- clean up spec for modern rpmbuild
 
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.05-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel


[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux