3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Filter-BufferText
8 Summary: XML::Filter::BufferText Perl module - to guarantee characters in one event
9 Summary(pl): Modu³ Perla XML::Filter::BufferText - gwarancja przes³ania znaków w jednym zdarzeniu
10 Name: perl-XML-Filter-BufferText
13 License: Artistic or GPL
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 2992c0387632583b966ab9c965b25512
18 BuildRequires: perl-Test-Simple >= 0.40
19 BuildRequires: perl-XML-SAX >= 0.04
20 BuildRequires: perl(XML::SAX::Base) >= 1.03
22 BuildRequires: perl-devel >= 5.6
23 BuildRequires: rpm-perlprov >= 4.1-13
24 Requires: perl-XML-SAX >= 0.04
25 Requires: perl(XML::SAX::Base) >= 1.03
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This is a very simple filter. One common cause of grief (and
31 programmer error) is that XML parsers aren't required to provide
32 character events in one chunk. They can, but are not forced to, and
33 most don't. This filter does the trivial but oft-repeated task of
34 putting all characters into a single event.
37 To jest bardzo prosty filtr. Jednym z czêstych zmartwieñ (i b³êdów
38 programistów) jest to, ¿e analizatory XML-a nie musz± dostarczaæ
39 zdarzeñ znakowych w jednym kawa³ku. Mog±, ale nie s± do tego zmuszone,
40 i przewa¿nie tego nie robi±. Ten filtr wykonuje trywialne, ale czêsto
41 wykonywane zadanie umieszczania wszystkich znaków w jednym zdarzeniu.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorlib}/XML/Filter/BufferText.pm