]> 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 d4b21f7a424ee01a300ebb162dd59f27d2840739..a0ad2e3ef35afc6246e1a095bf9faec41ba1c8ff 100644 (file)
@@ -1,54 +1,54 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
-Summary:       CGI-FastTemplate perl module
-Summary(pl):   Modu³ perla CGI-FastTemplate
+%define        pdir    CGI
+%define        pnam    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:       1
-Copyright:     GPL
+Release:       8
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source:                ftp://ftp.perl.org/pub/CPAN/modules/by-module/CGI/CGI-FastTemplate-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.005_03-14
-%requires_eq   perl
-Requires:      %{perl_sitearch}
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# 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.
+Modu³ Perla CGI::FastTemplate zarz±dza wzorcami i analizuje je,
+zastêpuj±c przy tym nazwy zmiennych warto¶ciami.
 
 %prep
-%setup -q -n CGI-FastTemplate-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
-make
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/CGI/FastTemplate
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
-        README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.gz templates
-
-%{perl_sitelib}/CGI/FastTemplate.pm
-%{perl_sitearch}/auto/CGI/FastTemplate
-
+%doc README templates
+%{perl_vendorlib}/CGI/FastTemplate.pm
 %{_mandir}/man3/*
This page took 0.100237 seconds and 4 git commands to generate.