]> git.pld-linux.org Git - packages/perl-XML-Encoding.git/blob - perl-XML-Encoding.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-XML-Encoding.git] / perl-XML-Encoding.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    XML
6 %define         pnam    Encoding
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
10 Version:        2.08
11 Release:        1
12 # same as perl
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
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
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.
32
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.
40
41 %prep
42 %setup -q -n %{pdir}-%{pnam}-%{version}
43
44 %build
45 %{__perl} Makefile.PL \
46         INSTALLDIRS=vendor
47 %{__make}
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc Changes README maps
63 %attr(755,root,root) %{_bindir}/*
64 %{perl_vendorlib}/XML/Encoding.pm
65 %{_mandir}/man?/*
This page took 0.049558 seconds and 4 git commands to generate.