File perl-UNIVERSAL-isa.spec of Package perl-UNIVERSAL-isa

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

Summary: Attempt to recover from people calling UNIVERSAL::isa as a function
Name: perl-UNIVERSAL-isa
Version: 1.01
Release: 1
License: GPL
Group: Applications/CPAN
Packager: Leo Eraly <leo@unstable.be>
URL: http://search.cpan.org/~chromatic/UNIVERSAL-isa-1.01/lib/UNIVERSAL/isa.pm

Buildarch: noarch

%if 0%{?suse_version} < 1100
BuildRequires:  perl-Module-Build
%endif

Source: http://search.cpan.org/CPAN/authors/id/C/CH/CHROMATIC/UNIVERSAL-isa-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Attempt to recover from people calling UNIVERSAL::isa as a function

%prep
%setup -n %{_real_name}-%{version}

%build
%{__perl} Build.PL INSTALLDIRS="vendor"  destdir="%{buildroot}"
./Build

%install
%{__rm} -rf %{buildroot}
%{__mkdir} -p "%{buildroot}/%{_mandir}/man3/"
%{__mkdir} -p "%{buildroot}/%{perl_vendorlib}/UNIVERSAL/"
%{__install} -D -m0755 blib/lib/UNIVERSAL/isa.pm "%{buildroot}/%{perl_vendorlib}/UNIVERSAL/"
%{__install} -D -m0644 blib/libdoc/UNIVERSAL::isa.3pm "%{buildroot}/%{_mandir}/man3/"
%{__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}/UNIVERSAL
%{perl_vendorlib}/UNIVERSAL/isa.pm


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