Fix FTBFS due to missing buildreq perl-devel

- Classify buildreqs by usage
- Simplify find commands using -empty and -delete
This commit is contained in:
Paul Howarth 2016-04-19 15:05:33 +01:00
parent 63a4f3aac9
commit 88831c892b

View File

@ -1,15 +1,27 @@
Name: perl-Perl-Destruct-Level
Summary: Allows you to change perl's internal destruction level
Version: 0.02
Release: 13%{?dist}
Release: 14%{?dist}
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Perl-Destruct-Level/
Source0: http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Perl-Destruct-Level-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
# Module Runtime
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(XSLoader)
# Test Suite
BuildRequires: perl(Test::More)
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# Don't "provide" private Perl libs
@ -38,8 +50,8 @@ make %{?_smp_mflags}
%install
rm -rf %{buildroot}
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
@ -51,9 +63,13 @@ rm -rf %{buildroot}
%files
%{perl_vendorarch}/auto/Perl/
%{perl_vendorarch}/Perl/
%{_mandir}/man3/Perl::Destruct::Level.3pm*
%{_mandir}/man3/Perl::Destruct::Level.3*
%changelog
* Tue Apr 19 2016 Paul Howarth <paul@city-fan.org> - 0.02-14
- Classify buildreqs by usage
- Simplify find commands using -empty and -delete
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.02-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild