SPECS: perl-UNIVERSAL-require.spec (NEW) - initial revision - UNIV...

migo migo at pld-linux.org
Mon Nov 7 15:14:13 CET 2005


Author: migo                         Date: Mon Nov  7 14:14:13 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial revision
- UNIVERSAL::require is now separated from UNIVERSAL-exports package. But
  UNIVERSAL-exports still contain UNIVERSAL::require... 

---- Files affected:
SPECS:
   perl-UNIVERSAL-require.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-UNIVERSAL-require.spec
diff -u /dev/null SPECS/perl-UNIVERSAL-require.spec:1.1
--- /dev/null	Mon Nov  7 15:14:13 2005
+++ SPECS/perl-UNIVERSAL-require.spec	Mon Nov  7 15:14:07 2005
@@ -0,0 +1,75 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	UNIVERSAL
+%define	pnam	require
+Summary:	UNIVERSAL::require - require() modules from a variable
+#Summary(pl):	
+Name:		perl-UNIVERSAL-require
+Version:	0.10
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	4ea51136ee7052bb37dc52c7cb8945b0
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+Conflicts:	perl-UNIVERSAL-exports <= 0.03
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+If you've ever had to do this...
+
+    eval "require $module";
+
+to get around the bareword caveats on require(), this module is for
+you.  It creates a universal require() class method that will work
+with every Perl module and its secure.  So instead of doing some
+arcane eval() work, you can do this:
+    
+    $module->require;
+
+# %description -l pl
+# TODO
+
+%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} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/UNIVERSAL/*.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  2005/11/07 14:14:07  migo
+- initial revision
+- UNIVERSAL::require is now separated from UNIVERSAL-exports package. But
+  UNIVERSAL-exports still contain UNIVERSAL::require...
+
================================================================



More information about the pld-cvs-commit mailing list