107 lines
4.1 KiB
RPMSpec
107 lines
4.1 KiB
RPMSpec
#
|
|
# spec file for package perl-Excel-Template
|
|
#
|
|
# 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 Excel-Template
|
|
Name: perl-Excel-Template
|
|
Version: 0.340.0
|
|
Release: 0
|
|
# 0.34 -> normalize -> 0.340.0
|
|
%define cpan_version 0.34
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Excel::Template
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RB/RBO/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
BuildRequires: perl(IO::Scalar)
|
|
BuildRequires: perl(Spreadsheet::WriteExcel) >= 0.42
|
|
BuildRequires: perl(Spreadsheet::WriteExcel::Utility)
|
|
BuildRequires: perl(Test::Deep) >= 0.095
|
|
BuildRequires: perl(Test::Exception) >= 0.21
|
|
BuildRequires: perl(XML::Parser)
|
|
Requires: perl(IO::Scalar)
|
|
Requires: perl(Spreadsheet::WriteExcel) >= 0.42
|
|
Requires: perl(Spreadsheet::WriteExcel::Utility)
|
|
Requires: perl(XML::Parser)
|
|
Provides: perl(Excel::Template) = %{version}
|
|
Provides: perl(Excel::Template::Base)
|
|
Provides: perl(Excel::Template::Container)
|
|
Provides: perl(Excel::Template::Container::Bold)
|
|
Provides: perl(Excel::Template::Container::Conditional)
|
|
Provides: perl(Excel::Template::Container::Format)
|
|
Provides: perl(Excel::Template::Container::Hidden)
|
|
Provides: perl(Excel::Template::Container::Italic)
|
|
Provides: perl(Excel::Template::Container::KeepLeadingZeros)
|
|
Provides: perl(Excel::Template::Container::Locked)
|
|
Provides: perl(Excel::Template::Container::Loop)
|
|
Provides: perl(Excel::Template::Container::Outline)
|
|
Provides: perl(Excel::Template::Container::Row)
|
|
Provides: perl(Excel::Template::Container::Scope)
|
|
Provides: perl(Excel::Template::Container::Shadow)
|
|
Provides: perl(Excel::Template::Container::Strikeout)
|
|
Provides: perl(Excel::Template::Container::Workbook)
|
|
Provides: perl(Excel::Template::Container::Worksheet)
|
|
Provides: perl(Excel::Template::Context)
|
|
Provides: perl(Excel::Template::Element)
|
|
Provides: perl(Excel::Template::Element::Backref)
|
|
Provides: perl(Excel::Template::Element::Cell)
|
|
Provides: perl(Excel::Template::Element::Formula)
|
|
Provides: perl(Excel::Template::Element::FreezePanes)
|
|
Provides: perl(Excel::Template::Element::Image)
|
|
Provides: perl(Excel::Template::Element::MergeRange)
|
|
Provides: perl(Excel::Template::Element::Range)
|
|
Provides: perl(Excel::Template::Element::Var)
|
|
Provides: perl(Excel::Template::Factory)
|
|
Provides: perl(Excel::Template::Format)
|
|
Provides: perl(Excel::Template::Iterator)
|
|
Provides: perl(Excel::Template::TextObject)
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This is a module used for templating Excel files. Its genesis came from the
|
|
need to use the same datastructure as HTML::Template, but provide Excel
|
|
files instead. The existing modules don't do the trick, as they require
|
|
replication of logic that's already been done within HTML::Template.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
PERL_USE_UNSAFE_INC=1 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 README
|
|
%license LICENSE
|
|
|
|
%changelog
|