From a1676a79cb315b0cf7bbfb9924fca33982d11325 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Wed, 9 Jul 2008 17:35:00 +0000 Subject: [PATCH] initial commit --- .cvsignore | 1 + import.log | 1 + perl-Getopt-Long-Descriptive.spec | 60 +++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 63 insertions(+) create mode 100644 import.log create mode 100644 perl-Getopt-Long-Descriptive.spec diff --git a/.cvsignore b/.cvsignore index e69de29..c2b110f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Getopt-Long-Descriptive-0.074.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..9d407dd --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-Getopt-Long-Descriptive-0_074-1_fc8:HEAD:perl-Getopt-Long-Descriptive-0.074-1.fc8.src.rpm:1215624887 diff --git a/perl-Getopt-Long-Descriptive.spec b/perl-Getopt-Long-Descriptive.spec new file mode 100644 index 0000000..014736c --- /dev/null +++ b/perl-Getopt-Long-Descriptive.spec @@ -0,0 +1,60 @@ +Name: perl-Getopt-Long-Descriptive +Version: 0.074 +Release: 1%{?dist} +Summary: Getopt::Long with usage text +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Getopt-Long-Descriptive/ +Source0: http://www.cpan.org/authors/id/H/HD/HDP/Getopt-Long-Descriptive-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(IO::Scalar) +BuildRequires: perl(Params::Validate) >= 0.74 +# test +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) + +# not automagically picked up... +Requires: perl(IO::Scalar) + +%description +Convenient wrapper for Getopt::Long and program usage output. + +%prep +%setup -q -n Getopt-Long-Descriptive-%{version} + +perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*.t + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README t/ +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Jul 08 2008 Chris Weyl 0.074-1 +- Specfile autogenerated by cpanspec 1.74. diff --git a/sources b/sources index e69de29..88d0aeb 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bf4931dfd87314376ecb74dc8d205944 Getopt-Long-Descriptive-0.074.tar.gz