SPECS: perl-Eval-Context.spec (NEW) - initial, builds here, rel 1

agaran agaran at pld-linux.org
Fri Jan 11 09:06:33 CET 2008


Author: agaran                       Date: Fri Jan 11 08:06:33 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial, builds here, rel 1

---- Files affected:
SPECS:
   perl-Eval-Context.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Eval-Context.spec
diff -u /dev/null SPECS/perl-Eval-Context.spec:1.1
--- /dev/null	Fri Jan 11 09:06:33 2008
+++ SPECS/perl-Eval-Context.spec	Fri Jan 11 09:06:27 2008
@@ -0,0 +1,92 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Eval
+%define	pnam	Context
+Summary:	Eval::Context - Evalute perl code in context wraper
+#Summary(pl):
+Name:		perl-Eval-Context
+Version:	0.06
+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:	3a898b0019ffc6861ad9e43c25da90c3
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Data::Compare)
+BuildRequires:	perl(Data::TreeDumper)
+BuildRequires:	perl(Directory::Scratch::Structured)
+BuildRequires:	perl(File::Slurp)
+BuildRequires:	perl(Package::Generator)
+BuildRequires:	perl(Readonly)
+BuildRequires:	perl(Sub::Exporter)
+BuildRequires:	perl(Sub::Install)
+BuildRequires:	perl(Test::Block)
+BuildRequires:	perl(Test::Dependencies)
+BuildRequires:	perl(Test::Distribution)
+BuildRequires:	perl(Test::Exception)
+BuildRequires:	perl(Test::NoWarnings)
+BuildRequires:	perl(Test::Output)
+BuildRequires:	perl(Test::Perl::Critic)
+BuildRequires:	perl(Test::Pod)
+BuildRequires:	perl(Test::Pod::Coverage)
+BuildRequires:	perl(Test::Spelling)
+BuildRequires:	perl(Test::Strict)
+BuildRequires:	perl(Test::Warn)
+BuildRequires:	perl(version) >= 0.5
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module define a subroutine that let you evaluate Perl code in a
+specific context. The code can be passed directly as a string or as a
+file name to read from. It also provides some subroutines to let you
+define and optionally share variables and subroutines between your
+code and the code you wish to evaluate. Finally there is some support
+for running your code in a safe compartment.
+
+
+
+# %description -l pl # TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+	destdir=$RPM_BUILD_ROOT \
+	installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Eval/*.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-01-11 08:06:27  agaran
+- initial, builds here, rel 1
+
================================================================


More information about the pld-cvs-commit mailing list