pghmcfc pushed to perl-Crypt-SmbHash (master). "Fix FTBFS and tidy up (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Oct 14 10:23:56 UTC 2015


From fb400644d9debf651f79faa3f74729cd593ff638 Mon Sep 17 00:00:00 2001
From: Paul Howarth <paul at city-fan.org>
Date: Wed, 14 Oct 2015 11:21:58 +0100
Subject: Fix FTBFS and tidy up

- Classify buildreqs by usage
- Drop %defattr, redundant since rpm 4.4
- Don't need to remove empty directories from the buildroot
---
 perl-Crypt-SmbHash.spec | 27 ++++++++++++++++++++++-----
 1 file changed, 22 insertions(+), 5 deletions(-)

diff --git a/perl-Crypt-SmbHash.spec b/perl-Crypt-SmbHash.spec
index 47045bb..2c7d046 100644
--- a/perl-Crypt-SmbHash.spec
+++ b/perl-Crypt-SmbHash.spec
@@ -1,18 +1,32 @@
 Summary:	Pure-perl Lanman and NT MD4 hash functions
 Name:		perl-Crypt-SmbHash
 Version:	0.12
-Release:	25%{?dist}
+Release:	26%{?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
 BuildArch:	noarch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+# Module Build
+BuildRequires:	coreutils
+BuildRequires:	findutils
+BuildRequires:	make
+BuildRequires:	perl
+BuildRequires:	perl(ExtUtils::MakeMaker)
+# Module Runtime
 BuildRequires:	perl(Carp)
 BuildRequires:	perl(Digest::MD4)
-BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	perl(Encode)
+BuildRequires:	perl(Exporter)
+BuildRequires:	perl(strict)
+BuildRequires:	perl(vars)
+# Test Suite
+BuildRequires:	perl(Test)
+# Runtime
 Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:	perl(Digest::MD4)
+Requires:	perl(Encode)
 
 %description
 This module generates Lanman and NT MD4 style password hashes, using perl-only
@@ -30,7 +44,6 @@ make %{?_smp_mflags}
 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
@@ -40,12 +53,16 @@ make test
 rm -rf %{buildroot}
 
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_vendorlib}/Crypt/
-%{_mandir}/man3/Crypt::SmbHash.3pm*
+%{_mandir}/man3/Crypt::SmbHash.3*
 
 %changelog
+* Wed Oct 14 2015 Paul Howarth <paul at city-fan.org> - 0.12-26
+- Classify buildreqs by usage
+- Drop %%defattr, redundant since rpm 4.4
+- Don't need to remove empty directories from the buildroot
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.12-25
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


	http://pkgs.fedoraproject.org/cgit/perl-Crypt-SmbHash.git/commit/?h=master&id=fb400644d9debf651f79faa3f74729cd593ff638


More information about the perl-devel mailing list