You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.6 KiB
63 lines
1.6 KiB
Name: perl-XML-Writer
|
|
Version: 0.531
|
|
Release: 2
|
|
Summary: A simple Perl module for writing XML documents.
|
|
|
|
Group: Development/Libraries
|
|
License: GPL or Artistic
|
|
URL: http://search.cpan.org/dist/XML-Writer/
|
|
Source0: http://www.cpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-0.531.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: perl >= 1:5.6.1
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%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
|
|
%setup -q -n XML-Writer-%{version}
|
|
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
find $RPM_BUILD_ROOT -type f -a \( -name .packlist \
|
|
-o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
|
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
|
|
|
%check || :
|
|
make test
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes README TODO
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
%changelog
|
|
* Wed Apr 06 2005 Hunter Matthews <thm@duke.edu> 0.531-1
|
|
- Review suggestions from José Pedro Oliveira
|
|
|
|
* Tue Mar 22 2005 Hunter Matthews <thm@duke.edu> 0.531-1
|
|
- Initial build.
|