# # spec file for package perl-XML-Filter-ExceptionLocator # # 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-Filter-ExceptionLocator %define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) Summary: Filter to add line/col numbers to SAX errors Version: 1.00 Release: 1 License: artistic Group: Applications/CPAN Url: http://www.cpan.org Source0: %{cpan_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::More) #BuildRequires: perl(Module::Build) BuildRequires: perl(XML::SAX) BuildRequires: perl(XML::SAX::ExpatXS) >= 1.01 %{perl_requires} Requires: perl(XML::SAX) Requires: perl(XML::SAX::ExpatXS) >= 1.01 Provides: %{cpan_name} %description This module implements a SAX filter which adds line-numbers and column-numbers to errors generated by SAX handlers futher down the pipeline. I wrote this module so that XML::Validator::Schema could blame the correct line of XML for validation failures. NOTE: This module requires a SAX parser which correctly supports the set_document_locator() call. At present there is just one, XML::SAX::ExpatXS. If you`ve got a number of XML::SAX parsers installed and you want to make sure XML::SAX::ExpatXS is used, do this: $XML::SAX::ParserPackage = 'XML::SAX::ExpatXS'; Author: Sam Tregar %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 %defattr(-,root,root) %doc Changes README %changelog