]>
Commit | Line | Data |
---|---|---|
f1c57152 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
f1c57152 | 5 | %define pdir XML |
6 | %define pnam RSS-LibXML | |
7 | Summary: XML::RSS::LibXML - XML::RSS with XML::LibXML | |
c920c791 | 8 | Summary(pl.UTF-8): XML::RSS::LibXML - XML::RSS z XML::LibXML |
f1c57152 | 9 | Name: perl-XML-RSS-LibXML |
c7f85dc5 | 10 | Version: 0.3102 |
f1c57152 | 11 | Release: 1 |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
c920c791 | 15 | Source0: http://www.cpan.org/modules/by-authors/id/D/DM/DMAKI/%{pdir}-%{pnam}-%{version}.tar.gz |
c7f85dc5 | 16 | # Source0-md5: 9fbc00ce70c200a22dd6438e8679d174 |
f1c57152 | 17 | URL: http://search.cpan.org/dist/XML-RSS-LibXML/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-Class-Accessor | |
22 | BuildRequires: perl-DateTime-Format-Mail | |
23 | BuildRequires: perl-DateTime-Format-W3CDTF | |
24 | BuildRequires: perl-UNIVERSAL-require | |
25 | BuildRequires: perl-XML-LibXML | |
26 | BuildRequires: perl-XML-LibXML-XPathContext | |
27 | %endif | |
28 | BuildArch: noarch | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
c920c791 JB |
32 | XML::RSS::LibXML uses XML::LibXML (libxml2) for parsing RSS instead of |
33 | XML::RSS' XML::Parser (expat), while trying to keep interface | |
34 | compatibility with XML::RSS. | |
f1c57152 | 35 | |
c920c791 JB |
36 | XML::RSS is an extremely handy tool, but it is unfortunately not |
37 | exactly the most lean or efficient RSS parser, especially in a | |
38 | long-running process. So for a long time I had been using my own | |
39 | version of RSS parser to get the maximum speed and efficiency - this | |
40 | is the re-packaged version of that module, such that it adheres to the | |
41 | XML::RSS interface. | |
f1c57152 | 42 | |
c920c791 JB |
43 | Use this module when you have severe performance requirements working |
44 | with RSS files. | |
f1c57152 | 45 | |
c920c791 JB |
46 | %description -l pl.UTF-8 |
47 | XML::RSS::LibXML do przetwarzania RSS wykorzystuje XML::LibXML | |
48 | (libxml2) zamiast używanego przez XML::RSS XML::Parser (expat), | |
49 | próbując zachować interfejs kompatybilny z XML::RSS. | |
50 | ||
51 | XML::RSS to bardzo podręczne narzędzie, ale niestety nie jest | |
52 | najlżejszym ani najbardziej wydajnym analizatorem RSS, zwłaszcza przy | |
53 | długo działających procesach. Natomiast ten pakiet zawiera | |
54 | przepakowaną wersję własnego analizatora RSS używanego od dawna przez | |
55 | autora. | |
56 | ||
57 | Tego modułu można używać jeśli mamy ostre wymagania co do wydajności | |
58 | przy pracy z plikami RSS. | |
f1c57152 | 59 | |
60 | %prep | |
c7f85dc5 | 61 | %setup -q -n %{pdir}-%{pnam}-%{version} |
f1c57152 | 62 | |
63 | %build | |
c7f85dc5 | 64 | %{__perl} Makefile.PL \ |
65 | INSTALLDIRS=vendor | |
66 | %{__make} | |
f1c57152 | 67 | |
c7f85dc5 | 68 | %{?with_tests:%{__make} test} |
f1c57152 | 69 | |
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
c7f85dc5 | 73 | %{__make} install \ |
74 | DESTDIR=$RPM_BUILD_ROOT | |
f1c57152 | 75 | |
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc Changes | |
82 | %{perl_vendorlib}/XML/RSS/*.pm | |
83 | %{perl_vendorlib}/XML/RSS/LibXML | |
84 | %{_mandir}/man3/* |