Sync from SUSE:SLFO:Main perl-XML-Writer-String revision 3599a4f8c0424bbef8f824e5c7333863

This commit is contained in:
2025-05-28 11:20:30 +02:00
parent 7d91c6b7fe
commit a101d0d988
2 changed files with 34 additions and 44 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 10 21:48:36 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Wed May 23 06:50:54 UTC 2012 - cfarrell@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-XML-Writer-String
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,51 +12,45 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# norootforbuild
%define cpan_name XML-Writer-String
Name: perl-XML-Writer-String
%define real_name XML-Writer-String
Version: 0.100.0
Release: 0
# 0.1 -> normalize -> 0.100.0
%define cpan_version 0.1
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Capture output from XML::Writer
Url: http://search.cpan.org/perldoc?XML::Writer::String
Group: Development/Libraries/Perl
License: Artistic-1.0 or GPL-1.0+
Version: 0.1
Release: 1
Source: %{real_name}-%{version}.tar.gz
Requires: perl-XML-Writer
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/SO/SOLIVER/%{cpan_name}-%{cpan_version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(XML::Writer)
Requires: perl(XML::Writer)
Provides: perl(XML::Writer::String) = %{version}
%undefine __perllib_provides
%{perl_requires}
%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>
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 -n %{real_name}-%{version}
for i in Changes README MANIFEST example/eg*; do
sed -i 's/
//' $i
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
%build
perl Makefile.PL
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
@@ -64,19 +58,9 @@ make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%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
%files -f %{name}.files
%doc Changes example README
%changelog