X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=perl-Text-Template.spec;h=a43742ff9f4e98e0046d0a006178fff185e8290b;hb=e46241b;hp=b82f29149fae4d0b6e1a252cb2106687adae6419;hpb=e9af3e70205802c28e7b2130e39cf2d70b3a6797;p=packages%2Fperl-Text-Template.git diff --git a/perl-Text-Template.spec b/perl-Text-Template.spec index b82f291..a43742f 100644 --- a/perl-Text-Template.spec +++ b/perl-Text-Template.spec @@ -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/*