%define modname XML-Writer Summary: Module for writing XML documents Name: perl-%{modname} Version: 0.900 Release: 2 License: GPLv2+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{modname} Source0: http://www.cpan.org/modules/by-module/XML/%{modname}-%{version}.tar.gz BuildArch: noarch BuildRequires: perl(Test::More) BuildRequires: perl-devel BuildRequires: perl(XML::Parser) %description XML::Writer is a simple Perl module for writing XML documents: it takes care of constructing markup and escaping data correctly, and by default, it also performs a significant amount of well-formedness checking on the output, to make certain (for example) that start and end tags match, that there is exactly one document element, and that there are not duplicate attribute names. %prep %autosetup -p1 -n %{modname}-%{version} perl Makefile.PL INSTALLDIRS=vendor %build %make_build %check %make test %install %make_install %files %doc README Changes %{perl_vendorlib}/XML/Writer* %{_mandir}/man3/*