From daf8a1e150eb23da2b5f4fc825b26163733239aa Mon Sep 17 00:00:00 2001
From: Paul Howarth <[email protected]>
Date: Tue, 19 Apr 2016 10:01:25 +0100
Subject: Fix FTBFS due to missing buildreq perl-devel
- Fix FTBFS due to missing buildreq perl-devel
- Simplify find commands using -empty and -delete
---
perl-true.spec | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/perl-true.spec b/perl-true.spec
index b5d94c9..af35166 100644
--- a/perl-true.spec
+++ b/perl-true.spec
@@ -1,12 +1,17 @@
Name: perl-true
Version: 0.18
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Automatically return a true value when a file is required
License: GPL+ or Artistic
Group: Development/Libraries
URL: https://metacpan.org/release/true
Source0:
http://cpan.metacpan.org/authors/id/C/CH/CHOCOLATE/true-%{version}.tar.gz
# ============= Module Build ====================
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
+BuildRequires: perl-devel
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::Depends) >= 0.304
BuildRequires: perl(ExtUtils::MakeMaker)
@@ -62,8 +67,8 @@ make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
+find %{buildroot} -type f -name .packlist -delete
+find %{buildroot} -type f -name '*.bs' -a -empty -delete
%{_fixperms} %{buildroot}
%check
@@ -74,10 +79,14 @@ make test
%{perl_vendorarch}/auto/true/
%{perl_vendorarch}/true.pm
%{perl_vendorarch}/true/
-%{_mandir}/man3/true.3pm*
-%{_mandir}/man3/true::VERSION.3pm*
+%{_mandir}/man3/true.3*
+%{_mandir}/man3/true::VERSION.3*
%changelog
+* Tue Apr 19 2016 Paul Howarth <[email protected]> - 0.18-9
+- Fix FTBFS due to missing buildreq perl-devel
+- Simplify find commands using -empty and -delete
+
* Thu Feb 04 2016 Fedora Release Engineering <[email protected]> -
0.18-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-true.git/commit/?h=master&id=daf8a1e150eb23da2b5f4fc825b26163733239aa
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]