[packages/perl-HTML-Selector-XPath] - initial, version 0.18

adwol adwol at pld-linux.org
Mon Apr 6 15:48:06 CEST 2015


commit 27482d56e7804789b7d63d19aa5548fecbf4a292
Author: Adam Osuchowski <adwol at pld-linux.org>
Date:   Mon Apr 6 15:40:32 2015 +0200

    - initial, version 0.18

 perl-HTML-Selector-XPath.spec | 59 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
---
diff --git a/perl-HTML-Selector-XPath.spec b/perl-HTML-Selector-XPath.spec
new file mode 100644
index 0000000..a4363ce
--- /dev/null
+++ b/perl-HTML-Selector-XPath.spec
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%bcond_without	tests		# perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	HTML
+%define	pnam	Selector-XPath
+Summary:	HTML::Selector::XPath - CSS Selector to XPath compiler
+Summary(pl.UTF-8):	HTML::Selector::XPath - kompilator selektorów CSS do postaci języka XPath
+Name:		perl-HTML-Selector-XPath
+Version:	0.18
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	bb46fc14bb6ea3169a6176db00cc68f6
+URL:		http://search.cpan.org/dist/HTML-Selector-XPath/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:  perl-Test-Base
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+HTML::Selector::XPath is a utility function to compile full set of
+CSS2 and partial CSS3 selectors to the equivalent XPath expression.
+
+%description -l pl.UTF-8
+HTML::Selector::XPath jest modułem kompilującym pełny zestaw
+selektorów CSS2 i częściowo CSS3 do postaci odpowiedniego
+wyrażenia XPath.
+
+%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}/HTML/Selector/XPath.pm
+%{_mandir}/man?/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-HTML-Selector-XPath.git/commitdiff/27482d56e7804789b7d63d19aa5548fecbf4a292



More information about the pld-cvs-commit mailing list