From a205d86ae229023479ac0f73c6a251ea71e78889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= contyk@redhat.com Date: Tue, 1 Mar 2016 17:05:05 +0100 Subject: Package cleanup
--- perl-Spoon.spec | 45 +++++++++++++++------------------------------ 1 file changed, 15 insertions(+), 30 deletions(-)
diff --git a/perl-Spoon.spec b/perl-Spoon.spec index d3f463a..890ab57 100644 --- a/perl-Spoon.spec +++ b/perl-Spoon.spec @@ -1,17 +1,17 @@ Name: perl-Spoon Version: 0.24 -Release: 26%{?dist} +Release: 27%{?dist} Summary: Spiffy Application Building Framework License: GPL+ or Artistic -Group: Development/Libraries URL: http://search.cpan.org/dist/Spoon/ Source0: http://www.cpan.org/authors/id/I/IN/INGY/Spoon-%%7Bversion%7D.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch +# Build +BuildRequires: make BuildRequires: perl +BuildRequires: perl(Config) BuildRequires: perl(Cwd) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(ExtUtils::Manifest) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(ExtUtils::MM_Unix) BuildRequires: perl(File::Find) BuildRequires: perl(File::Path) @@ -19,12 +19,11 @@ BuildRequires: perl(File::Spec) BuildRequires: perl(FindBin) BuildRequires: perl(strict) BuildRequires: perl(vars) -# Run-time: +# Runtime BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(CGI) # CGI::Util not used for tests -# Config not used for tests # Data::Dumper not used for tests BuildRequires: perl(DB_File) BuildRequires: perl(Encode) @@ -35,14 +34,14 @@ BuildRequires: perl(Spiffy) >= 0.24 BuildRequires: perl(Storable) BuildRequires: perl(Template) >= 2.10 BuildRequires: perl(Time::HiRes) -# Tests: +# Tests only BuildRequires: perl(lib) BuildRequires: perl(Test::More) BuildRequires: perl(URI::Escape) BuildRequires: perl(warnings) -# Optional tests: +# Optional tests only BuildRequires: perl(Test::Memory::Cycle) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) Requires: perl(Carp) Requires: perl(CGI::Util) Requires: perl(Config) @@ -54,14 +53,7 @@ Requires: perl(Spiffy) >= 0.24 Requires: perl(Storable) Requires: perl(Template) >= 2.10
-%{?perl_default_filter: -%filter_from_provides /^perl(IO::All)$/d -%filter_from_requires /^perl(IO::All)$/d /^perl(Spiffy)$/d /^perl(Template)$/d -%{?perl_default_filter} -} %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\(IO::All|Spiffy|Template\)$ -%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\(IO::All\)$ -
%description Spoon is an Application Framework that is designed primarily for @@ -72,32 +64,25 @@ built on top of Spoon. %setup -q -n Spoon-%{version}
%build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 make %{?_smp_mflags}
%install -rm -rf $RPM_BUILD_ROOT - -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT - -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ; - -%{_fixperms} $RPM_BUILD_ROOT/* +make pure_install DESTDIR=%{buildroot} +%{_fixperms} %{buildroot}/*
%check make test
-%clean -rm -rf $RPM_BUILD_ROOT - %files -%defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/*
%changelog +* Tue Mar 01 2016 Petr Šabata contyk@redhat.com - 0.24-27 +- Package cleanup + * Thu Feb 04 2016 Fedora Release Engineering releng@fedoraproject.org - 0.24-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
perl-devel@lists.fedoraproject.org