]>
Commit | Line | Data |
---|---|---|
46301ea2 | 1 | # |
2 | # Conditional build: | |
7853a4ef | 3 | %bcond_without tests # do not perform "make test" |
9e48da5f | 4 | |
493a4d1d | 5 | %define pdir XML |
6 | %define pnam Handler-PrintEvents | |
bf9b56c4 | 7 | Summary: XML::Handler::PrintEvents - prints PerlSAX events (for debugging) |
8d1ff7f7 | 8 | Summary(pl.UTF-8): XML::Handler::PrintEvents - wypisywanie zdarzeń PerlSAX (dla odpluskwiania) |
46301ea2 | 9 | Name: perl-XML-Handler-PrintEvents |
10 | Version: 0.01 | |
f60667e0 | 11 | Release: 2 |
46301ea2 | 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: bd3b3d840d98bca3e11f9dad34364da4 | |
9e48da5f | 17 | URL: http://search.cpan.org/dist/XML-Handler-PrintEvents/ |
abe9f612 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
46301ea2 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | %if %{with tests} | |
21 | BuildRequires: perl-XML-Filter-SAXT | |
22 | %endif | |
23 | Obsoletes: perl-libxml-enno | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
abe9f612 JB |
28 | This PerlSAX handler prints the PerlSAX events it receives to STDOUT. |
29 | It can be useful when debugging PerlSAX filters. It supports all | |
30 | PerlSAX handler including ignorable_whitespace. | |
46301ea2 | 31 | |
20437423 JR |
32 | %description -l pl.UTF-8 |
33 | Ten moduł obsługi PerlSAX wypisuje otrzymywane zdarzenia PerlSAX na | |
34 | standardowe wyjście. Może to być przydatne przy odpluskwianiu filtrów | |
35 | PerlSAX. Obsługuje wszystkie funkcje obsługi PerlSAX włącznie z | |
abe9f612 | 36 | ignorable_whitespace. |
46301ea2 | 37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | %{__make} | |
45 | ||
46 | %{?with_tests:%{__make} test} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Changes README | |
46301ea2 | 60 | %{perl_vendorlib}/XML/Handler/PrintEvents.pm |
46301ea2 | 61 | %{_mandir}/man3/* |