File perl-Sub-Identify.spec of Package perl-Sub-Identify

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

Summary: Retrieve names of code references
Name: perl-Sub-Identify
Version: 0.04
Release: 1
License: GPL
Group: Applications/CPAN
Packager: Leo Eraly <leo@unstable.be>
URL: http://search.cpan.org/~rgarcia/Sub-Identify-0.04/lib/Sub/Identify.pm

Source: http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Sub-Identify-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Retrieve names of code references

%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_vendorarch}/auto
%dir %{perl_vendorarch}/auto/Sub
%dir %{perl_vendorarch}/auto/Sub/Identify
%dir %{perl_vendorarch}/Sub/
%{perl_vendorarch}/auto/Sub/Identify/*
%{perl_vendorarch}/Sub/Identify.pm


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