forked from pool/perl-HTML-Selector-XPath
- Fix build - updated to 0.23 see /usr/share/doc/packages/perl-HTML-Selector-XPath/Changes - updated to 0.20 see /usr/share/doc/packages/perl-HTML-Selector-XPath/Changes - updated to 0.18 see /usr/share/doc/packages/perl-HTML-Selector-XPath/Changes 0.18 NEXT - Fix bug in `:not(...)[attr] (Aaron Crane) - Support `:nth-child(odd)` and `:nth-child(even)` (Aaron Crane) - Translation of `[attr$=tail]` works with XPath 1.0 (Aaron Crane) 0.17 - Support unicode characters for id and class selectors (aereal) - Normalize space characters of the class attribute (hitode909) 0.16 - Added link to repository (D. Steinbrunner) 0.15 - Fix bugs in :contains("string") (Aaron Crane) 0.14 - Also allow single quotes in attribute expressions, as seems to be allowed per http://www.w3.org/TR/CSS2/syndata.html 0.13 - Added C<prefix> option to add a prefix like C<xhtml>, contributed by Toby Inkster This closes RT #73719 0.12 - Add tests and fix negated selectors as reported by Nilson Santos Figueiredo Junior 0.11 - Add test to MANIFEST so it also ships 0.10 - Identifiers are now parsed closer to the CSS3 spec - Certain invalid attribute selectors now raise an exception 0.09 - Fix bug in attribute-value-substring selectors where the CSS attributes were wrongly assumed to be specified with @href (Aaron Crane) - Make test suite less verbose (Aaron Crane) 0.08 - Fix bug when combining selectors (p , q). Whitespace created invalid XPath expressions there. (Corion) - Fix bug when combining :root selectors as the second selector. The first selector was modified. (Corion) - :root now acts relative to the given "root" option, not the document root (Corion) - More css3 selectors support (Corion) - updated to 0.11 see /usr/share/doc/packages/perl-HTML-Selector-XPath/Changes 0.11 - Add test to MANIFEST so it also ships 0.10 - Identifiers are now parsed closer to the CSS3 spec - Certain invalid attribute selectors now raise an exception 0.09 - Fix bug in attribute-value-substring selectors where the CSS attributes were wrongly assumed to be specified with @href (Aaron Crane) - Make test suite less verbose (Aaron Crane) 0.08 - Fix bug when combining selectors (p , q). Whitespace created invalid XPath expressions there. (Corion) - Fix bug when combining :root selectors as the second selector. The first selector was modified. (Corion) - :root now acts relative to the given "root" option, not the document root (Corion) - More css3 selectors support (Corion) - updated to 0.07 - Added a COPYRIGHT section - Add CSS3 "=$" operator (Corion) - Add CSS3 "=^" operator (Corion) - Add complex subexpressions for :not() (Corion) - Add :empty selector (Corion) - Support 'root' parameters to to_xpath (JZOBEL, David Wheeler, Corion) - Add CSS3 "=*" operator for real substring matching (Corion) - Add CSS3 ":first-of-type" and ":nth-of-type()" pseudo-attributes (Corion) (but if you're using them, you're likely better off using XPath already) - Add CSS3 "~" operator (Corion) - Adopt tests for "~" operator from RT #61990, by Aaron Crane (Corion) - Add :contains() selector (only immediate child nodes) (Corion) - Support implicit selectors like "> em" (translated to "* > em") (Corion) Fixes RT #50131 (Reported by David Wheeler) - Fix more implicit universal selectors (fixes RT #49982) :lang(c) as a bare selector works now (Corion, Aaron Crane) - initial package (0.04) OBS-URL: https://build.opensuse.org/request/show/640453 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Selector-XPath?expand=0&rev=8
61 lines
1.8 KiB
RPMSpec
61 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package perl-HTML-Selector-XPath
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: perl-HTML-Selector-XPath
|
|
Version: 0.23
|
|
Release: 0
|
|
%define cpan_name HTML-Selector-XPath
|
|
Summary: CSS Selector to XPath compiler
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Group: Development/Libraries/Perl
|
|
Url: http://search.cpan.org/dist/HTML-Selector-XPath/
|
|
Source0: https://cpan.metacpan.org/authors/id/C/CO/CORION/%{cpan_name}-%{version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Module::Install)
|
|
BuildRequires: perl(Test::Base)
|
|
%{perl_requires}
|
|
|
|
%description
|
|
HTML::Selector::XPath is a utility function to compile full set of CSS2 and
|
|
partial CSS3 selectors to the equivalent XPath expression.
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,755)
|
|
%doc Changes README
|
|
|
|
%changelog
|