SPECS: perl-XML-XPathEngine.spec (NEW), perl-HTML-TreeBuilder-XPat...

radek radek at pld-linux.org
Mon Apr 30 14:29:09 CEST 2007


Author: radek                        Date: Mon Apr 30 12:29:09 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   perl-XML-XPathEngine.spec (NONE -> 1.1)  (NEW), perl-HTML-TreeBuilder-XPath.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-XML-XPathEngine.spec
diff -u /dev/null SPECS/perl-XML-XPathEngine.spec:1.1
--- /dev/null	Mon Apr 30 14:29:09 2007
+++ SPECS/perl-XML-XPathEngine.spec	Mon Apr 30 14:29:03 2007
@@ -0,0 +1,72 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	XML
+%define	pnam	XPathEngine
+Summary:	XML::XPathEngine - a re-usable XPath engine for DOM-like trees
+#Summary(pl.UTF-8):	
+Name:		perl-XML-XPathEngine
+Version:	0.08
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	225f53d420d4fca50cd9d18b877780d6
+URL:		http://search.cpan.org/dist/XML-XPathEngine/
+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 provides an XPath engine, that can be re-used by other
+module/classes that implement trees.
+
+In order to use the XPath engine, nodes in the user module need to mimick
+DOM nodes. The degree of similitude between the user tree and a DOM dictates 
+how much of the XPath features can be used. A module implementing all of the
+DOM should be able to use this module very easily (you might need to add
+the cmp method on nodes in order to get ordered result sets). 
+
+# %description -l pl.UTF-8
+# TODO
+
+%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
+%{perl_vendorlib}/XML/*.pm
+%{perl_vendorlib}/XML/XPathEngine
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/04/30 12:29:03  radek
+- new
+

================================================================
Index: SPECS/perl-HTML-TreeBuilder-XPath.spec
diff -u /dev/null SPECS/perl-HTML-TreeBuilder-XPath.spec:1.1
--- /dev/null	Mon Apr 30 14:29:09 2007
+++ SPECS/perl-HTML-TreeBuilder-XPath.spec	Mon Apr 30 14:29:03 2007
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	HTML
+%define	pnam	TreeBuilder-XPath
+Summary:	Typical XPath methods for HTML::TreeBuilder
+#Summary(pl.UTF-8):	
+Name:		perl-HTML-TreeBuilder-XPath
+Version:	0.08
+Release:	1
+# same as perl5 5.8.4+
+License:	GPL v2 or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	2617027d4cd76e304a3006ba4f0381d0
+URL:		http://search.cpan.org/dist/HTML-TreeBuilder-XPath/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(XML::XPathEngine) >= 0.08
+BuildRequires:	perl-HTML-Tree
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module adds typical XPath methods to HTML::TreeBuilder, to make it
+easy to query a document.
+
+# %description -l pl.UTF-8
+# TODO
+
+%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
+%{perl_vendorlib}/HTML/TreeBuilder/*.pm
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/04/30 12:29:03  radek
+- new
+
================================================================


More information about the pld-cvs-commit mailing list