From 326aa846cd9b2fb53a5a84e5c1fda918ff075a13 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Mon, 9 Mar 2009 17:01:37 +0000 Subject: [PATCH] initial import --- .cvsignore | 1 + import.log | 1 + perl-local-lib.spec | 72 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 75 insertions(+) create mode 100644 import.log create mode 100644 perl-local-lib.spec diff --git a/.cvsignore b/.cvsignore index e69de29..8f9df87 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +local-lib-1.003002.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..002ad60 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-local-lib-1_003002-1_fc10:HEAD:perl-local-lib-1.003002-1.fc10.src.rpm:1236618084 diff --git a/perl-local-lib.spec b/perl-local-lib.spec new file mode 100644 index 0000000..d7c98fa --- /dev/null +++ b/perl-local-lib.spec @@ -0,0 +1,72 @@ +Name: perl-local-lib +Version: 1.003002 +Release: 1%{?dist} +# lib/local/lib.pm -> GPL+ or Artistic +License: GPL+ or Artistic +Group: Development/Libraries +Summary: Create and use a local lib/ for perl modules +Source: http://search.cpan.org/CPAN/authors/id/A/AP/APEIRON/local-lib-%{version}.tar.gz +Url: http://search.cpan.org/dist/local-lib +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildArch: noarch + +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31 +BuildRequires: perl(CPAN) >= 1.80 +BuildRequires: perl(ExtUtils::CBuilder) +BuildRequires: perl(ExtUtils::ParseXS) +BuildRequires: perl(Module::Build) >= 0.28 +# testing... +BuildRequires: perl(Test::More) + +%description +This module provides a quick, convenient way of bootstrapping a user- +local Perl module library located within the user's home directory. It +also constructs and prints out for the user the list of environment +variables using the syntax appropriate for the user's current shell (as +specified by the 'SHELL' environment variable), suitable for directly +adding to one's shell configuration file. + +More generally, local::lib allows for the bootstrapping and usage of a +directory containing Perl modules outside of Perl's '@INC'. This makes +it easier to ship an application with an app-specific copy of a Perl module, +or collection of modules. Useful in cases like when an upstream maintainer +hasn't applied a patch to a module of theirs that you need for your +application. + +%prep +%setup -q -n local-lib-%{version} + +%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 +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + +%changelog +* Sun Mar 08 2009 Chris Weyl 1.003002-1 +- submission + +* Sun Mar 08 2009 Chris Weyl 1.003002-0 +- initial RPM packaging +- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8) + diff --git a/sources b/sources index e69de29..cc69719 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e3988eb5f0dff67b4bca98fe0cc3790d local-lib-1.003002.tar.gz