]> git.pld-linux.org Git - packages/perl-Class-XPath.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 18 Dec 2003 15:39:02 +0000 (15:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Class-XPath.spec -> 1.1

perl-Class-XPath.spec [new file with mode: 0644]

diff --git a/perl-Class-XPath.spec b/perl-Class-XPath.spec
new file mode 100644 (file)
index 0000000..5392687
--- /dev/null
@@ -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/*
This page took 0.145202 seconds and 4 git commands to generate.