%define module SGML-Parser-OpenSP %define name perl-%{module} %define version 0.991 Name: %{name} Version: %{version} Release: %mkrel 1 Summary: Parse SGML documents using OpenSP License: GPL or Artistic Group: Development/Perl URL: http://search.cpan.org/dist/%{module} Source: http://www.cpan.org/modules/by-module/XML/%{module}-%{version}.tar.gz BuildRequires: perl-devel BuildRequires: OpenSP-devel # the follwings are required for test BuildRequires: perl-Test-Exception BuildRequires: perl-Class-Accessor BuildRoot: %{_tmppath}/%{name}-%{version} %description This module provides an interface to the OpenSP SGML parser. OpenSP and this module are event based. As the parser recognizes parts of the document (say the start or end of an element), then any handlers registered for that type of an event are called with suitable parameters. %prep %setup -q -n %{module}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor %make OPTIMIZE="%{optflags}" %check make test %clean rm -rf %{buildroot} %install rm -rf %{buildroot} %makeinstall_std %files %defattr(-,root,root) %doc README Changes samples %{_mandir}/*/* %{perl_vendorarch}/SGML/Parser* %{perl_vendorarch}/auto/SGML/Parser* %changelog * Wed Aug 6 2008 Kazuhiko Shiozaki 0.991-1nxd2008.1 - initial package for Mandriva