LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File perl-Namespace-clean.spec of Package perl-Namespace-Clean (Project home:leo_eraly)

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

Summary: Keep imports and functions out of your namespace
Name: perl-Namespace-clean
Version: 0.09
Release: 1
License: GPL
Group: Applications/CPAN
Packager: Leo Eraly <leo@unstable.be>
URL: http://search.cpan.org/~flora/namespace-clean-0.09/lib/namespace/clean.pm

Buildarch: noarch

BuildRequires: perl-Test-Simple perl-B-Hooks-EndOfScope
Requires: perl-Variable-Magic perl-Test-Simple perl-B-Hooks-EndOfScope

Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/namespace-clean-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Keep imports and functions out of your namespace

%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}/namespace
%{perl_vendorlib}/namespace/clean.pm


%changelog
* Tue Feb 03 2009 Leo Eraly <leo@unstable.be> - 0.99-1
- Initial package