Chris Weyl 0fb4f64
Name:           perl-Data-OptList
Chris Weyl 0fb4f64
Version:        0.101
Chris Weyl 0fb4f64
Release:        1%{?dist}
Chris Weyl 0fb4f64
Summary:        Parse and validate simple name/value option pairs
Chris Weyl 0fb4f64
License:        GPL or Artistic
Chris Weyl 0fb4f64
Group:          Development/Libraries
Chris Weyl 0fb4f64
URL:            http://search.cpan.org/dist/Data-OptList/
Chris Weyl 0fb4f64
Source0:        http://www.cpan.org/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz
Chris Weyl 0fb4f64
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Chris Weyl 0fb4f64
Chris Weyl 0fb4f64
BuildArch:      noarch
Chris Weyl 0fb4f64
BuildRequires:  perl(Params::Util) >= 0.14
Chris Weyl 0fb4f64
BuildRequires:  perl(Sub::Install) >= 0.92
Chris Weyl 0fb4f64
# testing
Chris Weyl 0fb4f64
BuildRequires:  perl(Test::Pod::Coverage), perl(Test::Pod)
Chris Weyl 0fb4f64
Chris Weyl 0fb4f64
#Requires:       perl(Params::Util) >= 0.14
Chris Weyl 0fb4f64
#Requires:       perl(Sub::Install) >= 0.92
Chris Weyl 0fb4f64
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Chris Weyl 0fb4f64
Chris Weyl 0fb4f64
%description
Chris Weyl 0fb4f64
Hashes are great for storing named data, but if you want more than one
Chris Weyl 0fb4f64
entry for a name, you have to use a list of pairs. Even then, this is
Chris Weyl 0fb4f64
really boring to write:
Chris Weyl 0fb4f64
Chris Weyl 0fb4f64
%prep
Chris Weyl 0fb4f64
%setup -q -n Data-OptList-%{version}
Chris Weyl 0fb4f64
Chris Weyl 0fb4f64
%build
Chris Weyl 0fb4f64
%{__perl} Makefile.PL INSTALLDIRS=vendor
Chris Weyl 0fb4f64
make %{?_smp_mflags}
Chris Weyl 0fb4f64
Chris Weyl 0fb4f64
%install
Chris Weyl 0fb4f64
rm -rf %{buildroot}
Chris Weyl 0fb4f64
Chris Weyl 0fb4f64
make pure_install PERL_INSTALL_ROOT=%{buildroot}
Chris Weyl 0fb4f64
Chris Weyl 0fb4f64
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
Chris Weyl 0fb4f64
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
Chris Weyl 0fb4f64
Chris Weyl 0fb4f64
%{_fixperms} %{buildroot}/*
Chris Weyl 0fb4f64
Chris Weyl 0fb4f64
%check
Chris Weyl 0fb4f64
make test
Chris Weyl 0fb4f64
Chris Weyl 0fb4f64
%clean
Chris Weyl 0fb4f64
rm -rf %{buildroot}
Chris Weyl 0fb4f64
Chris Weyl 0fb4f64
%files
Chris Weyl 0fb4f64
%defattr(-,root,root,-)
Chris Weyl 0fb4f64
%doc Changes README
Chris Weyl 0fb4f64
%{perl_vendorlib}/*
Chris Weyl 0fb4f64
%{_mandir}/man3/*
Chris Weyl 0fb4f64
Chris Weyl 0fb4f64
%changelog
Chris Weyl 0fb4f64
* Sat Sep 02 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.101-1
Chris Weyl 0fb4f64
- Specfile autogenerated by cpanspec 1.69.1.