[perl-Class-Loader] Nobody else likes macros for commands

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

 



commit 26a6357be02c101a0dd463d5d704d62143953740
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Tue Jan 10 14:18:30 2012 +0000

    Nobody else likes macros for commands

 perl-Class-Loader.spec |   53 +++++++++++++++++++++++++----------------------
 1 files changed, 28 insertions(+), 25 deletions(-)
---
diff --git a/perl-Class-Loader.spec b/perl-Class-Loader.spec
index 1ba5aaf..f088eab 100644
--- a/perl-Class-Loader.spec
+++ b/perl-Class-Loader.spec
@@ -1,15 +1,15 @@
 Summary:	Load modules and create objects on demand
 Name:		perl-Class-Loader
 Version:	2.03
-Release:	13%{?dist}
+Release:	14%{?dist}
 License:	GPL+ or Artistic
 Group:		Development/Libraries
 Url:		http://search.cpan.org/dist/Class-Loader/
 Source0:	http://search.cpan.org/CPAN/authors/id/V/VI/VIPUL/Class-Loader-%{version}.tar.gz
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildArch:	noarch
 BuildRequires:	perl(ExtUtils::MakeMaker)
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 Certain applications like to defer the decision to use a particular module till
@@ -27,24 +27,24 @@ names that can be used in place of module names at _load().
 
 %prep
 %setup -q -n Class-Loader-%{version}
-%{__sed} -i -e '/^#! *\/usr\/bin\/perl /d' lib/Class/*.pm
+sed -i -e '/^#! *\/usr\/bin\/perl /d' lib/Class/*.pm
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
-%{__make} %{?_smp_mflags}
-
-%check
-%{__make} test
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 %install
-%{__rm} -rf %{buildroot}
-%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
-/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
-/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} 2>/dev/null ';'
-%{__chmod} -R u+w %{buildroot}/*
+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 ';'
+%{_fixperms} %{buildroot}
+
+%check
+make test
 
 %clean
-%{__rm} -rf %{buildroot}
+rm -rf %{buildroot}
 
 %files
 %defattr(-,root,root,-)
@@ -53,29 +53,32 @@ names that can be used in place of module names at _load().
 %{_mandir}/man3/Class::Loader.3pm*
 
 %changelog
-* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@xxxxxxxxxx> - 2.03-13
+* Tue Jan 10 2012 Paul Howarth <paul@xxxxxxxxxxxx> 2.03-14
+- Nobody else likes macros for commands
+
+* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@xxxxxxxxxx> 2.03-13
 - Perl mass rebuild
 
-* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 2.03-12
+* Tue Feb  8 2011 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> 2.03-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
-* Wed Dec 15 2010 Marcela Maslanova <mmaslano@xxxxxxxxxx> - 2.03-11
-- 661697 rebuild for fixing problems with vendorach/lib
+* Wed Dec 15 2010 Marcela Maslanova <mmaslano@xxxxxxxxxx> 2.03-11
+- Rebuild to fix problems with vendorarch/lib (#661697)
 
-* Fri Apr 30 2010 Marcela Maslanova <mmaslano@xxxxxxxxxx> - 2.03-10
+* Fri Apr 30 2010 Marcela Maslanova <mmaslano@xxxxxxxxxx> 2.03-10
 - Mass rebuild with perl-5.12.0
 
-* Fri Dec  4 2009 Stepan Kasal <skasal@xxxxxxxxxx> - 2.03-9
-- rebuild against perl 5.10.1
+* Fri Dec  4 2009 Stepan Kasal <skasal@xxxxxxxxxx> 2.03-9
+- Rebuild against perl 5.10.1
 
-* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 2.03-8
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> 2.03-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 
-* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 2.03-7
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> 2.03-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 
 * Wed Mar  5 2008 Tom "spot" Callaway <tcallawa@xxxxxxxxxx> 2.03-6
-- rebuild for new perl
+- Rebuild for new perl
 
 * Fri Aug 10 2007 Paul Howarth <paul@xxxxxxxxxxxx> 2.03-5
 - Clarify license as GPL v1 or later, or Artistic (same as perl)
--
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