Compare commits

1 Commits
1.1 ... main

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 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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 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 Summary: Capture output from XML::Writer
Url: http://search.cpan.org/perldoc?XML::Writer::String URL: https://metacpan.org/release/%{cpan_name}
Group: Development/Libraries/Perl Source0: https://cpan.metacpan.org/authors/id/S/SO/SOLIVER/%{cpan_name}-%{cpan_version}.tar.gz
License: Artistic-1.0 or GPL-1.0+ BuildArch: noarch
Version: 0.1
Release: 1
Source: %{real_name}-%{version}.tar.gz
Requires: perl-XML-Writer
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(XML::Writer)
Requires: perl(XML::Writer)
Provides: perl(XML::Writer::String) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description %description
This module implements a bare-bones class specifically for the purpose of 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 capturing data from the XML::Writer module. XML::Writer expects an
object and writes XML data to the specified object (or STDOUT) via it's print() IO::Handle object and writes XML data to the specified object (or STDOUT)
method. This module simulates such an object for the specific purpose of via it's print() method. This module simulates such an object for the
providing the required print() method. 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>
It is recommended that $writer->end() is called prior to calling
$s->value() to check for well-formedness.
%prep %prep
%setup -n %{real_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version} -p1
for i in Changes README MANIFEST example/eg*; do
sed -i 's/
//' $i
%build %build
%build perl Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL %make_build
%check %check
make test make test
@@ -64,19 +58,9 @@ make test
%install %install
%perl_make_install %perl_make_install
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%clean %doc Changes example README
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
%changelog %changelog