File perl-Tie-RefHash.spec of Package perl-Tie-Refhash
%define _real_name Tie-RefHash
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
Summary: Use references as hash keys
Name: perl-Tie-RefHash
Version: 1.38
Release: 1
License: GPL
Group: Applications/CPAN
Packager: Leo Eraly <leo@unstable.be>
URL: http://search.cpan.org/~nuffin/Tie-RefHash-1.38/lib/Tie/RefHash.pm
Buildarch: noarch
Source: http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/Tie-RefHash-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
Use references as hash keys
%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)
#%{_mandir}/man3/*.gz
%dir %{perl_vendorlib}/Tie
%{perl_vendorlib}/Tie/RefHash.pm
%changelog
* Tue Feb 03 2009 Leo Eraly <leo@unstable.be> - 1.38-1
- Initial package