8
0
Pascal Bleser
2010-04-01 17:02:06 +00:00
committed by Git OBS Bridge
parent c68da60724
commit ffe9f9066b
4 changed files with 24 additions and 6 deletions

View File

@@ -1,17 +1,16 @@
# norootforbuild
Name: perl-local-lib
Version: 1.005001
Version: 1.006000
Release: 0
Summary: Create and Use a local Library Directory for Perl Modules
Source: http://search.cpan.org/CPAN/authors/id/A/AP/APEIRON/local-lib-%{version}.tar.gz
Source: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/lib/local-lib-%{version}.tar.gz
Source1: perl-homedir.sh
Source2: perl-homedir.csh
URL: http://search.cpan.org/dist/local-lib/
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl
BuildRequires: make perl
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(CPAN) >= 1.80
@@ -20,6 +19,11 @@ BuildRequires: perl(ExtUtils::ParseXS)
BuildRequires: perl(Module::Build) >= 0.28
BuildRequires: perl(Test::More)
BuildRequires: perl(ExtUtils::Install) >= 1.43
%if 0%{?suse_version} >= 1030
Requires: perl-base = %{perl_version}
%else
Requires: perl
%endif
Requires: perl(CPAN) >= 1.80
Requires: perl(ExtUtils::CBuilder)
Requires: perl(ExtUtils::Install) >= 1.43
@@ -69,10 +73,12 @@ install this package.
%setup -q -n "local-lib-%{version}"
%build
unset PERL_MM_OPT
%__perl Makefile.PL INSTALLDIRS=vendor PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
unset PERL_MM_OPT
%perl_make_install
%perl_process_packlist
@@ -80,6 +86,7 @@ install this package.
%__install -m0644 "%{SOURCE1}" "%{SOURCE2}" "%{buildroot}%{_sysconfdir}/profile.d/"
%check
unset PERL_MM_OPT
%__make test
%clean
@@ -88,10 +95,14 @@ install this package.
%files
%defattr(-,root,root)
%doc Changes
%dir %{perl_vendorlib}/lib
%dir %{perl_vendorlib}/lib/core
%{perl_vendorlib}/lib/core/only.pm
%dir %{perl_vendorlib}/local/
%{perl_vendorlib}/local/lib.pm
%dir %{perl_vendorarch}/auto/local
%{perl_vendorarch}/auto/local/lib
%doc %{perl_man3dir}/lib::core::only.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/local::lib.%{perl_man3ext}%{ext_man}
/var/adm/perl-modules/%{name}