]>
Commit | Line | Data |
---|---|---|
4b2ac131 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
6ff54ac8 | 4 | |
8002ad86 | 5 | %define pdir XML |
6 | %define pnam Encoding | |
381fd5b9 | 7 | Summary: XML::Encoding - module for parsing XML encoding maps |
eb723aa5 | 8 | Summary(pl.UTF-8): XML::Encoding - moduł analizujący mapy kodowań XML |
f849516a | 9 | Name: perl-XML-Encoding |
e9a02847 | 10 | Version: 2.08 |
62920c03 | 11 | Release: 1 |
4b2ac131 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
f849516a | 14 | Group: Development/Languages/Perl |
fda5da13 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
e9a02847 | 16 | # Source0-md5: 21a602a43060d49302c86ca77aa9db33 |
6ff54ac8 | 17 | URL: http://search.cpan.org/dist/XML-Encoding/ |
0a100e8c | 18 | BuildRequires: perl-XML-Parser >= 2.18 |
381fd5b9 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
1f3cf00a | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
11bf23fe | 21 | BuildArch: noarch |
e0e3d015 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f849516a | 23 | |
24 | %description | |
381fd5b9 JB |
25 | This module, which is built as a subclass of XML::Parser, provides a |
26 | parser for encoding map files, which are XML files. The file | |
27 | maps/encmap.dtd in the distribution describes the structure of these | |
28 | files. Calling a parse method returns the name of the encoding map | |
29 | (obtained from the name attribute of the root element). The contents | |
30 | of the map are processed through the callback functions push_prefix, | |
31 | pop_prefix, and range_set. | |
f849516a | 32 | |
4caa5643 JR |
33 | %description -l pl.UTF-8 |
34 | Ten moduł, stworzony jako podklasa XML::Parser, udostępnia analizator | |
35 | dla plików map kodowań będących plikami XML. Plik maps/encmap.dtd | |
36 | zawarty w pakiecie opisuje strukturę tych plików. Wywołanie metody | |
37 | parse zwraca nazwę mapy kodowania (otrzymaną z atrybutu name elementu | |
38 | głównego). Zawartość mapy jest przetwarzana poprzez funkcje wywołań | |
381fd5b9 | 39 | zwrotnych (callback) push_prefix, pop_prefix i range_set. |
f849516a | 40 | |
41 | %prep | |
5375f4e1 | 42 | %setup -q -n %{pdir}-%{pnam}-%{version} |
f849516a | 43 | |
44 | %build | |
1f3cf00a | 45 | %{__perl} Makefile.PL \ |
32e07c37 | 46 | INSTALLDIRS=vendor |
8674756f | 47 | %{__make} |
f849516a | 48 | |
4b2ac131 | 49 | %{?with_tests:%{__make} test} |
50 | ||
f849516a | 51 | %install |
52 | rm -rf $RPM_BUILD_ROOT | |
f849516a | 53 | |
4b2ac131 | 54 | %{__make} install \ |
55 | DESTDIR=$RPM_BUILD_ROOT | |
f849516a | 56 | |
f849516a | 57 | %clean |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
0a100e8c | 62 | %doc Changes README maps |
f849516a | 63 | %attr(755,root,root) %{_bindir}/* |
1f3cf00a | 64 | %{perl_vendorlib}/XML/Encoding.pm |
62920c03 | 65 | %{_mandir}/man?/* |