File perl-Scalar-List-Utils.spec of Package perl-Scalar-List-Utils

%define _real_name Scalar-List-Utils
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)

Summary: A selection of general-utility scalar subroutines
Name: perl-Scalar-List-Utils
Version: 1.19
Release: 1
License: GPL
Group: Applications/CPAN
Packager: Leo Eraly <leo@unstable.be>
URL: http://search.cpan.org/~gbarr/Scalar-List-Utils-1.19/lib/Scalar/Util.pm

Requires: perl-Sub-Exporter

Source: http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Scalar-List-Utils-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
A selection of general-utility scalar subroutines

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

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor"  destdir="%{buildroot}"
%{__make}

%install
%{__rm} -rf %{buildroot}
%{__make} install
%{__rm} -rf %{buildroot}%{perl_archlib}/perllocal.pod
# Removing manpages because they cause a conflict with the normal perl package
%{__rm} %{buildroot}/%{_mandir}/man3/*
find %{buildroot} -name .packlist -exec %{__rm} {} \;

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

%files
%defattr(-, root, root, 0755)
%dir %{perl_vendorarch}/auto/List/
%dir %{perl_vendorarch}/auto/List/Util
%dir %{perl_vendorarch}/List/
%dir %{perl_vendorarch}/Scalar/
%{perl_vendorarch}/auto/List/Util/*
%{perl_vendorarch}/List/Util.pm
%{perl_vendorarch}/Scalar/Util.pm


%changelog
* Tue Feb 03 2009 Leo Eraly <leo@unstable.be> - 1.19-1
- Initial package
openSUSE Build Service is sponsored by