%define pkg_name XML-Validator-Schema %define pkg_version 1.08 %define rpm_pkg_version 1.08 %define rpm_pkg_release 1.n0i.1 Summary: Validate XML with a subset of W3C XML Schema Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/S/SA/SAMTREGAR/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(XML::SAX) >= 0.12 BuildRequires: perl(Tree::DAG_Node) BuildRequires: perl(XML::Filter::BufferText) %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 below. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %if %{!?_without_test:1}0 # choose a SAFE parser or yml tests will fail. export XMLVS_TEST_PARSER='XML::SAX::PurePerl' # XML::Xerces installed? - DON'T! WILL FAIL :( # export XERCES_DOMCOUNT=$(%{__find} %{_docdir}/perl-XML-Xerces-* -name DOMCount.pl ||:) %{__make} test %endif %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc ANNOUNCE Changes README TODO %changelog * Fri Jun 15 2007 Marius Feraru - 1.08-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.9 - version 1.08