From 09d9bcb8b14180b2e17de0c24845a175fd8c9e63 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Mon, 11 Apr 2005 22:46:26 +0000 Subject: [PATCH] auto-import perl-XML-Writer-0.531-2 on branch devel from perl-XML-Writer-0.531-2.src.rpm --- .cvsignore | 1 + perl-XML-Writer.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 64 insertions(+) create mode 100644 perl-XML-Writer.spec diff --git a/.cvsignore b/.cvsignore index e69de29..26cffd8 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +XML-Writer-0.531.tar.gz diff --git a/perl-XML-Writer.spec b/perl-XML-Writer.spec new file mode 100644 index 0000000..3b703ec --- /dev/null +++ b/perl-XML-Writer.spec @@ -0,0 +1,62 @@ +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 0.531-1 +- Review suggestions from José Pedro Oliveira + +* Tue Mar 22 2005 Hunter Matthews 0.531-1 +- Initial build. diff --git a/sources b/sources index e69de29..5adbb05 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c6d89330cdc6c0378a764369a0e9543a XML-Writer-0.531.tar.gz