From 57729ebfc76381acc2e990adb78f1b953c987c8c Mon Sep 17 00:00:00 2001 From: Petr Písař Date: Mar 18 2016 09:26:42 +0000 Subject: Modernize spec file --- diff --git a/B-Hooks-OP-Check-EntersubForCV-0.09-Disable-author-tests.patch b/B-Hooks-OP-Check-EntersubForCV-0.09-Disable-author-tests.patch new file mode 100644 index 0000000..931ee62 --- /dev/null +++ b/B-Hooks-OP-Check-EntersubForCV-0.09-Disable-author-tests.patch @@ -0,0 +1,35 @@ +From 4f4c5a07ba82ecc21c864d9b528b2a2af5364e06 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Fri, 18 Mar 2016 10:11:18 +0100 +Subject: [PATCH] Disable author tests +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař +--- + Makefile.PL | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/Makefile.PL b/Makefile.PL +index b8fbf45..374da2f 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -2,6 +2,7 @@ use strict; + use warnings; + use inc::Module::Install; + use ExtUtils::Depends; ++$Module::Install::AUTHOR = 0; + + name 'B-Hooks-OP-Check-EntersubForCV'; + all_from 'lib/B/Hooks/OP/Check/EntersubForCV.pm'; +@@ -34,6 +35,4 @@ makemaker_args( + repository 'git://lake.fysh.org/zefram/B-Hooks-OP-Check-EntersubForCV.git'; + bugtracker 'http://rt.cpan.org/Public/Dist/Display.html?Name=B-Hooks-OP-Check-EntersubForCV'; + +-extra_tests; +- + WriteAll; +-- +2.5.0 + diff --git a/perl-B-Hooks-OP-Check-EntersubForCV.spec b/perl-B-Hooks-OP-Check-EntersubForCV.spec index 15f2ec2..9fcb0fc 100644 --- a/perl-B-Hooks-OP-Check-EntersubForCV.spec +++ b/perl-B-Hooks-OP-Check-EntersubForCV.spec @@ -8,17 +8,29 @@ URL: http://search.cpan.org/dist/B-Hooks-OP-Check-EntersubForCV/ Source0: http://www.cpan.org/authors/id/Z/ZE/ZEFRAM/B-Hooks-OP-Check-EntersubForCV-%{version}.tar.gz # Restore compatibility with Perl 5.22, bug #1231104, CPAN RT#94945 Patch0: B-Hooks-OP-Check-EntersubForCV-0.09-Perl-5.21.4-compatibility.patch -BuildRequires: perl(B::Hooks::OP::Check) >= 0.19 -BuildRequires: perl(B::Utils) >= 0.19 +# Remove unwanted build dependencies +Patch1: B-Hooks-OP-Check-EntersubForCV-0.09-Disable-author-tests.patch +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl +BuildRequires: perl-devel BuildRequires: perl(ExtUtils::Depends) BuildRequires: perl(inc::Module::Install) -BuildRequires: perl(Module::Install::ExtraTests) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::WriteAll) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: sed +# Run-time: +BuildRequires: perl(B::Hooks::OP::Check) >= 0.19 +BuildRequires: perl(B::Utils) >= 0.19 +BuildRequires: perl(DynaLoader) BuildRequires: perl(parent) BuildRequires: perl(Scalar::Util) +# Tests: BuildRequires: perl(Test::More) -BuildRequires: perl(Test::Pod) -BuildRequires: perl(Test::Pod::Coverage) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl-devel %{?perl_default_filter} @@ -28,17 +40,19 @@ Invoke callbacks on construction of entersub OPs for certain CVs. %prep %setup -q -n B-Hooks-OP-Check-EntersubForCV-%{version} %patch0 -p1 +%patch1 -p1 +# Remove bundled modules +rm -rf inc +sed -i -e '/^inc\//d' MANIFEST %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} - -find %{buildroot} -type f -name .packlist -exec rm -f {} \; -find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; - +find %{buildroot} -type f -name .packlist -delete +find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* %check @@ -53,6 +67,7 @@ make test %changelog * Fri Mar 18 2016 Petr Pisar - 0.09-13 - Restore compatibility with Perl 5.22 (bug #1231104) +- Modernize spec file * Thu Jun 18 2015 Fedora Release Engineering - 0.09-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild