]> git.pld-linux.org Git - packages/perl-XML-XPath-Simple.git/blame - perl-XML-XPath-Simple.spec
use generic url
[packages/perl-XML-XPath-Simple.git] / perl-XML-XPath-Simple.spec
CommitLineData
7367233e
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
ddfa5a96 4
fed8793c 5%define pdir XML
6%define pnam XPath-Simple
ddfa5a96 7%include /usr/lib/rpm/macros.perl
7367233e 8Summary: XML::XPath::Simple - very simple interface for XPaths
291e9dc6 9Summary(pl.UTF-8): XML::XPath::Simple - bardzo prosty interfejs do XPath
7367233e
JB
10Name: perl-XML-XPath-Simple
11Version: 0.05
dcbc8c5c 12Release: 2
7367233e
JB
13License: GPL v2+
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: c97b04ecd031e7a27e5b8eb09a44928f
ddfa5a96
ER
17URL: http://search.cpan.org/dist/XML-XPath-Simple/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
7367233e
JB
20%if %{with tests}
21BuildRequires: perl-Test-Simple >= 0.18
22BuildRequires: perl-XML-Simple >= 1.08
23%endif
7367233e
JB
24Requires: perl-XML-Simple >= 1.08
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29XML::XPath::Simple is designed to allow for the use of simple
30Abbreviated XPath syntax to access values from a small XML document.
31This module is not meant as a drop-in replacement for XML::XPath, and
32doesn't support the entire W3C XPath Recommendation. This module is
33meant as an easy and simple way to access XML data from small,
34non-complex structures.
35
36XML::XPath::Simple doesn't support documents that have elements
37containing mixed content (text and tags), nor does it allow for the
38walking of the tree structure, or the counting of elements. While this
39module allows access to specific nodes using the position() function,
40internally the module doesn't necessarially parse the XML structure in
41any specific order, so position() calls may not return the value
42expected.
43
52d657b4
JR
44%description -l pl.UTF-8
45XML::XPath::Simple został zaprojektowany aby umożliwić użycie prostej
46składni Abbreviated XPath do dostępu do wartości z małego dokumentu
47XML. Ten moduł nie ma być pełnym zamiennikiem XML::XPath i nie
48obsługuje całej rekomendacji XPath z W3C. Ma być prostym sposobem na
49dostęp do danych XML z małych, nie złożonych struktur.
7367233e 50
52d657b4
JR
51XML::XPath::Simple nie obsługuje dokumentów z elementami o mieszanej
52treści (tekst i znaczniki), nie pozwala też na przemieszczanie po
53strukturze drzewa ani liczenie elementów. O ile ten moduł pozwala na
54dostęp do określonych węzłów przy użyciu funkcji position(),
55wewnętrznie niekoniecznie analizuje strukturę XML-a w określonej
56kolejności, więc wywołania position() mogą nie zwrócić takiej
57wartości, jaką oczekiwano.
7367233e
JB
58
59%prep
60%setup -q -n %{pdir}-%{pnam}-%{version}
61
62%build
63%{__perl} Makefile.PL \
64 INSTALLDIRS=vendor
7367233e
JB
65%{__make}
66
67%{?with_tests:%{__make} test}
68
69%install
70rm -rf $RPM_BUILD_ROOT
71
72%{__make} install \
73 DESTDIR=$RPM_BUILD_ROOT
74
75%clean
76rm -rf $RPM_BUILD_ROOT
77
78%files
79%defattr(644,root,root,755)
80%doc Changes README
81%{perl_vendorlib}/XML/XPath/Simple.pm
82%{_mandir}/man3/*
This page took 0.112665 seconds and 4 git commands to generate.