2010-08-25 10:44:38 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: perl-XML-Quick
|
2010-08-31 23:27:07 +00:00
|
|
|
Version: 0.05
|
2010-08-25 10:44:38 +00:00
|
|
|
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}
|
|
|
|
|