]>
Commit | Line | Data |
---|---|---|
80bba1c7 | 1 | # |
2 | # Conditional build: | |
12769e65 | 3 | %bcond_without tests # do not perform "make test" |
80bba1c7 | 4 | # |
87dbc740 | 5 | %define pdir Pod |
6 | %define pnam Parser | |
80bba1c7 | 7 | Summary: Pod::Parser - base class for creating POD filters and translators |
6477ced2 | 8 | Summary(pl.UTF-8): Pod::Parser - klasa bazowa do tworzenia klas filtrujących i tłumaczących POD |
80bba1c7 | 9 | Name: perl-Pod-Parser |
4d7b4b0b | 10 | Version: 1.63 |
ebe7f863 | 11 | Release: 1 |
8e2fc191 | 12 | Epoch: 1 |
80bba1c7 | 13 | # I'm not sure how to interpret the README... |
14 | License: Artistic | |
15 | Group: Development/Languages/Perl | |
fcb9a517 | 16 | Source0: http://www.cpan.org/modules/by-module/Pod/%{pdir}-%{pnam}-%{version}.tar.gz |
4d7b4b0b | 17 | # Source0-md5: d8e0d60e03d77442d354fd567e469ae4 |
35292a63 | 18 | URL: https://metacpan.org/release/Pod-Parser |
3cad86e1 | 19 | BuildRequires: perl(File::Spec) >= 0.82 |
80bba1c7 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
35292a63 | 22 | BuildRequires: rpmbuild(macros) >= 1.745 |
3cad86e1 JB |
23 | %if %{with tests} |
24 | BuildRequires: perl-Test-Simple >= 0.60 | |
25 | %endif | |
80bba1c7 | 26 | BuildArch: noarch |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
4082bbfd | 30 | This parrot is dead. It has ceased to be. |
31 | It's gone to meet it's Maker! THIS IS AN EX-PARROT! | |
32 | -- The Dead Parrot Sketch, Monty Python's Flying Circus | |
33 | ||
34 | Do s/parrot/package/g and you know the status of this distribution. | |
35 | ||
372533b5 | 36 | Pod::Parser is a base class for creating POD filters and translators. |
80bba1c7 | 37 | It handles most of the effort involved with parsing the POD sections |
372533b5 JB |
38 | from an input stream, leaving subclasses free to be concerned only |
39 | with performing the actual translation of text. | |
80bba1c7 | 40 | |
372533b5 JB |
41 | Pod::Parser parses PODs, and makes method calls to handle the various |
42 | components of the POD. Subclasses of Pod::Parser override these | |
43 | methods to translate the POD into whatever output format they desire. | |
80bba1c7 | 44 | |
416ce039 JR |
45 | %description -l pl.UTF-8 |
46 | Ta papuga jest martwa. Przestała istnieć. | |
47 | Odeszła na spotkanie ze swoim stwórcą! TO JEST EX-PAPUGA! | |
48 | -- skecz "Martwa Papuga", Latający Cyrk Monty Pythona | |
4082bbfd | 49 | |
416ce039 | 50 | Wykonaj s/papuga/pakiet/g, a poznasz status tego modułu. |
4082bbfd | 51 | |
416ce039 JR |
52 | Pod::Parser to klasa bazowa do tworzenia klas filtrujących i |
53 | tłumaczących POD. Obsługuje większą część zadań związanych z analizą | |
54 | sekcji POD ze strumienia wejściowego, pozostawiając podklasom jedynie | |
55 | przeprowadzanie samego tłumaczenia tekstu. | |
372533b5 | 56 | |
416ce039 JR |
57 | Pod::Parser przetwarza pliki POD i wywołuje metody obsługujące różne |
58 | komponenty POD. Podklasy Pod::Parser przykrywają te metody w celu | |
59 | tłumaczenia POD na żądany format wyjściowy. | |
80bba1c7 | 60 | |
61 | %prep | |
8d4f70e8 | 62 | %setup -q -n %{pdir}-%{pnam}-%{version} |
80bba1c7 | 63 | |
64 | %build | |
65 | %{__perl} Makefile.PL \ | |
66 | INSTALLDIRS=vendor | |
67 | %{__make} | |
68 | ||
69 | %{?with_tests:%{__make} test} | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %{__make} install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
3b781d9a | 77 | # resolve conflict with perl-tools |
3b781d9a | 78 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/podselect{,.cpan} |
3b781d9a | 79 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/podselect{,.cpan}.1p |
80 | ||
80bba1c7 | 81 | %clean |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc CHANGES README TODO | |
3cad86e1 | 87 | %attr(755,root,root) %{_bindir}/podselect.cpan |
ebe7f863 JB |
88 | %{perl_vendorlib}/Pod/Find.pm |
89 | %{perl_vendorlib}/Pod/InputObjects.pm | |
90 | %{perl_vendorlib}/Pod/ParseUtils.pm | |
91 | %{perl_vendorlib}/Pod/Parser.pm | |
92 | %{perl_vendorlib}/Pod/PlainText.pm | |
93 | %{perl_vendorlib}/Pod/Select.pm | |
3cad86e1 | 94 | %{_mandir}/man1/podselect.cpan.1p* |
ebe7f863 JB |
95 | %{_mandir}/man3/Pod::Find.3pm* |
96 | %{_mandir}/man3/Pod::InputObjects.3pm* | |
97 | %{_mandir}/man3/Pod::ParseUtils.3pm* | |
98 | %{_mandir}/man3/Pod::Parser.3pm* | |
99 | %{_mandir}/man3/Pod::PlainText.3pm* | |
100 | %{_mandir}/man3/Pod::Select.3pm* |