3 %bcond_without tests # do not perform "make test"
6 %define pnam Filter-BufferText
7 Summary: XML::Filter::BufferText Perl module - to guarantee characters in one event
8 Summary(pl.UTF-8): Moduł Perla XML::Filter::BufferText - gwarancja przesłania znaków w jednym zdarzeniu
9 Name: perl-XML-Filter-BufferText
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 2992c0387632583b966ab9c965b25512
17 URL: http://search.cpan.org/dist/XML-Filter-BufferText/
19 BuildRequires: perl-Test-Simple >= 0.40
20 BuildRequires: perl-XML-SAX >= 0.04
21 BuildRequires: perl(XML::SAX::Base) >= 1.03
23 BuildRequires: perl-devel >= 1:5.8.0
24 BuildRequires: rpm-perlprov >= 4.1-13
25 Requires: perl-XML-SAX >= 0.04
26 Requires: perl(XML::SAX::Base) >= 1.03
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This is a very simple filter. One common cause of grief (and
32 programmer error) is that XML parsers aren't required to provide
33 character events in one chunk. They can, but are not forced to, and
34 most don't. This filter does the trivial but oft-repeated task of
35 putting all characters into a single event.
37 %description -l pl.UTF-8
38 To jest bardzo prosty filtr. Jednym z częstych zmartwień (i błędów
39 programistów) jest to, że analizatory XML-a nie muszą dostarczać
40 zdarzeń znakowych w jednym kawałku. Mogą, ale nie są do tego zmuszone,
41 i przeważnie tego nie robią. Ten filtr wykonuje trywialne, ale często
42 wykonywane zadanie umieszczania wszystkich znaków w jednym zdarzeniu.
45 %setup -q -n %{pdir}-%{pnam}-%{version}
48 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorlib}/XML/Filter/BufferText.pm
67 %{_mandir}/man3/XML::Filter::BufferText.3pm*