File perl-B-Hooks-EndOfScope.spec of Package perl-B-Hooks-EndOfScope
%define _real_name B-Hooks-EndOfScope
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
Summary: Execute code after a scope finished compilation
Name: perl-B-Hooks-EndOfScope
Version: 0.06
Release: 1
License: GPL
Group: Applications/CPAN
Packager: Leo Eraly <leo@unstable.be>
URL: http://search.cpan.org/~flora/B-Hooks-EndOfScope-0.06/lib/B/Hooks/EndOfScope.pm
Buildarch: noarch
BuildRequires: perl-Variable-Magic perl-Sub-Exporter
Requires: perl-Variable-Magic perl-Sub-Exporter perl-Data-Optlist perl-Params-Util
Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/B-Hooks-EndOfScope-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
Execute code after a scope finished compilation
%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}/B
%dir %{perl_vendorlib}/B/Hooks
%{perl_vendorlib}/B/Hooks/EndOfScope.pm
%changelog
* Tue Feb 03 2009 Leo Eraly <leo@unstable.be> - 0.06-1
- Initial package