perl-Data-OptList/perl-Data-OptList.spec

Name: perl-Data-OptList
Summary: Perl module to parse and validate simple name/value option pairs
Version: 0.105
Release: 1
License: Artistic
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Data-OptList/
Description: Data-OptList is a Perl module to parse and validate simple name/value option pairs.

CentOS 7 x86_64

The build could not start because the following file is missing: Data-OptList-0.105.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: Data-OptList-0.105.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Ricardo SIGNES <rjbs$cpan,org>

### EL6 ships with perl-Data-OptList-0.104-4.el6
%{?el6:# Tag: rfx}

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name Data-OptList

Summary: Perl module to parse and validate simple name/value option pairs
Name: perl-Data-OptList
Version: 0.105
Release: 1%{?dist}
License: Artistic
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Data-OptList/

Source: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(List::Util)
BuildRequires: perl(Params::Util) >= 0.14
BuildRequires: perl(Sub::Install) >= 0.92
Requires: perl
Requires: perl(List::Util)
Requires: perl(Params::Util) >= 0.14
Requires: perl(Sub::Install) >= 0.92

%filter_from_requires /^perl*/d
%filter_setup


%description
Data-OptList is a Perl module to parse and validate simple
name/value option pairs.

%prep
%setup -n %{real_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}
%{__make} test

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes LICENSE MANIFEST META.yml README
%doc %{_mandir}/man3/Data::OptList.3pm*
%dir %{perl_vendorlib}/Data/
#%{perl_vendorlib}/Data/OptList/
%{perl_vendorlib}/Data/OptList.pm

%changelog
* Sat Feb  6 2010 Christoph Maser <cmr@financial.com> - 0.105-1
- Updated to version 0.105.

* Thu Jul  9 2009 Christoph Maser <cmr@financial.com> - 0.104-1
- Updated to version 0.104.

* Tue Nov 06 2007 Dag Wieers <dag@wieers.com> - 0.103-1
- Updated to release 0.103.

* Mon Apr 30 2007 Dag Wieers <dag@wieers.com> - 0.101-1
- Initial package. (using DAR)