Files
perl-XML-Validator-Schema/perl-XML-Validator-Schema.spec

93 lines
3.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-XML-Validator-Schema
#
# 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
#Distribution: %dist
#Packager: %packager
#Vendor: %vendor
Name: perl-XML-Validator-Schema
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Validate XML against a subset of W3C XML Schema
Version: 1.10
Release: 1
License: Artistic License
Group: Development/Libraries/Perl
Url: http://www.cpan.org
Source0: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
#BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Tree::DAG_Node)
BuildRequires: perl(XML::SAX) >= 0.12
BuildRequires: perl(XML::SAX::Writer) >= 0.44
BuildRequires: perl(XML::SAX::ExpatXS) >= 1.00
BuildRequires: perl(Carp)
BuildRequires: perl(XML::Filter::BufferText)
BuildRequires: perl(XML::Filter::ExceptionLocator)
Requires: perl = %{perl_version}
Requires: perl(Carp)
Requires: perl(Tree::DAG_Node)
Requires: perl(XML::Filter::BufferText)
Requires: perl(XML::SAX) >= 0.12
Requires: perl(XML::SAX::Writer) >= 0.44
Requires: perl(XML::SAX::ExpatXS) >= 1.00
Requires: perl(XML::Filter::BufferText)
Requires: perl(XML::Filter::ExceptionLocator)
%description
This module allows you to validate XML documents against a W3C XML
Schema. This module does not implement the full W3C XML Schema
recommendation (http://www.w3.org/XML/Schema), but a useful subset. See
the SCHEMA SUPPORT section in the module documention.
IMPORTANT NOTE: To get line and column numbers in the error
messages generated by this module you must install
XML::Filter::ExceptionLocator and use XML::SAX::ExpatXS as your
SAX parser. This module is much more useful if you can tell where
your errors are, so using these modules is highly recommeded!
Author: Sam Tregar <sam@tregar.com>
%prep
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
# normally you only need to check for doc files
%defattr(-,root,root)
%doc ANNOUNCE Changes README TODO
%changelog