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