From 0dab723aeef939a6ea55b554653a4cbfbae410b6 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Thu, 18 Dec 2003 15:39:02 +0000 Subject: [PATCH] - new Changed files: perl-Class-XPath.spec -> 1.1 --- perl-Class-XPath.spec | 60 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 perl-Class-XPath.spec diff --git a/perl-Class-XPath.spec b/perl-Class-XPath.spec new file mode 100644 index 0000000..5392687 --- /dev/null +++ b/perl-Class-XPath.spec @@ -0,0 +1,60 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Class +%define pnam XPath +Summary: Class::XPath - module that adds XPath matching to object trees +Summary(pl): Class::XPath - modu³ dodaj±cy dopasowywanie XPath do drzew obiektów +Name: perl-Class-XPath +Version: 1.3 +Release: 1 +# same as perl 5 +License: GPL or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 5618170bb2990d6a78d53a6035158b78 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This module adds XPath-style matching to your object trees. This means +that you can find nodes using an XPath-esque query with "match()" from +anywhere in the tree. Also, the "xpath()" method returns a unique path +to a given node which can be used as an identifier. + +%description -l pl +Ten modu³ dodaje dopasowywanie w stylu XPath do drzew obiektów. +Oznacza to, ¿e mo¿na szukaæ wêz³ów przy u¿yciu zapytania typu XPath +funkcj± "match()" z ka¿dego miejsca w drzewie. Ponadto metoda +"xpath()" zwraca unikaln± ¶cie¿kê do danego wêz³a, któr± mo¿na u¿ywaæ +jako identyfikator. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor + +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/Class/XPath.pm +%{_mandir}/man3/* -- 2.44.0