8
0
Files
perl-HTML-Selector-XPath/perl-HTML-Selector-XPath.spec
Stephan Kulow 89831caf48 - 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Selector-XPath?expand=0&rev=2
2011-04-22 07:30:05 +00:00

63 lines
1.8 KiB
RPMSpec

#
# spec file for package perl-HTML-Selector-XPath (Version 0.07)
#
# Copyright (c) 2010 SUSE LINUX Products 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.07
Release: 1
License: GPL+ or Artistic
%define cpan_name HTML-Selector-XPath
Summary: CSS Selector to XPath compiler
Url: http://search.cpan.org/dist/HTML-Selector-XPath/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Base)
BuildRequires: perl(Test::More)
%{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
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog