From 93c3a9aa4be1272447a72da665c1955561923ad6 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Apr 19 2016 14:13:12 +0000 Subject: Fix FTBFS due to missing buildreq perl-devel - Classify buildreqs by usage - Simplify find commands using -empty and -delete - Don't need to prune empty directories from the buildroot - Drop %defattr, redundant since rpm 4.4 --- diff --git a/perl-Unicode-CheckUTF8.spec b/perl-Unicode-CheckUTF8.spec index 44924ce..322467f 100644 --- a/perl-Unicode-CheckUTF8.spec +++ b/perl-Unicode-CheckUTF8.spec @@ -12,17 +12,27 @@ Summary: Checks if scalar is valid UTF-8 Name: perl-Unicode-CheckUTF8 Version: 1.03 -Release: 14%{?dist} +Release: 15%{?dist} License: UCD and (GPL+ or Artistic) Group: Development/Libraries Url: http://search.cpan.org/dist/Unicode-String/ Source0: http://search.cpan.org/CPAN/authors/id/B/BR/BRADFITZ/Unicode-CheckUTF8-%{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) +# Module Runtime BuildRequires: perl(base) BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(Test::More) 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 @@ -49,9 +59,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} -depth -type d -exec rmdir {} ';' 2>/dev/null +find %{buildroot} -type f -name .packlist -delete +find %{buildroot} -type f -name '*.bs' -a -empty -delete %{_fixperms} %{buildroot} %check @@ -61,13 +70,18 @@ make test rm -rf %{buildroot} %files -%defattr(-,root,root,-) %doc CHANGES %{perl_vendorarch}/Unicode/ %{perl_vendorarch}/auto/Unicode/ -%{_mandir}/man3/Unicode::CheckUTF8.3pm* +%{_mandir}/man3/Unicode::CheckUTF8.3* %changelog +* Tue Apr 19 2016 Paul Howarth - 1.03-15 +- Classify buildreqs by usage +- Simplify find commands using -empty and -delete +- Don't need to prune empty directories from the buildroot +- Drop %%defattr, redundant since rpm 4.4 + * Thu Feb 04 2016 Fedora Release Engineering - 1.03-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild