SPECS: perl-File-ShareDir.spec (NEW) - new
glen
glen at pld-linux.org
Mon Mar 31 20:37:34 CEST 2008
Author: glen Date: Mon Mar 31 18:37:34 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
perl-File-ShareDir.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-File-ShareDir.spec
diff -u /dev/null SPECS/perl-File-ShareDir.spec:1.1
--- /dev/null Mon Mar 31 20:37:34 2008
+++ SPECS/perl-File-ShareDir.spec Mon Mar 31 20:37:28 2008
@@ -0,0 +1,87 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without autodeps # don't BR packages needed only for resolving deps
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir File
+%define pnam ShareDir
+Summary: File::ShareDir - Locate per-dist and per-module shared files
+Name: perl-File-ShareDir
+Version: 0.05
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: f15b8ee973bc304732e41f89e7d5b71a
+URL: http://search.cpan.org/dist/File-ShareDir/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+BuildRequires: perl(Class::Inspector) >= 1.12
+BuildRequires: perl(Params::Util) >= 0.07
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The intent of File::ShareDir is to provide a companion to
+Class::Inspector and File::HomeDir, modules that take a process that
+is well-known by advanced Perl developers but gets a little tricky,
+and make it more available to the larger Perl community.
+
+Quite often you want or need your Perl module (CPAN or otherwise) to
+have access to a large amount of read-only data that is stored on the
+file-system at run-time.
+
+On a linux-like system, this would be in a place such as /usr/share,
+however Perl runs on a wide variety of different systems, and so the
+use of any one location is unreliable.
+
+Perl provides a little-known method for doing this, but almost nobody
+is aware that it exists. As a result, module authors often go through
+some very strange ways to make the data available to their code.
+
+The most common of these is to dump the data out to an enormous Perl
+data structure and save it into the module itself. The result are
+enormous multi-megabyte .pm files that chew up a lot of memory
+needlessly.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+rm $RPM_BUILD_ROOT%{perl_vendorlib}/auto/File/ShareDir/sample.txt
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/File/*.pm
+%{_mandir}/man3/*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2008-03-31 18:37:28 glen
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list