]>
Commit | Line | Data |
---|---|---|
65c74154 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
7f943ad0 | 4 | |
b32a5e9a | 5 | %define pdir XML |
6 | %define pnam Filter-Cache | |
7f943ad0 | 7 | %include /usr/lib/rpm/macros.perl |
65c74154 | 8 | Summary: XML::Filter::Cache - a SAX2 recorder/playback mechanism |
477f38a4 | 9 | Summary(pl.UTF-8): XML::Filter::Cache - mechanizm nagrywania/odtwarzania SAX2 |
65c74154 | 10 | Name: perl-XML-Filter-Cache |
11 | Version: 0.03 | |
35d05300 | 12 | Release: 2 |
65c74154 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
a543dbde | 17 | # Source0-md5: 2590e2a28c5741aa8cd14503e0ea767e |
35d05300 | 18 | Patch0: %{name}-weird_test_failure.patch |
7f943ad0 | 19 | URL: http://search.cpan.org/dist/XML-Filter-Cache/ |
e9a959be | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
65c74154 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
22 | %if %{with tests} | |
23 | BuildRequires: perl-XML-SAX >= 0.08 | |
24 | BuildRequires: perl-XML-SAX-Writer >= 0.39 | |
25 | %endif | |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
241f2de3 | 30 | This is a very simple filter module for SAX2 events. By default it |
31 | caches events into a big binary file on disk (the cache files are | |
32 | generally much larger than the original XML at the moment, but I'll | |
33 | work on that), but the storage backend is pluggable. It uses Storable | |
34 | to do the freeze/thaw thing, and at the moment this is not pluggin | |
35 | replaceable, simply because there's no better tool for the task at | |
36 | hand. | |
65c74154 | 37 | |
27890435 JR |
38 | %description -l pl.UTF-8 |
39 | To jest bardzo prosty moduł filtra dla zdarzeń SAX2. Domyślnie | |
40 | buforuje on zdarzenia w dużym pliku binarnym na dysku (aktualnie pliki | |
41 | bufora są zwykle o wiele większe niż oryginalny XML, ale autor tym się | |
e9a959be | 42 | zajmie), ale backend przechowywania danych jest wymienny. Do |
27890435 JR |
43 | wykonywania freeze/thaw używana jest klasa Storable i aktualnie nie |
44 | jest zamienna, ponieważ po prostu nie ma lepszego narzędzia do tego | |
e9a959be | 45 | celu. |
65c74154 | 46 | |
47 | %prep | |
48 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35d05300 | 49 | %patch0 -p0 |
65c74154 | 50 | |
51 | %build | |
52 | %{__perl} Makefile.PL \ | |
53 | INSTALLDIRS=vendor | |
54 | %{__make} | |
55 | ||
56 | %{?with_tests:%{__make} test} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %{__make} install \ | |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
99aa5b31 | 69 | %{perl_vendorlib}/XML/*/* |
65c74154 | 70 | %{_mandir}/man3/* |