|
|
3e1dd2 |
%{?scl:%scl_package perl-parent}
|
|
|
3e1dd2 |
%{!?scl:%global pkg_name %{name}}
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
Name: %{?scl_prefix}perl-parent
|
|
|
3e1dd2 |
Epoch: 1
|
|
|
3e1dd2 |
Version: 0.228
|
|
|
3e1dd2 |
Release: 1%{?dist}
|
|
|
3e1dd2 |
Summary: Establish an ISA relationship with base classes at compile time
|
|
|
3e1dd2 |
License: GPL+ or Artistic
|
|
|
3e1dd2 |
Group: Development/Libraries
|
|
|
3e1dd2 |
URL: http://search.cpan.org/dist/parent/
|
|
|
3e1dd2 |
Source0: http://search.cpan.org/CPAN/authors/id/C/CO/CORION/parent-%{version}.tar.gz
|
|
|
3e1dd2 |
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(id -nu)
|
|
|
3e1dd2 |
BuildArch: noarch
|
|
|
3e1dd2 |
BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker)
|
|
|
3e1dd2 |
BuildRequires: %{?scl_prefix}perl(lib)
|
|
|
3e1dd2 |
BuildRequires: %{?scl_prefix}perl(Test::More) >= 0.4
|
|
|
3e1dd2 |
%{?scl:%global perl_version %(scl enable %{scl} 'eval "`perl -V:version`"; echo $version')}
|
|
|
3e1dd2 |
%{!?scl:%global perl_version %(eval "`perl -V:version`"; echo $version)}
|
|
|
3e1dd2 |
Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%{perl_version})
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
%description
|
|
|
3e1dd2 |
Allows you to both load one or more modules, while setting up inheritance
|
|
|
3e1dd2 |
from those modules at the same time. Mostly similar in effect to:
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
package Baz;
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
BEGIN {
|
|
|
3e1dd2 |
require Foo;
|
|
|
3e1dd2 |
require Bar;
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
push @ISA, qw(Foo Bar);
|
|
|
3e1dd2 |
}
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
%prep
|
|
|
3e1dd2 |
%setup -q -n parent-%{version}
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
# Remove spurious exec permissions
|
|
|
3e1dd2 |
chmod -c -x Changes lib/parent.pm
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
%build
|
|
|
3e1dd2 |
%{?scl:scl enable %{scl} "}
|
|
|
3e1dd2 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
3e1dd2 |
%{?scl:"}
|
|
|
3e1dd2 |
%{?scl:scl enable %{scl} "}
|
|
|
3e1dd2 |
make %{?_smp_mflags}
|
|
|
3e1dd2 |
%{?scl:"}
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
%install
|
|
|
3e1dd2 |
rm -rf %{buildroot}
|
|
|
3e1dd2 |
%{?scl:scl enable %{scl} "}
|
|
|
3e1dd2 |
make pure_install DESTDIR=%{buildroot}
|
|
|
3e1dd2 |
%{?scl:"}
|
|
|
3e1dd2 |
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
3e1dd2 |
find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
|
|
|
3e1dd2 |
%{_fixperms} %{buildroot}
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
%check
|
|
|
3e1dd2 |
%{?scl:scl enable %{scl} "}
|
|
|
3e1dd2 |
make test
|
|
|
3e1dd2 |
%{?scl:"}
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
%clean
|
|
|
3e1dd2 |
rm -rf %{buildroot}
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
%files
|
|
|
3e1dd2 |
%doc Changes
|
|
|
3e1dd2 |
%{perl_vendorlib}/parent.pm
|
|
|
3e1dd2 |
%{_mandir}/man3/parent.3pm*
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
%changelog
|
|
|
3e1dd2 |
* Tue Nov 19 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.228-1
|
|
|
3e1dd2 |
- 0.228 bump
|
|
|
3e1dd2 |
|
|
|
3e1dd2 |
* Wed Feb 13 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.225-100
|
|
|
3e1dd2 |
- SCL package - initial import
|