]> git.pld-linux.org Git - packages/perl-Template-Plugin-Autoformat.git/blob - perl-Template-Plugin-Autoformat.spec
a75e53861d2bdc96000cf9d516dd740f3e13356a
[packages/perl-Template-Plugin-Autoformat.git] / perl-Template-Plugin-Autoformat.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Template
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
10 Version:        2.71
11 Release:        1
12 # same as perl
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
20 %if %{with tests}
21 BuildRequires:  perl-Template-Toolkit >= 2.2
22 BuildRequires:  perl-Text-Autoformat >= 1.13
23 %endif
24 BuildArch:      noarch
25 Provides:       perl-Template-Toolkit-Plugin-Autoformat
26 Obsoletes:      perl-Template-Toolkit-Plugin-Autoformat
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 This Template Toolkit plugin module is an interface to Damian
31 Conway's Text::Autoformat Perl module which provides advanced text wrapping
32 and formatting.
33
34 Configuration options may be passed to the plugin constructor via the 
35 USE directive.
36
37     [% USE autoformat(right => 30) %]
38
39 The autoformat subroutine can then be called, passing in text items which 
40 will be wrapped and formatted according to the current configuration.
41
42     [% autoformat('The cat sat on the mat') %]
43
44 # %description -l pl.UTF-8
45 # TODO
46
47 %prep
48 %setup -q -n %{pdir}-%{pnam}-%{version}
49
50 %build
51 %{__perl} Makefile.PL \
52         INSTALLDIRS=vendor
53 %{__make}
54
55 %{?with_tests:%{__make} test}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} pure_install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc README
69 %{perl_vendorlib}/Template/Plugin/*.pm
70 %{_mandir}/man3/*
This page took 0.069481 seconds and 2 git commands to generate.