8f8323
Name:           perl-File-Listing
8f8323
Version:        6.04
8f8323
Release:        6%{?dist}
8f8323
Summary:        Parse directory listing
8f8323
License:        GPL+ or Artistic
8f8323
Group:          Development/Libraries
8f8323
URL:            http://search.cpan.org/dist/File-Listing/
8f8323
Source0:        http://www.cpan.org/authors/id/G/GA/GAAS/File-Listing-%{version}.tar.gz
8f8323
BuildArch:      noarch
8f8323
BuildRequires:  perl
8f8323
BuildRequires:  perl(Carp)
8f8323
BuildRequires:  perl(Exporter)
8f8323
BuildRequires:  perl(ExtUtils::MakeMaker)
8f8323
BuildRequires:  perl(HTTP::Date) >= 6
8f8323
BuildRequires:  perl(strict)
8f8323
BuildRequires:  perl(Time::Local)
8f8323
BuildRequires:  perl(vars)
8f8323
# Tests:
8f8323
# Do not BuildRequire optinal perl(LWP::Simple) to break dependency circle.
8f8323
BuildRequires:  perl(Test)
8f8323
BuildRequires:  perl(Test::More)
8f8323
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
8f8323
Requires:       perl(HTTP::Date) >= 6
8f8323
Requires:       perl(Time::Local)
8f8323
Conflicts:      perl-libwww-perl < 6
8f8323
8f8323
# RPM 4.9 style
8f8323
# Remove underspecified dependencies
8f8323
%global __requires_exclude %{?__requires_exclude:__requires_exclude|}^perl\\(HTTP::Date\\)\s*$
8f8323
# Do not provide private modules
8f8323
%global __provides_exclude %{?__provides_exclude:__provides_exclude|}^perl\\(File::Listing::
8f8323
8f8323
%description
8f8323
This module exports a single function called parse_dir(), which can be used
8f8323
to parse directory listings.
8f8323
8f8323
%prep
8f8323
%setup -q -n File-Listing-%{version}
8f8323
8f8323
%build
8f8323
perl Makefile.PL INSTALLDIRS=vendor
8f8323
make %{?_smp_mflags}
8f8323
8f8323
%install
8f8323
make pure_install DESTDIR=%{buildroot}
8f8323
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
8f8323
%{_fixperms} %{buildroot}/*
8f8323
8f8323
%check
8f8323
make test
8f8323
8f8323
%files
8f8323
%doc Changes README
8f8323
%{perl_vendorlib}/*
8f8323
%{_mandir}/man3/*
8f8323
8f8323
%changelog
8f8323
* Thu Jul 25 2013 Petr Šabata <contyk@redhat.com> - 6.04-6
8f8323
- Add missing built-time dependencies
8f8323
- Modernize the spec a bit
8f8323
8f8323
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 6.04-5
8f8323
- Perl 5.18 rebuild
8f8323
8f8323
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.04-4
8f8323
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8f8323
8f8323
* Wed Aug 15 2012 Daniel Mach <dmach@redhat.com> - 6.04-3.1
8f8323
- Rebuild for perl 5.16
8f8323
8f8323
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.04-3
8f8323
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8f8323
8f8323
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 6.04-2
8f8323
- Perl 5.16 rebuild
8f8323
8f8323
* Mon Feb 20 2012 Petr Pisar <ppisar@redhat.com> - 6.04-1
8f8323
- 6.04 bump
8f8323
8f8323
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.03-2
8f8323
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8f8323
8f8323
* Tue Sep 20 2011 Petr Pisar <ppisar@redhat.com> - 6.03-1
8f8323
- 6.03 bump
8f8323
- Build-require perl(Test::More) needed for tests
8f8323
8f8323
* Mon Jul 25 2011 Petr Pisar <ppisar@redhat.com> - 6.02-3
8f8323
- RPM 4.9 dependency filtering added
8f8323
8f8323
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.02-2
8f8323
- Perl mass rebuild
8f8323
8f8323
* Wed Mar 23 2011 Petr Pisar <ppisar@redhat.com> - 6.02-1
8f8323
- 6.02 bump
8f8323
8f8323
* Wed Mar 16 2011 Petr Pisar <ppisar@redhat.com> 6.01-1
8f8323
- Specfile autogenerated by cpanspec 1.78.
8f8323
- Remove BuildRoot stuff
8f8323
- Conflict with perl-libwww-perl-5* and older
8f8323
- Do not provide private modules