Author: mis Date: Thu Nov 20 08:19:51 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - new
---- Files affected: SPECS: perl-Excel-Template.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/perl-Excel-Template.spec diff -u /dev/null SPECS/perl-Excel-Template.spec:1.1 --- /dev/null Thu Nov 20 09:19:52 2008 +++ SPECS/perl-Excel-Template.spec Thu Nov 20 09:19:45 2008 @@ -0,0 +1,68 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Excel +%define pnam Template +Summary: Excel::Template - create Excel files from templates +Name: perl-Excel-Template +Version: 0.31 +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: dc7ad5cba7b61cd4cbfc337562cbffe0 +%if %{with tests} +BuildRequires: perl-Spreadsheet-WriteExcel +BuildRequires: perl-version +%endif +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This is a module used for templating Excel files. Its genesis came +from the need to use the same datastructure as HTML::Template, but +provide Excel files instead. The existing modules don't do the trick, +as they require replication of logic that's already been done within +HTML::Template. + +%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) +%dir %{perl_vendorlib}/%{pdir} +%{perl_vendorlib}/%{pdir}/%{pnam}.pm +%{perl_vendorlib}/%{pdir}/%{pnam} +%{_mandir}/man3/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2008/11/20 08:19:45 mis +- new + + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
