SPECS: perl-XML-Writer-String.spec (NEW) - new
glen
glen at pld-linux.org
Fri Apr 7 01:13:18 CEST 2006
Author: glen Date: Thu Apr 6 23:13:18 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
perl-XML-Writer-String.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-XML-Writer-String.spec
diff -u /dev/null SPECS/perl-XML-Writer-String.spec:1.1
--- /dev/null Fri Apr 7 01:13:18 2006
+++ SPECS/perl-XML-Writer-String.spec Fri Apr 7 01:13:13 2006
@@ -0,0 +1,67 @@
+# $Revision$, $Date$
+%include /usr/lib/rpm/macros.perl
+%define pdir XML
+%define pnam Writer-String
+Summary: XML::Writer::String - Capture output from XML::Writer
+Name: perl-XML-Writer-String
+Version: 0.1
+Release: 0.1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/S/SO/SOLIVER/XML-Writer-String-%{version}.tar.gz
+# Source0-md5: 528b3ac5ec9d161fd28ff2ddfe65d3b9
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module implements a bare-bones class specifically for the purpose
+of capturing data from the XML::Writer module. XML::Writer expects an
+IO::Handle object and writes XML data to the specified object (or
+STDOUT) via it's print() method. This module simulates such an object
+for the specific purpose of providing the required print() method.
+
+It is recommended that $writer->end() is called prior to calling
+$s->value() to check for well-formedness.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%dir %{perl_vendorlib}/XML/Writer
+%{perl_vendorlib}/XML/Writer/*.pm
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/04/06 23:13:13 glen
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list