]> git.pld-linux.org Git - packages/perl-CGI-FastTemplate.git/blobdiff - perl-CGI-FastTemplate.spec
- tests added
[packages/perl-CGI-FastTemplate.git] / perl-CGI-FastTemplate.spec
index 7730d4d7a6c811873232a005ef862fda2a6243c3..a0ad2e3ef35afc6246e1a095bf9faec41ba1c8ff 100644 (file)
@@ -1,25 +1,31 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    CGI
 %define        pnam    FastTemplate
-Summary:       CGI::FastTemplate perl module
-Summary(pl):   Modu³ perla CGI::FastTemplate
+Summary:       CGI::FastTemplate - Perl extension for managing templates, and performing variable interpolation
+Summary(pl):   CGI::FastTemplate - rozszerzenie Perla do zarz±dzania wzorcami i zastêpowania zmiennych
 Name:          perl-CGI-FastTemplate
 Version:       1.09
 Release:       8
-License:       GPL
+# 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
-BuildRequires: perl >= 5.6.1
+# Source0-md5: c5fe8ead04c525c8d5633c9453af802f
+BuildRequires: perl-devel >= 5.6.1
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-CGI::FastTemplate manages templates and parses templates replacing
-variable names with values.
+CGI::FastTemplate Perl module manages templates and parses templates
+replacing variable names with values.
 
 %description -l pl
-Modu³ perla CGI::FastTemplate - zarz±dza wzorcami i analizuje je,
+Modu³ Perla CGI::FastTemplate zarz±dza wzorcami i analizuje je,
 zastêpuj±c przy tym nazwy zmiennych warto¶ciami.
 
 %prep
@@ -27,13 +33,16 @@ zast
 
 %build
 %{__perl} Makefile.PL \
-       INSTALLDIRS=vendor 
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.068133 seconds and 4 git commands to generate.