File perl-XML-SAX.spec of Package perl-XML-SAX

# spec file for package perl-XML-SAX
# Copyright (c) 2013 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

Name:           perl-XML-SAX
Version:        0.99
Release:        0
Summary:        XML::SAX Perl Module
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Patch0:         perl-XML-SAX-0.96-utf8.diff
BuildRequires:  perl-XML-NamespaceSupport
BuildRequires:  perl-macros
BuildRequires:  perl(XML::SAX::Base)
BuildRequires:  pkgconfig(libxml-2.0)
Requires:       perl-XML-NamespaceSupport
Requires:       perl(XML::SAX::Base)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

XML::SAX consists of several framework classes for using and building
Perl SAX2 XML parsers, filters, and drivers. It is designed around the
need to be able to "plug in" different SAX parsers to an application
without requiring programmer intervention. Those of you familiar with
the DBI will be right at home. Some of the designs come from the Java
JAXP specification (SAX part), only without the javaness.

%setup -q -n XML-SAX-%{version}

perl Makefile.PL
make %{?_smp_mflags}

make test

make DESTDIR=%{buildroot} install_vendor
cat << EOF > %{buildroot}/%{perl_vendorlib}/XML/SAX/ParserDetails.ini
[XML::SAX::PurePerl] = 1

rm -rf %{buildroot}

%doc %{_mandir}/man3/*
%config(noreplace) %{perl_vendorlib}/XML/SAX/ParserDetails.ini

openSUSE Build Service is sponsored by