[packages/perl-HTML-Query] Initial
arekm
arekm at pld-linux.org
Wed Oct 22 22:46:58 CEST 2025
commit 6cd4b67a59ca78bf0ed07adbee25ddcf0189201f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Oct 22 22:46:43 2025 +0200
Initial
perl-HTML-Query.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
---
diff --git a/perl-HTML-Query.spec b/perl-HTML-Query.spec
new file mode 100644
index 0000000..adfdcff
--- /dev/null
+++ b/perl-HTML-Query.spec
@@ -0,0 +1,62 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+#
+%define pdir HTML
+%define pnam Query
+Summary: HTML::Query - jQuery-like selection queries for HTML::Element
+Name: perl-HTML-Query
+Version: 0.09
+Release: 1
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: e1681a2427dff87b12b7cb6c87dd70a1
+URL: https://metacpan.org/dist/HTML-Query
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
+%if %{with tests}
+BuildRequires: perl(Badger) >= 0.03
+BuildRequires: perl-HTML-Tree >= 3.23
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The HTML::Query module is an add-on for the HTML::Tree module set. It
+provides a simple way to select one or more elements from a tree using
+a query syntax inspired by jQuery. This selector syntax will be
+reassuringly familiar to anyone who has ever written a CSS selector.
+
+HTML::Query is not an attempt to provide a complete (or even
+near-complete) implementation of jQuery in Perl (see Ingy's pQuery
+module for a more ambitious attempt at that). Rather, it borrows some
+of the tried and tested selector syntax from jQuery (and CSS) that can
+easily be mapped onto the look_down() method provided by the
+HTML::Element module.
+
+%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} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%{perl_vendorlib}/HTML/Query.pm
+%{_mandir}/man3/HTML::Query.3pm.*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-HTML-Query.git/commitdiff/6cd4b67a59ca78bf0ed07adbee25ddcf0189201f
More information about the pld-cvs-commit
mailing list