commit 2f6bfaf6894b4fb66a03518671c5873d19fda5c2
Author: Paul Howarth <p...@city-fan.org>
Date:   Tue Jan 10 16:05:14 2012 +0000

    Spec file clean-up
    
    - Nobody else likes macros for commands
    - BR: perl(Carp)

 perl-Crypt-Random.spec |   55 ++++++++++++++++++++++++++---------------------
 1 files changed, 30 insertions(+), 25 deletions(-)
---
diff --git a/perl-Crypt-Random.spec b/perl-Crypt-Random.spec
index 785aa39..4e358e1 100644
--- a/perl-Crypt-Random.spec
+++ b/perl-Crypt-Random.spec
@@ -1,17 +1,18 @@
 Summary:       Cryptographically Secure, True Random Number Generator
 Name:          perl-Crypt-Random
 Version:       1.25
-Release:       12%{?dist}
+Release:       13%{?dist}
 License:       GPL+ or Artistic
 Group:         Development/Libraries
 Url:           http://search.cpan.org/dist/Crypt-Random/
 Source0:       
http://search.cpan.org/CPAN/authors/id/V/VI/VIPUL/Crypt-Random-%{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(Carp)
 BuildRequires: perl(Class::Loader)     >= 2.00
 BuildRequires: perl(ExtUtils::MakeMaker)
 BuildRequires: perl(Math::Pari)        >= 2.001804
+Requires:      perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 Crypt::Random is an interface module to the /dev/random device found on most
@@ -25,24 +26,24 @@ interval.
 %setup -q -n Crypt-Random-%{version}
 
 # Remove shellbangs to shut rpmlint up
-/usr/bin/find ./lib -name '*.pm' -print | /usr/bin/xargs %{__sed} -i -e '/^#! 
*\/usr\/bin\/perl /d'
+find ./lib -name '*.pm' -print | xargs sed -i -e '/^#! *\/usr\/bin\/perl /d'
 
 %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,-)
@@ -52,29 +53,33 @@ interval.
 %{_mandir}/man3/Crypt::Random.3pm*
 
 %changelog
-* Sun Jun 19 2011 Marcela Mašláňová <mmasl...@redhat.com> - 1.25-12
+* Tue Jan 10 2012 Paul Howarth <p...@city-fan.org> 1.25-13
+- Nobody else likes macros for commands
+- BR: perl(Carp)
+
+* Sun Jun 19 2011 Marcela Mašláňová <mmasl...@redhat.com> 1.25-12
 - Perl mass rebuild
 
-* Tue Feb 08 2011 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 1.25-11
+* Tue Feb  8 2011 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
1.25-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
-* Thu Dec 16 2010 Marcela Maslanova <mmasl...@redhat.com> - 1.25-10
-- 661697 rebuild for fixing problems with vendorach/lib
+* Thu Dec 16 2010 Marcela Maslanova <mmasl...@redhat.com> 1.25-10
+- Rebuild to fix problems with vendorarch/lib (#661697)
 
-* Fri Apr 30 2010 Marcela Maslanova <mmasl...@redhat.com> - 1.25-9
+* Fri Apr 30 2010 Marcela Maslanova <mmasl...@redhat.com> 1.25-9
 - Mass rebuild with perl-5.12.0
 
-* Fri Dec  4 2009 Stepan Kasal <ska...@redhat.com> - 1.25-8
-- rebuild against perl 5.10.1
+* Fri Dec  4 2009 Stepan Kasal <ska...@redhat.com> 1.25-8
+- Rebuild against perl 5.10.1
 
-* Sat Jul 25 2009 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 1.25-7
+* Sat Jul 25 2009 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
1.25-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 
-* Thu Feb 26 2009 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 1.25-6
+* Thu Feb 26 2009 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
1.25-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 
 * Wed Mar  5 2008 Tom "spot" Callaway <tcall...@redhat.com> 1.25-5
-- rebuild for new perl
+- Rebuild for new perl
 
 * Sun Aug 12 2007 Paul Howarth <p...@city-fan.org> 1.25-4
 - 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@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to