]> 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 d16c8ea4e559b6b4ea862a38981493872a7e6242..a0ad2e3ef35afc6246e1a095bf9faec41ba1c8ff 100644 (file)
@@ -1,38 +1,48 @@
+#
+# 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:       7
-License:       GPL
+Release:       8
+# 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
-BuildRequires: rpm-perlprov >= 3.0.3-16
+# 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
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       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
@@ -40,5 +50,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README templates
-%{perl_sitelib}/CGI/FastTemplate.pm
+%{perl_vendorlib}/CGI/FastTemplate.pm
 %{_mandir}/man3/*
This page took 0.103161 seconds and 4 git commands to generate.