SPECS: perl-Petal-Utils.spec (NEW) - some utils for Petal

mguevara mguevara at pld-linux.org
Tue Mar 7 19:53:27 CET 2006


Author: mguevara                     Date: Tue Mar  7 18:53:27 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- some utils for Petal

---- Files affected:
SPECS:
   perl-Petal-Utils.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Petal-Utils.spec
diff -u /dev/null SPECS/perl-Petal-Utils.spec:1.1
--- /dev/null	Tue Mar  7 19:53:27 2006
+++ SPECS/perl-Petal-Utils.spec	Tue Mar  7 19:53:22 2006
@@ -0,0 +1,95 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Petal
+%define	pnam	Utils
+Summary:	Petal::Utils - Useful template modifiers for Petal.
+#Summary(pl):	
+Name:		perl-Petal-Utils
+Version:	0.06
+Release:	0.1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://search.cpan.org/CPAN/authors/id/W/WM/WMCKEE/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	d93d4e1724a967891b4974b6985986cb
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Date::Format) >= 0.01
+BuildRequires:	perl(Petal) >= 1.06
+BuildRequires:	perl(URI::Escape) >= 3.0
+BuildRequires:	perl(Module::Build) >= 0.20
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Petal::Utils package contains commonly used Petal modifiers (or plugins),
+and bundles them with an easy-to-use installation interface.  By default, a
+set of modifiers are installed into Petal when you use this module.  You can
+change which modifiers are installed by naming them after the use statement:
+
+  # use the default set:
+  use Petal::Utils qw( :default );
+
+  # use the date set of modifiers:
+  use Petal::Utils qw( :date );
+
+  # use only named modifiers, plus the debug set:
+  use Petal::Utils qw( UpperCase Date :debug );
+
+  # don't install any modifiers
+  use Petal::Utils qw();
+
+You'll find a list of plugin sets throughout this document.  You can also get
+a complete list by looking at the variable:
+
+  %Petal::Utils::PLUGIN_SET;
+
+For details on how the plugins are installed, see the "Advanced Petal" section
+of the Petal documentation.
+
+
+
+# %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 INSTALL README TODO
+%{perl_vendorlib}/Petal/*.pm
+%{perl_vendorlib}/Petal/Utils
+%{_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  2006/03/07 18:53:22  mguevara
+- some utils for Petal
+
================================================================


More information about the pld-cvs-commit mailing list