]> git.pld-linux.org Git - packages/perl-XML-Encoding.git/blame - perl-XML-Encoding.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-XML-Encoding.git] / perl-XML-Encoding.spec
CommitLineData
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 7Summary: XML::Encoding - module for parsing XML encoding maps
eb723aa5 8Summary(pl.UTF-8): XML::Encoding - moduł analizujący mapy kodowań XML
f849516a 9Name: perl-XML-Encoding
e9a02847 10Version: 2.08
62920c03 11Release: 1
4b2ac131 12# same as perl
13License: GPL v1+ or Artistic
f849516a 14Group: Development/Languages/Perl
fda5da13 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
e9a02847 16# Source0-md5: 21a602a43060d49302c86ca77aa9db33
6ff54ac8 17URL: http://search.cpan.org/dist/XML-Encoding/
0a100e8c 18BuildRequires: perl-XML-Parser >= 2.18
381fd5b9 19BuildRequires: perl-devel >= 1:5.8.0
1f3cf00a 20BuildRequires: rpm-perlprov >= 4.1-13
11bf23fe 21BuildArch: noarch
e0e3d015 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
f849516a 23
24%description
381fd5b9
JB
25This module, which is built as a subclass of XML::Parser, provides a
26parser for encoding map files, which are XML files. The file
27maps/encmap.dtd in the distribution describes the structure of these
28files. Calling a parse method returns the name of the encoding map
29(obtained from the name attribute of the root element). The contents
30of the map are processed through the callback functions push_prefix,
31pop_prefix, and range_set.
f849516a 32
4caa5643
JR
33%description -l pl.UTF-8
34Ten moduł, stworzony jako podklasa XML::Parser, udostępnia analizator
35dla plików map kodowań będących plikami XML. Plik maps/encmap.dtd
36zawarty w pakiecie opisuje strukturę tych plików. Wywołanie metody
37parse zwraca nazwę mapy kodowania (otrzymaną z atrybutu name elementu
38głównego). Zawartość mapy jest przetwarzana poprzez funkcje wywołań
381fd5b9 39zwrotnych (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
52rm -rf $RPM_BUILD_ROOT
f849516a 53
4b2ac131 54%{__make} install \
55 DESTDIR=$RPM_BUILD_ROOT
f849516a 56
f849516a 57%clean
58rm -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?/*
This page took 0.311596 seconds and 4 git commands to generate.