Files
perl-Spreadsheet-WriteExcel…/perl-Spreadsheet-WriteExcel-FromXML.spec
2025-08-12 18:17:11 +02:00

75 lines
2.4 KiB
RPMSpec

#
# spec file for package perl-Spreadsheet-WriteExcel-FromXML
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Spreadsheet-WriteExcel-FromXML
Name: perl-Spreadsheet-WriteExcel-FromXML
Version: 1.100.0
Release: 0
# 1.1 -> normalize -> 1.100.0
%define cpan_version 1.1
License: CHECK(Artistic-1.0 or GPL-1.0-or-later)
Summary: Create Excel Spreadsheet from XML
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BW/BWMCADAMS/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(OLE::Storage_Lite) >= 0.11
BuildRequires: perl(Spreadsheet::WriteExcel) >= 0.41
BuildRequires: perl(XML::Parser) >= 2.31
Requires: perl(OLE::Storage_Lite) >= 0.11
Requires: perl(Spreadsheet::WriteExcel) >= 0.41
Requires: perl(XML::Parser) >= 2.31
Provides: perl(Spreadsheet::WriteExcel::FromXML) = %{version}
Provides: perl(Spreadsheet::WriteExcel::FromXML::Workbook) = %{version}
Provides: perl(Spreadsheet::WriteExcel::FromXML::Worksheet) = %{version}
%undefine __perllib_provides
%{perl_requires}
# MANUAL BEGIN
BuildRequires: perl(IO::Scalar)
Requires: perl(IO::Scalar)
# MANUAL END
%description
This module uses Spreadsheet::WriteExcel to turn a simple XML data file
into a binary Excel XLS file.
See also the FromXML.dtd file in the distribution.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes FromXML.dtd README
%changelog