3 %bcond_without tests # do not perform "make test"
7 Summary: XML::Encoding - module for parsing XML encoding maps
8 Summary(pl.UTF-8): XML::Encoding - moduł analizujący mapy kodowań XML
9 Name: perl-XML-Encoding
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 21a602a43060d49302c86ca77aa9db33
17 URL: http://search.cpan.org/dist/XML-Encoding/
18 BuildRequires: perl-XML-Parser >= 2.18
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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ń
39 zwrotnych (callback) push_prefix, pop_prefix i range_set.
42 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc Changes README maps
63 %attr(755,root,root) %{_bindir}/*
64 %{perl_vendorlib}/XML/Encoding.pm