initial commit
This commit is contained in:
parent
5a282d6d0b
commit
3e98a91f70
@ -0,0 +1 @@
|
||||
parent-0.221.tar.gz
|
||||
1
import.log
Normal file
1
import.log
Normal file
@ -0,0 +1 @@
|
||||
perl-parent-0_221-1_fc9:HEAD:perl-parent-0.221-1.fc9.src.rpm:1213892892
|
||||
71
perl-parent.spec
Normal file
71
perl-parent.spec
Normal file
@ -0,0 +1,71 @@
|
||||
Name: perl-parent
|
||||
Version: 0.221
|
||||
Release: 1%{?dist}
|
||||
Summary: Establish an ISA relationship with base classes at compile time
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/parent/
|
||||
Source0: http://www.cpan.org/authors/id/C/CO/CORION/parent-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::More)
|
||||
|
||||
%description
|
||||
Allows you to both load one or more modules, while setting up inheritance
|
||||
from those modules at the same time. Mostly similar in effect to:
|
||||
|
||||
package Baz;
|
||||
|
||||
BEGIN {
|
||||
require Foo;
|
||||
require Bar;
|
||||
|
||||
push @ISA, qw(Foo Bar);
|
||||
}
|
||||
|
||||
%prep
|
||||
%setup -q -n parent-%{version}
|
||||
|
||||
find . -type f -exec chmod -c -x {} +
|
||||
|
||||
cat << \EOF > %{name}-prov
|
||||
#!/bin/sh
|
||||
%{__perl_provides} $* |\
|
||||
sed -e '/perl([DFR].*)/d'
|
||||
EOF
|
||||
|
||||
%define __perl_provides %{_builddir}/parent-%{version}/%{name}-prov
|
||||
chmod +x %{__perl_provides}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
||||
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes t/
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Wed May 28 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.221-1
|
||||
- Specfile autogenerated by cpanspec 1.75.
|
||||
Loading…
Reference in New Issue
Block a user