]>
Commit | Line | Data |
---|---|---|
81d0b5c4 JB |
1 | # |
2 | # Conditional build: | |
91cc0a60 | 3 | %bcond_without tests # do not perform "make test" |
4 | # | |
81d0b5c4 | 5 | %include /usr/lib/rpm/macros.perl |
d97a35c9 | 6 | %define pdir XML |
7 | %define pnam Filter-BufferText | |
81d0b5c4 | 8 | Summary: XML::Filter::BufferText Perl module - to guarantee characters in one event |
44e31e2b | 9 | Summary(pl.UTF-8): Moduł Perla XML::Filter::BufferText - gwarancja przesłania znaków w jednym zdarzeniu |
81d0b5c4 | 10 | Name: perl-XML-Filter-BufferText |
8f81aee2 | 11 | Version: 1.01 |
12 | Release: 1 | |
05fe1e1a | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
81d0b5c4 | 15 | Group: Development/Languages/Perl |
1d702e41 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
8f81aee2 | 17 | # Source0-md5: 2992c0387632583b966ab9c965b25512 |
91cc0a60 | 18 | %if %{with tests} |
19 | BuildRequires: perl-Test-Simple >= 0.40 | |
20 | BuildRequires: perl-XML-SAX >= 0.04 | |
21 | BuildRequires: perl(XML::SAX::Base) >= 1.03 | |
22 | %endif | |
76361c42 | 23 | BuildRequires: perl-devel >= 1:5.8.0 |
291549a5 | 24 | BuildRequires: rpm-perlprov >= 4.1-13 |
81d0b5c4 JB |
25 | Requires: perl-XML-SAX >= 0.04 |
26 | Requires: perl(XML::SAX::Base) >= 1.03 | |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
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. | |
36 | ||
d1a83e46 JR |
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. | |
81d0b5c4 JB |
43 | |
44 | %prep | |
45 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
46 | ||
47 | %build | |
291549a5 | 48 | %{__perl} Makefile.PL \ |
278e80e8 | 49 | INSTALLDIRS=vendor |
81d0b5c4 JB |
50 | %{__make} |
51 | ||
91cc0a60 | 52 | %{?with_tests:%{__make} test} |
81d0b5c4 JB |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %{__make} install \ | |
58 | DESTDIR=$RPM_BUILD_ROOT | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
65 | %doc Changes README | |
291549a5 | 66 | %{perl_vendorlib}/XML/Filter/BufferText.pm |
81d0b5c4 | 67 | %{_mandir}/man3/* |