2007-08-08 02:40:25 +00:00
|
|
|
#
|
2013-02-27 13:27:26 +00:00
|
|
|
# spec file for package perl-XML-XPath
|
2007-08-08 02:40:25 +00:00
|
|
|
#
|
2016-01-07 11:40:16 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-08-08 02:40:25 +00:00
|
|
|
#
|
2008-10-23 02:43:53 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-08-08 02:40:25 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-10-23 02:43:53 +00:00
|
|
|
|
2007-08-08 02:40:25 +00:00
|
|
|
Name: perl-XML-XPath
|
2016-01-21 11:12:08 +00:00
|
|
|
Version: 1.24
|
2013-02-27 13:27:26 +00:00
|
|
|
Release: 0
|
2016-01-07 11:40:16 +00:00
|
|
|
%define cpan_name XML-XPath
|
2016-01-19 15:29:12 +00:00
|
|
|
Summary: Parse and evaluate XPath statements
|
2016-01-07 11:40:16 +00:00
|
|
|
License: Artistic-2.0
|
2013-02-27 13:27:26 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2016-01-07 11:40:16 +00:00
|
|
|
Url: http://search.cpan.org/dist/XML-XPath/
|
|
|
|
Source0: http://www.cpan.org/authors/id/M/MA/MANWAR/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
|
|
|
BuildArch: noarch
|
2007-08-08 02:40:25 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-01-07 11:40:16 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(XML::Parser) >= 2.23
|
|
|
|
Requires: perl(XML::Parser) >= 2.23
|
2010-12-03 14:56:55 +00:00
|
|
|
%{perl_requires}
|
2007-08-08 02:40:25 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module aims to comply exactly to the XPath specification at
|
2016-01-07 11:40:16 +00:00
|
|
|
http://www.w3.org/TR/xpath and yet allow extensions to be added in the form
|
|
|
|
of functions.Modules such as XSLT and XPointer may need to do this as they
|
|
|
|
support functionality beyond XPath.
|
2007-08-08 02:40:25 +00:00
|
|
|
|
|
|
|
%prep
|
2016-01-07 11:40:16 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
2007-08-08 02:40:25 +00:00
|
|
|
|
|
|
|
%build
|
2016-01-07 11:40:16 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2007-08-08 02:40:25 +00:00
|
|
|
|
|
|
|
%check
|
2016-01-07 11:40:16 +00:00
|
|
|
%{__make} test
|
2007-08-08 02:40:25 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2016-01-07 11:40:16 +00:00
|
|
|
%perl_gen_filelist
|
2007-08-08 02:40:25 +00:00
|
|
|
|
2016-01-07 11:40:16 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes examples LICENSE README TODO
|
2007-08-08 02:40:25 +00:00
|
|
|
|
|
|
|
%changelog
|