]> git.pld-linux.org Git - SPECS.git/blob - perl-XML-RSSLite.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-XML-RSSLite.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    XML
6 %define         pnam    RSSLite
7 Summary:        XML::RSSLite - lightweight, "relaxed" RSS (and XML-ish) parser
8 Summary(pl.UTF-8):      XML::RSSLite - lekki, "osłabiony" analizator RSS (i XML-owy)
9 Name:           perl-XML-RSSLite
10 Version:        0.15
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tgz
16 # Source0-md5:  965efb72d844e44ea551c640666551fd
17 URL:            http://search.cpan.org/dist/XML-RSSLite/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 This module attempts to extract the maximum amount of content from
25 available documents, and is less concerned with XML compliance than
26 alternatives. Rather than rely on XML::Parser, it uses heuristics and
27 good old-fashioned Perl regular expressions. It stores the data in a
28 simple hash structure, and "aliases" certain tags so that when done,
29 you can count on having the minimal data necessary for re-constructing
30 a valid RSS file. This means you get the basic title, description, and
31 link for a channel and its items.
32
33 %description -l pl.UTF-8
34 Ten moduł próbuje wydobyć maksymalną ilość treści z dostępnych
35 dokumentów i jest mniej skupiony na zgodności z XML-em niż zamienniki.
36 Zamiast polegać na XML::Parser, używa heurystyki i starych, dobrych
37 perlowych wyrażeń regularnych. Zapisuje dane w prostej strukturze
38 haszowanej i nadaje aliasy pewnym znacznikom, przez co można liczyć na
39 posiadanie minimalnej ilości danych potrzebnych do odtworzenia
40 poprawnego pliku RSS. Oznacza to, że dostajemy podstawowy tytuł, opis
41 oraz odnośnik do kanału i jego elementów.
42
43 %prep
44 %setup -q -n %{pdir}-%{pnam}-%{version}
45
46 %build
47 %{__perl} Makefile.PL \
48         INSTALLDIRS=vendor
49 %{__make}
50
51 %{?with_tests:%{__make} test}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc CHANGES README TODO
65 %{perl_vendorlib}/XML/RSSLite.pm
66 %{_mandir}/man3/*
This page took 0.160069 seconds and 3 git commands to generate.