[perl-File-Listing] Import
Petr Pisar
ppisar at fedoraproject.org
Mon Mar 21 10:07:35 UTC 2011
commit 0d6a8833d242cfcc70d2dbad09557dfd8566a525
Author: Petr Písař <ppisar at redhat.com>
Date: Mon Mar 21 11:07:07 2011 +0100
Import
.gitignore | 1 +
perl-File-Listing.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..499d2cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/File-Listing-6.01.tar.gz
diff --git a/perl-File-Listing.spec b/perl-File-Listing.spec
new file mode 100644
index 0000000..a940cf2
--- /dev/null
+++ b/perl-File-Listing.spec
@@ -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 at 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
diff --git a/sources b/sources
index e69de29..6b41463 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+cd0b6fd131127be775d6f64044e7cd5d File-Listing-6.01.tar.gz
More information about the scm-commits
mailing list