3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Filter::Template - source filter for inline code templates
9 Summary(pl): Filter::Template - filtr kodu ¼ród³owego dla szablonów kodu inline
10 Name: perl-Filter-Template
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 15aa7b46d94c2dcd9fe0acc8914943df
18 URL: http://search.cpan.org/dist/Filter-Template/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Filter::Template is a Perl source filter that provides simple inline
26 source code templates. Inlined source code can be significantly faster
27 than subroutines, especially for small-scale functions like accessors
28 and mutators. On the other hand, they are more difficult to maintain
29 and use. Choose your trade-offs wisely.
32 Filter::Template to filtr kodu ¼ród³owego Perla udostêpniaj±cy proste
33 szablony kodu ¼ród³owego inline. Kod ¼ród³owy inline mo¿e byæ znacz±co
34 szybszy ni¿ podprocedury, zw³aszcza dla ma³ych funkcji takich jak
35 accessor czy mutator. Z drugiej strony s± one du¿o trudniejsze w
36 utrzymywaniu i u¿ywaniu. Trzeba dokonaæ m±drego wyboru.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
52 %{__make} pure_install \
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/Filter/Template.pm
62 %dir %{perl_vendorlib}/Filter/Template
63 %{perl_vendorlib}/Filter/Template/UseBytes.pm