8
0
Files
perl-XML-Parser/perl-XML-Parser.spec
OBS User autobuild cd9bfa9758 Accepting request 19031 from devel:languages:perl
Copy from devel:languages:perl/perl-XML-Parser based on submit request 19031 from user coolo

OBS-URL: https://build.opensuse.org/request/show/19031
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-XML-Parser?expand=0&rev=8
2009-08-28 15:53:28 +00:00

90 lines
3.0 KiB
RPMSpec

#
# spec file for package perl-XML-Parser (Version 2.36)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: perl-XML-Parser
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: A perl module for parsing XML documents
Version: 2.36
Release: 61
License: Artistic License .. ; GPL v2 or later
Group: Development/Libraries/Perl
AutoReqProv: on
Url: http://cpan.org/dist/XML-Parser
Source: %{cpan_name}-%{version}.tar.bz2
Patch: %{cpan_name}-%{version}.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: libexpat-devel
Requires: perl = %{perl_version}
Provides: p_xmlpar
Obsoletes: p_xmlpar
%description
This module provides ways to parse XML documents. It is built on top of
XML::Parser::Expat, which is a lower level interface to James Clark's expat
library. Each call to one of the parsing methods creates a new instance of
XML::Parser::Expat which is then used to parse the document. Expat options may
be provided when the XML::Parser object is created. These options are then
passed on to the Expat object on each parse call. They can also be given as
extra arguments to the parse methods, in which case they override options
given at XML::Parser creation time.
The behavior of the parser is controlled either by "Style" and/or "Handlers"
options, or by "setHandlers" method. These all provide mechanisms for
XML::Parser to set the handlers needed by XML::Parser::Expat. If neither
Style nor Handlers are specified, then parsing just checks the document
for being well-formed.
When underlying handlers get called, they receive as their first parameter
the Expat object, not the Parser object.
You will find examples in
/usr/share/doc/packages/perl-XML-Parser/samples. For documentation
read the XML::Parser and XML::Parser::Expat man pages.
Authors:
Larry Wall <larry@wall.org>
Clark Cooper <coopercc@netheaven.com>
%prep
%setup -n XML-Parser-%{version} -q
%patch
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(0644,root,root,0755)
%doc Changes README samples
%changelog