]>
Commit | Line | Data |
---|---|---|
e15065c2 JB |
1 | # |
2 | # Conditional build: | |
c161d230 | 3 | %bcond_without tests # do not perform "make test" |
f8e01214 | 4 | |
b237f86b | 5 | %define pdir XML |
6 | %define pnam SAX-Machines | |
e15065c2 | 7 | Summary: XML::SAX::Machines Perl module |
4cf039d0 ER |
8 | Summary(cs.UTF-8): Modul XML::SAX::Machines pro Perl |
9 | Summary(da.UTF-8): Perlmodul XML::SAX::Machines | |
10 | Summary(de.UTF-8): XML::SAX::Machines Perl Modul | |
11 | Summary(es.UTF-8): Módulo de Perl XML::SAX::Machines | |
12 | Summary(fr.UTF-8): Module Perl XML::SAX::Machines | |
13 | Summary(it.UTF-8): Modulo di Perl XML::SAX::Machines | |
14 | Summary(ja.UTF-8): XML::SAX::Machines Perl モジュール | |
15 | Summary(ko.UTF-8): XML::SAX::Machines 펄 모줄 | |
16 | Summary(nb.UTF-8): Perlmodul XML::SAX::Machines | |
17 | Summary(pl.UTF-8): Moduł Perla XML::SAX::Machines | |
18 | Summary(pt.UTF-8): Módulo de Perl XML::SAX::Machines | |
19 | Summary(pt_BR.UTF-8): Módulo Perl XML::SAX::Machines | |
20 | Summary(ru.UTF-8): Модуль для Perl XML::SAX::Machines | |
21 | Summary(sv.UTF-8): XML::SAX::Machines Perlmodul | |
22 | Summary(uk.UTF-8): Модуль для Perl XML::SAX::Machines | |
23 | Summary(zh_CN.UTF-8): XML::SAX::Machines Perl 模块 | |
e15065c2 | 24 | Name: perl-XML-SAX-Machines |
20e1a97c | 25 | Version: 0.42 |
5bececd3 | 26 | Release: 1 |
0207ac00 | 27 | Epoch: 1 |
e15065c2 JB |
28 | License: Artistic, GPL or BSD |
29 | Group: Development/Languages/Perl | |
ae0e567d | 30 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
20e1a97c | 31 | # Source0-md5: 82cce7207bd50edd1d2386eea5e2c84b |
f8e01214 | 32 | URL: http://search.cpan.org/dist/XML-SAX-Machines/ |
cc878989 | 33 | BuildRequires: perl-devel >= 1:5.8.0 |
c161d230 | 34 | %if %{with tests} |
e15065c2 | 35 | BuildRequires: perl(XML::SAX::Base) >= 1.02 |
f8e01214 | 36 | BuildRequires: perl-XML-SAX >= 0.05 |
0207ac00 | 37 | # doc say 0.4100001, so maybe too much, but safer |
38 | BuildRequires: perl-XML-SAX-Writer >= 0.42 | |
5432ef90 | 39 | BuildRequires: rpm-perlprov >= 4.1-13 |
0207ac00 | 40 | %endif |
e15065c2 | 41 | Requires: perl(XML::SAX::Base) >= 1.02 |
f8e01214 | 42 | Requires: perl-XML-SAX >= 0.05 |
0207ac00 | 43 | # as above... |
44 | Requires: perl-XML-SAX-Writer >= 0.42 | |
e15065c2 JB |
45 | BuildArch: noarch |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
49 | XML::SAX::Machines is a collection of APIs that allow complex SAX | |
50 | machines to be constructed without a huge amount of extra typing. | |
51 | ||
fb9b2c01 JR |
52 | %description -l pl.UTF-8 |
53 | XML::SAX::Machines to zestaw API pozwalający na konstruowanie | |
54 | złożonych konstrukcji SAX bez dużej ilości nadmiarowego kodu. | |
e15065c2 JB |
55 | |
56 | %prep | |
57 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
58 | ||
59 | %build | |
5432ef90 | 60 | %{__perl} Makefile.PL \ |
87827cca | 61 | INSTALLDIRS=vendor |
e15065c2 JB |
62 | %{__make} |
63 | ||
c161d230 | 64 | %{?with_tests:%{__make} test} |
e15065c2 JB |
65 | |
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %{__make} install \ | |
72c7a827 | 70 | DESTDIR=$RPM_BUILD_ROOT \ |
71 | INSTALLSITELIB=$RPM_BUILD_ROOT%{perl_vendorlib} | |
e15065c2 JB |
72 | |
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
20e1a97c | 78 | %doc CHANGES README |
5432ef90 | 79 | %{perl_vendorlib}/XML/Filter/*.pm |
80 | %{perl_vendorlib}/XML/SAX/*.pm | |
81 | %{perl_vendorlib}/XML/SAX/Machines | |
e15065c2 | 82 | %{_mandir}/man3/* |