From c76c3d10a0404a14026f4d70733c449c8acd4645 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova <jples...@redhat.com> Date: Thu, 18 Feb 2016 12:56:16 +0100 Subject: Package cleanup
--- perl-Feed-Find.spec | 58 ++++++++++++++++++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 21 deletions(-) diff --git a/perl-Feed-Find.spec b/perl-Feed-Find.spec index 6997644..2eb734e 100644 --- a/perl-Feed-Find.spec +++ b/perl-Feed-Find.spec @@ -1,23 +1,41 @@ Name: perl-Feed-Find Version: 0.07 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Syndication feed auto-discovery -Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Feed-Find Source0: http://search.cpan.org/CPAN/authors/id/B/BT/BTROTT/Feed-Find-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: perl(LWP) + +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::AuthorTests) +BuildRequires: perl(Module::Install::Include) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::ReadmeFromPod) +BuildRequires: perl(Module::Install::Repository) +BuildRequires: perl(Module::Install::TestBase) +BuildRequires: perl(Module::Install::WriteAll) +# Run-time +BuildRequires: perl(base) BuildRequires: perl(Class::ErrorHandler) +BuildRequires: perl(constant) BuildRequires: perl(HTML::Parser) +BuildRequires: perl(LWP::UserAgent) +BuildRequires: perl(strict) BuildRequires: perl(URI) -BuildRequires: perl(ExtUtils::MakeMaker) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -# not autodetected because it is in the form use base qw(...) -Requires: perl(Class::ErrorHandler) +BuildRequires: perl(vars) +# Tests +BuildRequires: perl(Test::More) +# Author tests +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(Test::Synopsis) + +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description Feed::Find implements feed auto-discovery for finding syndication feeds, @@ -35,38 +53,36 @@ Feed::Find will discover the following feed formats: %prep %setup -q -n Feed-Find-%{version} +# Remove bundled libraries +rm -r inc +sed -i -e '/^inc\// d' MANIFEST +find -type f -exec chmod -x {} + + # this test requires a connection to an external website rm t/01-find.t %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor 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 -type d -depth -exec rmdir {} 2>/dev/null ';' +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -delete chmod -R u+w $RPM_BUILD_ROOT/* - %check make test - -%clean -rm -rf $RPM_BUILD_ROOT - - %files -%defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog +* Thu Feb 18 2016 Jitka Plesnikova <jples...@redhat.com> - 0.07-16 +- Package cleanup + * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 0.07-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Feed-Find.git/commit/?h=master&id=c76c3d10a0404a14026f4d70733c449c8acd4645 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org