forked from pool/perl-XML-Writer-String
initial version 0.1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Writer-String?expand=0&rev=1
This commit is contained in:
69
perl-XML-Writer-String.spec
Normal file
69
perl-XML-Writer-String.spec
Normal file
@@ -0,0 +1,69 @@
|
||||
#
|
||||
# spec file for package perl-XML-Writer-String
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: perl-XML-Writer-String
|
||||
%define real_name XML-Writer-String
|
||||
Summary: Capture output from XML::Writer
|
||||
Url: http://search.cpan.org/perldoc?XML::Writer::String
|
||||
Group: Development/Libraries/Perl
|
||||
License: Artistic License
|
||||
Version: 0.1
|
||||
Release: 1
|
||||
Vendor: openSUSE-Education
|
||||
Source: %{real_name}-%{version}.tar.bz2
|
||||
Requires: perl-XML-Writer
|
||||
Requires: perl = %{perl_version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%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.
|
||||
|
||||
Author:
|
||||
-------
|
||||
Simon Oliver <simon.oliver@umist.ac.uk>
|
||||
|
||||
|
||||
%prep
|
||||
%setup -n %{real_name}-%{version}
|
||||
for i in Changes README MANIFEST example/eg*; do
|
||||
sed -i 's/
|
||||
//' $i
|
||||
done
|
||||
|
||||
%build
|
||||
perl Makefile.PL
|
||||
make %{?jobs:-j%jobs}
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc Changes README MANIFEST example
|
||||
%doc %{_mandir}/man?/*
|
||||
%dir %{perl_vendorarch}/auto/XML
|
||||
%dir %{perl_vendorarch}/auto/XML/Writer
|
||||
%dir %{perl_vendorarch}/auto/XML/Writer/String
|
||||
%dir %{perl_vendorlib}/XML
|
||||
%dir %{perl_vendorlib}/XML/Writer
|
||||
%{perl_vendorarch}/auto/XML/Writer/String/.packlist
|
||||
%{perl_vendorlib}/XML/Writer/*.pm
|
||||
/var/adm/perl-modules/%{name}
|
||||
|
||||
Reference in New Issue
Block a user