]>
Commit | Line | Data |
---|---|---|
74672428 | 1 | # |
2 | # Conditional build: | |
d895041c | 3 | %bcond_without tests # do not perform "make test" |
52ac888f | 4 | # |
74672428 | 5 | %include /usr/lib/rpm/macros.perl |
cdbb91ba | 6 | %define pdir XML |
7 | %define pnam Twig | |
2e6b8a37 | 8 | Summary: XML::Twig - a perl module for processing huge XML documents in tree mode |
f2548b04 | 9 | Summary(pl.UTF-8): XML::Twig - przetwarzanie dużych dokumentów XML w trybie drzewa |
74672428 | 10 | Name: perl-XML-Twig |
b3e5c2d9 | 11 | Version: 3.49 |
ad3ac1e5 | 12 | Release: 1 |
74672428 | 13 | License: Artistic |
14 | Group: Development/Languages/Perl | |
33028086 | 15 | Source0: http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz |
b3e5c2d9 | 16 | # Source0-md5: afb5786e15cfe7823add6756382e7df7 |
33028086 | 17 | URL: http://search.cpan.org/dist/XML-Twig/ |
c2dce81e | 18 | %if %{with tests} |
b3e5c2d9 JB |
19 | BuildRequires: perl-Encode >= 2.42_01 |
20 | BuildRequires: perl-IO-CaptureOutput >= 1.1102 | |
21 | BuildRequires: perl-IO-stringy >= 2.110 | |
22 | BuildRequires: perl-Scalar-List-Utils >= 1.23 | |
23 | BuildRequires: perl-Test >= 1.25_02 | |
24 | BuildRequires: perl-Test-Pod >= 1.45 | |
25 | BuildRequires: perl-Tie-IxHash >= 1.22 | |
cf180378 | 26 | BuildRequires: perl-Unicode-Map8 |
27 | BuildRequires: perl-Unicode-String | |
b3e5c2d9 JB |
28 | BuildRequires: perl-XML-Filter-BufferText >= 1.01 |
29 | BuildRequires: perl-XML-Handler-YAWriter >= 0.23 | |
c2dce81e | 30 | BuildRequires: perl-XML-Parser >= 2.23 |
b3e5c2d9 JB |
31 | BuildRequires: perl-XML-SAX-Writer >= 0.53 |
32 | BuildRequires: perl-XML-Simple >= 2.18 | |
33 | BuildRequires: perl-XML-XPathEngine | |
c2dce81e | 34 | %endif |
cdc14367 | 35 | BuildRequires: perl-devel >= 1:5.8.0 |
5836090e | 36 | BuildRequires: rpm-perlprov >= 4.1-13 |
c2dce81e | 37 | Requires: perl-XML-Parser >= 2.23 |
74672428 | 38 | BuildArch: noarch |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
5b7aded6 | 41 | %define _noautoreq_perl XML::Twig::Elt |
f2548b04 | 42 | |
74672428 | 43 | %description |
dd9426a0 CM |
44 | This module provides a way to process XML documents. It is build on |
45 | top of XML::Parser. | |
74672428 | 46 | |
47 | The module offers a tree interface to the document, while allowing you | |
48 | to output the parts of it that have been completely processed. | |
49 | ||
221f4673 JR |
50 | %description -l pl.UTF-8 |
51 | Ten moduł udostępnia sposób na przetwarzanie dokumentów XML. Jest | |
e75676b3 JB |
52 | zbudowany w oparciu o XML::Parser. |
53 | ||
dd9426a0 CM |
54 | Moduł oferuje drzewiasty interfejs do dokumentu, pozwalając |
55 | przekazywać na wyjście części, które zostały już całkowicie | |
56 | przetworzone. | |
74672428 | 57 | |
58 | %prep | |
59 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
60 | ||
61 | %build | |
b3e5c2d9 | 62 | %{__perl} Makefile.PL -y \ |
f0ddaddb | 63 | INSTALLDIRS=vendor |
74672428 | 64 | %{__make} |
d895041c | 65 | |
30a191db | 66 | %{?with_tests:%{__make} test} |
74672428 | 67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
d895041c | 71 | %{__make} install \ |
72 | DESTDIR=$RPM_BUILD_ROOT | |
74672428 | 73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
e8a6aee0 | 79 | %attr(755,root,root) %{_bindir}/xml_* |
33028086 | 80 | %{perl_vendorlib}/XML/Twig.pm |
8d08b1e6 JB |
81 | %dir %{perl_vendorlib}/XML/Twig |
82 | %{perl_vendorlib}/XML/Twig/*.pm | |
33028086 JB |
83 | %{_mandir}/man1/xml_*.1p* |
84 | %{_mandir}/man3/XML::Twig*.3pm* |