This commit is contained in:
Petr Písař 2011-03-21 11:07:07 +01:00
parent 1b128f37ba
commit 0d6a8833d2
3 changed files with 61 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/File-Listing-6.01.tar.gz

59
perl-File-Listing.spec Normal file
View File

@ -0,0 +1,59 @@
Name: perl-File-Listing
Version: 6.01
Release: 1%{?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(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(HTTP::Date) >= 6
BuildRequires: perl(Time::Local)
# Tests:
# Do not BuildRequire optinal perl(LWP::Simple) to break dependency circle.
BuildRequires: perl(Test)
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
%description
This module exports a single function called parse_dir(), which can be used
to parse directory listings.
%prep
%setup -q -n File-Listing-%{version}
%build
%{__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/*
%check
make test
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Wed Mar 16 2011 Petr Pisar <ppisar@redhat.com> 6.01-1
- Specfile autogenerated by cpanspec 1.78.
- Remove BuildRoot stuff
- Conflict with perl-libwww-perl-5* and older
- Do not provide private modules

View File

@ -0,0 +1 @@
cd0b6fd131127be775d6f64044e7cd5d File-Listing-6.01.tar.gz