[perl-Crypt-SmbHash] Spec file clean-up
Paul Howarth
pghmcfc at fedoraproject.org
Wed Jan 11 10:32:35 UTC 2012
commit 491ded451a03f624893638b5a354af3ff372920a
Author: Paul Howarth <paul at city-fan.org>
Date: Wed Jan 11 10:32:08 2012 +0000
Spec file clean-up
- Nobody else likes macros for commands
- BR: perl(Carp)
perl-Crypt-SmbHash.spec | 46 ++++++++++++++++++++++++++--------------------
1 files changed, 26 insertions(+), 20 deletions(-)
---
diff --git a/perl-Crypt-SmbHash.spec b/perl-Crypt-SmbHash.spec
index e263c9a..b68a637 100644
--- a/perl-Crypt-SmbHash.spec
+++ b/perl-Crypt-SmbHash.spec
@@ -1,16 +1,18 @@
Summary: Pure-perl Lanman and NT MD4 hash functions
Name: perl-Crypt-SmbHash
Version: 0.12
-Release: 15%{?dist}
+Release: 16%{?dist}
License: GPLv2+
Group: Development/Libraries
Url: http://search.cpan.org/dist/Crypt-SmbHash/
Source0: http://search.cpan.org/CPAN/authors/id/B/BJ/BJKUIT/Crypt-SmbHash-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-BuildRequires: perl(Digest::MD4), perl(ExtUtils::MakeMaker)
-Requires: perl(Digest::MD4)
BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildRequires: perl(Carp)
+BuildRequires: perl(Digest::MD4)
+BuildRequires: perl(ExtUtils::MakeMaker)
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires: perl(Digest::MD4)
%description
This module generates Lanman and NT MD4 style password hashes, using perl-only
@@ -21,21 +23,21 @@ systems.
%setup -q -n Crypt-SmbHash-%{version}
%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,-)
@@ -44,14 +46,18 @@ systems.
%{_mandir}/man3/Crypt::SmbHash.3pm*
%changelog
-* Mon Jun 20 2011 Marcela Mašláňová <mmaslano at redhat.com> - 0.12-15
+* Wed Jan 11 2012 Paul Howarth <paul at city-fan.org> 0.12-16
+- Nobody else likes macros for commands
+- BR: perl(Carp)
+
+* Mon Jun 20 2011 Marcela Mašláňová <mmaslano at redhat.com> 0.12-15
- Perl mass rebuild
-* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.12-14
+* Tue Feb 8 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> 0.12-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
-* Thu Dec 16 2010 Marcela Maslanova <mmaslano at redhat.com> - 0.12-13
-- 661697 rebuild for fixing problems with vendorach/lib
+* Thu Dec 16 2010 Marcela Maslanova <mmaslano at redhat.com> 0.12-13
+- Rebuild to fix problems with vendorarch/lib (#661697)
* Fri Apr 30 2010 Marcela Maslanova <mmaslano at redhat.com> 0.12-12
- Mass rebuild with perl 5.12.0
More information about the perl-devel
mailing list