File perl-Path-Class.spec of Package perl-Path-Class

%define _real_name Path-Class
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)

Summary: Cross-platform path specification manipulation
Name: perl-Path-Class
Version: 0.16
Release: 1
License: GPL
Group: Applications/CPAN
Packager: Leo Eraly <leo@unstable.be>
URL: http://search.cpan.org/~kwilliams/Path-Class-0.16/lib/Path/Class.pm

Buildarch: noarch

Source: http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Path-Class-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Cross-platform path specification manipulation

%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
find %{buildroot} -name .packlist -exec %{__rm} {} \;

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

%files
%defattr(-, root, root, 0755)
%{_mandir}/man3/*.gz
%dir %{perl_vendorlib}/Path
%dir %{perl_vendorlib}/Path/Class
%{perl_vendorlib}/Path/Class.pm
%{perl_vendorlib}/Path/Class/*.pm


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