From 0c51077581dfe8187723bd573d66a139fcdf21ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Tue, 26 Jan 2016 15:59:42 +0100 Subject: [PATCH] Package cleanup --- perl-Context-Preserve.spec | 49 ++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/perl-Context-Preserve.spec b/perl-Context-Preserve.spec index 6e90195..cbc4c77 100644 --- a/perl-Context-Preserve.spec +++ b/perl-Context-Preserve.spec @@ -1,23 +1,34 @@ Name: perl-Context-Preserve Summary: Run code after a subroutine call, preserving context Version: 0.01 -Release: 15%{?dist} +Release: 16%{?dist} License: GPL+ or Artistic -Group: Development/Libraries -Source0: http://search.cpan.org/CPAN/authors/id/J/JR/JROCKWAY/Context-Preserve-%{version}.tar.gz +Source0: http://search.cpan.org/CPAN/authors/id/J/JR/JROCKWAY/Context-Preserve-%{version}.tar.gz URL: http://search.cpan.org/dist/Context-Preserve -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch - +# Build +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(Config) +BuildRequires: perl(Cwd) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(ExtUtils::MM_Unix) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) +BuildRequires: perl(FindBin) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +# Runtime +BuildRequires: perl(base) +BuildRequires: perl(Carp) BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(warnings) +# Tests only BuildRequires: perl(ok) BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::More) - -%{?perl_default_filter} -%{?perl_default_subpackage_tests} +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) %description Sometimes you need to call a function, get the results, act on the @@ -39,31 +50,25 @@ was called in. %setup -q -n Context-Preserve-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 make %{?_smp_mflags} %install -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 make test -%clean -rm -rf %{buildroot} - %files -%defattr(-,root,root,-) -%doc README Changes +%doc README Changes %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog +* Tue Jan 26 2016 Petr Ĺ abata - 0.01-16 +- Package cleanup + * Thu Jun 18 2015 Fedora Release Engineering - 0.01-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild @@ -108,5 +113,3 @@ rm -rf %{buildroot} * Fri Mar 05 2010 Chris Weyl 0.01-1 - specfile by Fedora::App::MaintainerTools 0.004 - -