70 lines
2.4 KiB
RPMSpec
70 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package perl-Spreadsheet-DataToExcel
|
|
#
|
|
# 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-DataToExcel
|
|
Name: perl-Spreadsheet-DataToExcel
|
|
Version: 0.10.400
|
|
Release: 0
|
|
# 0.0104 -> normalize -> 0.10.400
|
|
%define cpan_version 0.0104
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Simple method to generate Excel files from 2D arrayrefs
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/Z/ZO/ZOFFIX/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Class::Data::Accessor) >= 0.40.40
|
|
BuildRequires: perl(Module::Build)
|
|
BuildRequires: perl(Spreadsheet::WriteExcel) >= 2.25
|
|
Requires: perl(Class::Data::Accessor) >= 0.40.40
|
|
Requires: perl(Spreadsheet::WriteExcel) >= 2.25
|
|
Provides: perl(Spreadsheet::DataToExcel) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Spreadsheet::WriteExcel is a marvelous module; however, I would always find
|
|
myself digging through the huge doc, not something I enjoy when all I ever
|
|
want to do is simply dump my rows/columns centering first row as well as
|
|
setting the sizes of columns to just be large enough to fit all the data.
|
|
This is where 'Spreadsheet::DataToExcel' comes in.
|
|
|
|
If you're looking for any more functionality than
|
|
'Spreadsheet::DataToExcel' offers, please see Spreadsheet::WriteExcel.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
perl Build.PL --installdirs=vendor
|
|
./Build build --flags=%{?_smp_mflags}
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%install
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes examples README
|
|
|
|
%changelog
|