commit b0f79f5511758ab6012f5809ac86a37d237416a8 Author: Petr Šabata <contyk@xxxxxxxxxx> Date: Thu Jul 25 13:37:51 2013 +0200 Add missing built-time dependencies - Modernize the spec a bit perl-File-Listing.spec | 27 ++++++++++++++------------- 1 files changed, 14 insertions(+), 13 deletions(-) --- diff --git a/perl-File-Listing.spec b/perl-File-Listing.spec index c74a44a..0c9333a 100644 --- a/perl-File-Listing.spec +++ b/perl-File-Listing.spec @@ -1,30 +1,29 @@ Name: perl-File-Listing Version: 6.04 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Parse directory listing License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/File-Listing/ Source0: http://www.cpan.org/authors/id/G/GA/GAAS/File-Listing-%{version}.tar.gz BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(HTTP::Date) >= 6 +BuildRequires: perl(strict) BuildRequires: perl(Time::Local) +BuildRequires: perl(vars) # Tests: # Do not BuildRequire optinal perl(LWP::Simple) to break dependency circle. BuildRequires: perl(Test) BuildRequires: perl(Test::More) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) Requires: perl(HTTP::Date) >= 6 Requires: perl(Time::Local) Conflicts: perl-libwww-perl < 6 -# Remove underspecified dependencies -%filter_from_requires /^perl(HTTP::Date)\s*$/d -# Do not provide private modules -%filter_from_provides /^perl(File::Listing::/d -%filter_setup # RPM 4.9 style # Remove underspecified dependencies %global __requires_exclude %{?__requires_exclude:__requires_exclude|}^perl\\(HTTP::Date\\)\s*$ @@ -39,25 +38,27 @@ to parse directory listings. %setup -q -n File-Listing-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install -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} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +%{_fixperms} %{buildroot}/* %check make test %files -%defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Thu Jul 25 2013 Petr Šabata <contyk@xxxxxxxxxx> - 6.04-6 +- Add missing built-time dependencies +- Modernize the spec a bit + * Thu Jul 18 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 6.04-5 - Perl 5.18 rebuild -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel