%define pkg_name XML-Xerces %define pkg_version 2.7.0 %define rpm_pkg_version 2.7.0 %define rpm_pkg_release 2.n0i.2 Summary: Perl API to Apache Xerces XML Parser 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/J/JA/JASONS/%{pkg_name}-%{pkg_version}-0.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: xerces-c-devel >= %{pkg_version} %description XML::Xerces is the Perl API to the Apache project's Xerces XML parser. It is implemented using the Xerces C++ API, and it provides access to most of the C++ API from Perl. Because it is based on Xerces-C, XML::Xerces provides a validating XML parser that makes it easy to give your application the ability to read and write XML data. A shared library is provided for parsing, generating, manipulating, and validating XML documents. XML::Xerces is faithful to the XML 1.0 recommendation and associated standards (DOM 1.0, DOM 2.0. SAX 1.0, SAX 2.0, Namespaces, and Schema). The parser provides high performance, modularity, and scalability. It also provides full support for Unicode. %prep %setup -q -n %{pkg_name}-%{pkg_version}-0 %{fix_mod} %{fix_perl_path samples/} %build export XERCESCROOT=%{_prefix} %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_vendorarch}/* %exclude %dir %{perl_vendorarch}/auto %exclude %{perl_vendorarch}/auto/Handler %doc Changes FAQ LICENSE README docs/ samples/ %changelog * Tue May 22 2007 Marius Feraru - 2.7.0-2.n0i.2 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 * Sat Apr 15 2006 Marius Feraru 2.7.0-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer v1.12.1 - version 2.7.0