From 0fb4f64e529fed5ba9f60ed6178d07eb7d3197c1 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Thu, 7 Sep 2006 16:28:20 +0000 Subject: [PATCH] auto-import perl-Data-OptList-0.101-1.fc5 on branch devel from perl-Data-OptList-0.101-1.fc5.src.rpm --- .cvsignore | 1 + perl-Data-OptList.spec | 57 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+) create mode 100644 perl-Data-OptList.spec diff --git a/.cvsignore b/.cvsignore index e69de29..649d183 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Data-OptList-0.101.tar.gz diff --git a/perl-Data-OptList.spec b/perl-Data-OptList.spec new file mode 100644 index 0000000..818252d --- /dev/null +++ b/perl-Data-OptList.spec @@ -0,0 +1,57 @@ +Name: perl-Data-OptList +Version: 0.101 +Release: 1%{?dist} +Summary: Parse and validate simple name/value option pairs +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Data-OptList/ +Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl(Params::Util) >= 0.14 +BuildRequires: perl(Sub::Install) >= 0.92 +# testing +BuildRequires: perl(Test::Pod::Coverage), perl(Test::Pod) + +#Requires: perl(Params::Util) >= 0.14 +#Requires: perl(Sub::Install) >= 0.92 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Hashes are great for storing named data, but if you want more than one +entry for a name, you have to use a list of pairs. Even then, this is +really boring to write: + +%prep +%setup -q -n Data-OptList-%{version} + +%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 +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Sat Sep 02 2006 Chris Weyl 0.101-1 +- Specfile autogenerated by cpanspec 1.69.1. diff --git a/sources b/sources index e69de29..a2a859c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6e9bb994a8716112a78c1306261f4164 Data-OptList-0.101.tar.gz