Files
perl-XML-Validator-Schema/perl-XML-Validator-Schema.spec
2025-08-12 18:18:41 +02:00

101 lines
3.1 KiB
RPMSpec

#
# spec file for package perl-XML-Validator-Schema
#
# Copyright (c) 2011 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
%bcond_with opt
Name: perl-XML-Validator-Schema
%define cpan_name XML-Validator-Schema
Summary: Validate XML against a subset of W3C XML Schema
Version: 1.10
Release: 1
License: CHECK(GPL+ or Artistic)
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/XML-Validator-Schema/
#Source: http://www.cpan.org/modules/by-module/XML/XML-Validator-Schema-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
%if %{with opt}
BuildRequires: perl(XML::SAX::ExpatXS) >= 1.00
BuildRequires: perl(XML::SAX::Writer)
%endif
BuildRequires: perl(Carp)
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Tree::DAG_Node)
BuildRequires: perl(XML::Filter::BufferText)
BuildRequires: perl(XML::SAX) >= 0.12
%if %{with opt}
BuildRequires: perl(XML::SAX::Writer)
%endif
#
Requires: perl(Carp)
Requires: perl(Tree::DAG_Node)
Requires: perl(XML::Filter::BufferText)
Requires: perl(XML::SAX) >= 0.12
Recommends: perl(XML::Filter::ExceptionLocator)
Recommends: perl(XML::SAX::ExpatXS) >= 1.00
%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!
Authors:
--------
Sam Tregar <sam@tregar.com>
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc ANNOUNCE Changes README TODO
%changelog