]> git.pld-linux.org Git - packages/perl-Text-EP3.git/blob - perl-Text-EP3.spec
33eda275b81cb90e037dfd534f42200a4a6bef85
[packages/perl-Text-EP3.git] / perl-Text-EP3.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Text
7 %define         pnam    EP3
8 Summary:        Text::EP3 - the extensible Perl preprocessor
9 Summary(pl.UTF-8):      Text::EP3 - rozszerzalny preprocesor dla Perla
10 Name:           perl-Text-EP3
11 Version:        1.10
12 Release:        1
13 License:        unknown
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  2081ba6bf87e59bdfc937b8a17d0f3d9
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Text::EP3 is a Perl program that preprocesses STDIN or some set of
24 input files and produces an output file.  EP3 only works on input
25 files and produces output files.  The main difference between EP3 and
26 other preprocessors is its built-in extensibility.  Every directive in
27 EP3 is really a method defined in EP3, one of its submodules, or
28 embedded in the file that is being processed.  By linking the
29 directive name to the associated methods, other methods could be
30 added, thus extending the preprocessor.
31
32 %description -l pl.UTF-8
33 Text::EP3 jest programem w Perlu, który przetwarza STDIN lub pewien
34 zbiów plików wejściowych, tworząc plik wyjściowy. Działa on jedynie na
35 plikach wejściowych, tworząc pliki wyjściowe. Główną różnicą pomiędzy
36 EP3 i innymi preprocesorami jest wbudowana rozszerzalność. Każda
37 dyrektywa EP3 jest w rzeczywistości metodą zdefiniowaną w EP3, jednym
38 z jego podmodułów lub w przetwarzanym pliku. Powiązanie nazwy
39 dyrektywy ze stowarzyszoną metodą umożliwia dodawanie innych metod, co
40 jest rozszerzaniem preprocesora.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49
50 %{?with_tests:%{__make} test}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc Changes README
64 %attr(755,root,root) %{_bindir}/ep3
65 %{perl_vendorlib}/Text/EP3.pm
66 %{perl_vendorlib}/auto/Text/EP3
67 %{_mandir}/man3/*
This page took 0.046402 seconds and 2 git commands to generate.