# vim: set sw=4 ts=4 et nu: # norootforbuild Name: perl-XML-Quick Version: 0.04 Release: 0 Summary: Generate XML from hashes (and other data) Source: http://search.cpan.org/CPAN/authors/id/R/RO/ROBN/XML-Quick-%{version}.tar.gz URL: http://search.cpan.org/dist/XML-Quick/ Group: Development/Libraries/Perl License: Perl License BuildRoot: %{_tmppath}/build-%{name}-%{version} Requires: perl = %{perl_version} BuildRequires: make perl BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(Test::More) BuildRequires: perl(Test::XML) BuildRequires: perl(Module::Build) BuildRequires: perl(Scalar::Util) Requires: perl(Scalar::Util) %description This module generates XML from Perl data (typically a hash). It tries hard to produce something sane no matter what you pass it. It probably fails. When you use this module, it will export the xml function into your namespace. This function does everything. %prep %setup -q -n "XML-Quick-%{version}" %build %__perl ./Build.PL ./Build %install ./Build pure_install --destdir "%{buildroot}" --installdirs vendor %perl_process_packlist %check ./Build test %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files %defattr(-,root,root) %doc Changes README %dir %{perl_vendorlib}/XML %{perl_vendorlib}/XML/Quick.pm %dir %{perl_vendorarch}/auto/XML %{perl_vendorarch}/auto/XML/Quick %doc %{perl_man3dir}/XML::Quick.%{perl_man3ext}%{ext_man}