3 %bcond_without tests # do not perform "make test"
7 Summary: Class::XPath - module that adds XPath matching to object trees
8 Summary(pl.UTF-8): Class::XPath - moduł dodający dopasowywanie XPath do drzew obiektów
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 22ff3d2536027f3a9f59c6eb849fa610
17 URL: http://search.cpan.org/dist/Class-XPath/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This module adds XPath-style matching to your object trees. This means
25 that you can find nodes using an XPath-esque query with "match()" from
26 anywhere in the tree. Also, the "xpath()" method returns a unique path
27 to a given node which can be used as an identifier.
29 %description -l pl.UTF-8
30 Ten moduł dodaje dopasowywanie w stylu XPath do drzew obiektów.
31 Oznacza to, że można szukać węzłów przy użyciu zapytania typu XPath
32 funkcją "match()" z każdego miejsca w drzewie. Ponadto metoda
33 "xpath()" zwraca unikalną ścieżkę do danego węzła, którą można używać
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{perl_vendorlib}/Class/XPath.pm