3 %bcond_without tests # do not perform "make test"
6 %define pnam Plugin-Autoformat
7 Summary: Template::Plugin::Autoformat - Interface to Text::Autoformat module
8 Summary(pl.UTF-8): Template::Plugin::Autoformat - Interfejs do moduĊu Text::Autoformat
9 Name: perl-Template-Plugin-Autoformat
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Template/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: cb3d9224a0b4022cba7fd3f42d308bfa
17 URL: http://search.cpan.org/dist/Template-Plugin-Autoformat/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Template-Toolkit >= 2.2
22 BuildRequires: perl-Text-Autoformat >= 1.13
25 Provides: perl-Template-Toolkit-Plugin-Autoformat
26 Obsoletes: perl-Template-Toolkit-Plugin-Autoformat
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This Template Toolkit plugin module is an interface to Damian
31 Conway's Text::Autoformat Perl module which provides advanced text wrapping
34 Configuration options may be passed to the plugin constructor via the
37 [% USE autoformat(right => 30) %]
39 The autoformat subroutine can then be called, passing in text items which
40 will be wrapped and formatted according to the current configuration.
42 [% autoformat('The cat sat on the mat') %]
44 # %description -l pl.UTF-8
48 %setup -q -n %{pdir}-%{pnam}-%{version}
51 %{__perl} Makefile.PL \
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
60 %{__make} pure_install \
61 DESTDIR=$RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %{perl_vendorlib}/Template/Plugin/*.pm