]> git.pld-linux.org Git - packages/perl-Filter-Template.git/blame - perl-Filter-Template.spec
- tabs in preamble
[packages/perl-Filter-Template.git] / perl-Filter-Template.spec
CommitLineData
5a3fc8b1
MP
1#
2# Conditional build:
5a3fc8b1
MP
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir Filter
7%define pnam Template
793bd4fd 8Summary: Filter::Template - source filter for inline code templates
9deb8c55 9Summary(pl.UTF-8): Filter::Template - filtr kodu źródłowego dla szablonów kodu inline
5a3fc8b1
MP
10Name: perl-Filter-Template
11Version: 1.02
b825164a 12Release: 1
793bd4fd
JB
13# same as perl
14License: GPL v1+ or Artistic
5a3fc8b1 15Group: Development/Languages/Perl
b825164a 16Source0: http://www.cpan.org/modules/by-module/Filter/%{pdir}-%{pnam}-%{version}.tar.gz
5a3fc8b1 17# Source0-md5: 15aa7b46d94c2dcd9fe0acc8914943df
793bd4fd 18URL: http://search.cpan.org/dist/Filter-Template/
5a3fc8b1
MP
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
5a3fc8b1
MP
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
793bd4fd
JB
25Filter::Template is a Perl source filter that provides simple inline
26source code templates. Inlined source code can be significantly faster
27than subroutines, especially for small-scale functions like accessors
28and mutators. On the other hand, they are more difficult to maintain
29and use. Choose your trade-offs wisely.
5a3fc8b1 30
f7c742f1
JR
31%description -l pl.UTF-8
32Filter::Template to filtr kodu źródłowego Perla udostępniający proste
33szablony kodu źródłowego inline. Kod źródłowy inline może być znacząco
34szybszy niż podprocedury, zwłaszcza dla małych funkcji takich jak
35accessor czy mutator. Z drugiej strony są one dużo trudniejsze w
36utrzymywaniu i używaniu. Trzeba dokonać mądrego wyboru.
5a3fc8b1
MP
37
38%prep
39%setup -q -n %{pdir}-%{pnam}-%{version}
40
41%build
42%{__perl} Makefile.PL \
43 INSTALLDIRS=vendor
44
45%{__make}
46
47%{?with_tests:%{__make} test}
48
49%install
50rm -rf $RPM_BUILD_ROOT
51
52%{__make} pure_install \
53 DESTDIR=$RPM_BUILD_ROOT
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
60%doc CHANGES README
61%{perl_vendorlib}/Filter/Template.pm
793bd4fd 62%dir %{perl_vendorlib}/Filter/Template
5a3fc8b1
MP
63%{perl_vendorlib}/Filter/Template/UseBytes.pm
64%{_mandir}/man3/*
This page took 0.263277 seconds and 4 git commands to generate.