SPECS: perl-Scalar-Defer.spec (NEW) - initial, builds here, rel 1

agaran agaran at pld-linux.org
Wed Jan 9 16:22:20 CET 2008


Author: agaran                       Date: Wed Jan  9 15:22:20 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial, builds here, rel 1

---- Files affected:
SPECS:
   perl-Scalar-Defer.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Scalar-Defer.spec
diff -u /dev/null SPECS/perl-Scalar-Defer.spec:1.1
--- /dev/null	Wed Jan  9 16:22:20 2008
+++ SPECS/perl-Scalar-Defer.spec	Wed Jan  9 16:22:15 2008
@@ -0,0 +1,76 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Scalar
+%define	pnam	Defer
+Summary:	Scalar::Defer - Lazy evaluation in Perl
+#Summary(pl):	
+Name:		perl-Scalar-Defer
+Version:	0.14
+Release:	1
+License:	Mit
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/A/AU/AUDREYT/Scalar-Defer-0.14.tar.gz
+# Source0-md5:	6fef0daeaabb7271480ccd04f91b56eb
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Class::InsideOut)
+BuildRequires:	perl(Exporter::Lite)
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module exports two functions, defer and lazy, for constructing
+values that are evaluated on demand. It also exports a force function
+to force evaluation of a deferred value.
+
+Takes a block or a code reference, and returns a deferred value.
+Each time that value is demanded, the block is evaluated again to
+yield a fresh result.
+
+Like defer, except the value is computed at most once. Subsequent
+evaluation will simply use the cached result.
+
+# %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 README
+%{perl_vendorlib}/Scalar/*.pm
+#%%{perl_vendorlib}/Scalar/Defer
+%{_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-01-09 15:22:15  agaran
+- initial, builds here, rel 1
+
================================================================


More information about the pld-cvs-commit mailing list