]>
Commit | Line | Data |
---|---|---|
e9bfccb3 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
bb6a453e | 4 | |
1d57e4b9 | 5 | %define pdir Text |
6 | %define pnam EP3 | |
42bb85f9 | 7 | Summary: Text::EP3 - the extensible Perl preprocessor |
02978bd7 | 8 | Summary(pl.UTF-8): Text::EP3 - rozszerzalny preprocesor dla Perla |
54b4de65 | 9 | Name: perl-Text-EP3 |
71564cb0 | 10 | Version: 1.10 |
11 | Release: 1 | |
e9bfccb3 | 12 | License: unknown |
54b4de65 | 13 | Group: Development/Languages/Perl |
2d0c720e | 14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
71564cb0 | 15 | # Source0-md5: 2081ba6bf87e59bdfc937b8a17d0f3d9 |
bb6a453e | 16 | URL: http://search.cpan.org/dist/Text-EP3/ |
7eea4b97 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
48a2f5e5 | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
283d203b | 19 | BuildArch: noarch |
89ad9ac5 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54b4de65 | 21 | |
22 | %description | |
42bb85f9 | 23 | Text::EP3 is a Perl program that preprocesses STDIN or some set of |
bb6a453e ER |
24 | input files and produces an output file. EP3 only works on input files |
25 | and produces output files. The main difference between EP3 and other | |
26 | preprocessors is its built-in extensibility. Every directive in EP3 is | |
27 | really a method defined in EP3, one of its submodules, or embedded in | |
28 | the file that is being processed. By linking the directive name to the | |
29 | associated methods, other methods could be added, thus extending the | |
30 | preprocessor. | |
54b4de65 | 31 | |
0cbf6176 JR |
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 | |
42bb85f9 | 40 | jest rozszerzaniem preprocesora. |
54b4de65 | 41 | |
42 | %prep | |
4e77ff6f | 43 | %setup -q -n %{pdir}-%{pnam}-%{version} |
54b4de65 | 44 | |
45 | %build | |
48a2f5e5 | 46 | %{__perl} Makefile.PL \ |
dcb8d630 | 47 | INSTALLDIRS=vendor |
05e8a223 | 48 | %{__make} |
54b4de65 | 49 | |
e9bfccb3 | 50 | %{?with_tests:%{__make} test} |
51 | ||
54b4de65 | 52 | %install |
53 | rm -rf $RPM_BUILD_ROOT | |
54b4de65 | 54 | |
e9bfccb3 | 55 | %{__make} install \ |
56 | DESTDIR=$RPM_BUILD_ROOT | |
54b4de65 | 57 | |
54b4de65 | 58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
dc6df004 | 63 | %doc Changes README |
54b4de65 | 64 | %attr(755,root,root) %{_bindir}/ep3 |
48a2f5e5 | 65 | %{perl_vendorlib}/Text/EP3.pm |
66 | %{perl_vendorlib}/auto/Text/EP3 | |
54b4de65 | 67 | %{_mandir}/man3/* |