]> git.pld-linux.org Git - packages/perl-Text-Template.git/blobdiff - perl-Text-Template.spec
- release 2
[packages/perl-Text-Template.git] / perl-Text-Template.spec
index b82f29149fae4d0b6e1a252cb2106687adae6419..a43742ff9f4e98e0046d0a006178fff185e8290b 100644 (file)
@@ -1,43 +1,62 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
-Summary:       Text-Template perl module
-Summary(pl):   Modu³ perla Text-Template
+%define                pdir    Text
+%define                pnam    Template
+Summary:       Text::Template - expand template text with embedded Perl
+Summary(pl.UTF-8):     Text::Template - przetwarzanie szablonów tekstowych przez wbudowany Perl
 Name:          perl-Text-Template
-Version:       1.31
-Release:       1
-License:       GPL
+Version:       1.44
+Release:       2
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(de):     Entwicklung/Sprachen/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Text/Text-Template-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
+Source0:       http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 81a43d284d9c3cdb2b28e104c1c18609
+URL:           http://search.cpan.org/dist/Text-Template/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Text-Template perl module.
-
-%description -l pl
-Modu³ perla Text-Template.
+This is a library for generating form letters, building HTML pages,
+or filling in templates generally.  A `template' is a piece of text
+that has little Perl programs embedded in it here and there.  When you
+`fill in' a template, you evaluate the little programs and replace
+them with their values.
+
+%description -l pl.UTF-8
+To jest biblioteka do generowania listów z formularzy, budowania stron
+HTML lub ogólnie wypełniania szablonów. Szablon (template) to kawałek
+tekstu, który ma wbudowane gdzieniegdzie małe programy w Perlu. Przy
+"wypełnianiu" szablonu te małe programy są wykonywane i zastępowane
+zwracanymi przez nie wartościami.
 
 %prep
-%setup -q -n Text-Template-%{version}
+%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
-
-gzip -9nf ChangeLog README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/Text/Template.pm
+%doc README
+%{perl_vendorlib}/Text/Template.pm
+%{perl_vendorlib}/Text/Template
 %{_mandir}/man3/*
This page took 0.091326 seconds and 4 git commands to generate.