2011-09-01 21:23:33 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Spreadsheet-Read
|
|
|
|
#
|
2025-04-14 20:41:44 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2011-09-01 21:23:33 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-01-02 15:07:15 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-01 21:23:33 +00:00
|
|
|
#
|
|
|
|
|
2011-09-02 08:12:06 +00:00
|
|
|
|
2021-03-03 13:02:13 +00:00
|
|
|
%define cpan_name Spreadsheet-Read
|
2011-09-01 21:23:33 +00:00
|
|
|
Name: perl-Spreadsheet-Read
|
2025-04-14 20:41:44 +00:00
|
|
|
Version: 0.930.0
|
2012-02-17 11:29:04 +00:00
|
|
|
Release: 0
|
2025-04-14 20:41:44 +00:00
|
|
|
# 0.93 -> normalize -> 0.930.0
|
|
|
|
%define cpan_version 0.93
|
2018-09-20 07:52:48 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2023-03-10 10:45:41 +00:00
|
|
|
Summary: Meta-Wrapper for reading spreadsheet data
|
2020-10-01 20:28:15 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-11-16 16:38:12 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/%{cpan_name}-%{cpan_version}.tgz
|
- updated to 0.74
see /usr/share/doc/packages/perl-Spreadsheet-Read/Changes
0.74 - 27 Aug 2017, H.Merijn Brand
* Re-enable opening files with bad characters in the filename (issue#14)
0.73 - 30 Jul 2017, H.Merijn Brand
* Spreadsheet::XLSX::Reader::LibXML support completely dropped
* New options for ss2tk (font specs and SS labels)
* Safer xls2csv option parsing/passing
* Pass unknown command-line options to the parser
* Fix ReadData ("a,b,c
1,2,3
", parser => "csv")
* Drop 5.8.0 support. 5.8.1 is now minimum
0.72 - 25 May 2017, H.Merijn Brand
* get_active_sheet is only available as of Spreadsheet::ParseExcel 0.61
* Support password protected spreadsheets (implementation just for Excel)
* Do not warn on undefined labels (xlscat)
0.71 - 13 May 2017, H.Merijn Brand
* Use -w as intended
* Add option pivot
* No trailing spaces on xlscat -L
* Lexicalize code snippet (issue#12)
* Add attr method
* Remove special chars from worksheet name component (Windows, PR#13)
* Add refresh to ss2tk / csv2tk
* Add shortcut for UTF-8 output to xlscat
* Upgrade recommended modules to required for cpancover
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Spreadsheet-Read?expand=0&rev=12
2017-10-08 08:31:10 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:17:10 +02:00
|
|
|
Source100: README.md
|
2022-02-01 15:41:12 +00:00
|
|
|
BuildArch: noarch
|
2011-09-01 21:23:33 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
- updated to 0.74
see /usr/share/doc/packages/perl-Spreadsheet-Read/Changes
0.74 - 27 Aug 2017, H.Merijn Brand
* Re-enable opening files with bad characters in the filename (issue#14)
0.73 - 30 Jul 2017, H.Merijn Brand
* Spreadsheet::XLSX::Reader::LibXML support completely dropped
* New options for ss2tk (font specs and SS labels)
* Safer xls2csv option parsing/passing
* Pass unknown command-line options to the parser
* Fix ReadData ("a,b,c
1,2,3
", parser => "csv")
* Drop 5.8.0 support. 5.8.1 is now minimum
0.72 - 25 May 2017, H.Merijn Brand
* get_active_sheet is only available as of Spreadsheet::ParseExcel 0.61
* Support password protected spreadsheets (implementation just for Excel)
* Do not warn on undefined labels (xlscat)
0.71 - 13 May 2017, H.Merijn Brand
* Use -w as intended
* Add option pivot
* No trailing spaces on xlscat -L
* Lexicalize code snippet (issue#12)
* Add attr method
* Remove special chars from worksheet name component (Windows, PR#13)
* Add refresh to ss2tk / csv2tk
* Add shortcut for UTF-8 output to xlscat
* Upgrade recommended modules to required for cpancover
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Spreadsheet-Read?expand=0&rev=12
2017-10-08 08:31:10 +00:00
|
|
|
BuildRequires: perl(Data::Peek)
|
|
|
|
BuildRequires: perl(File::Temp) >= 0.22
|
|
|
|
BuildRequires: perl(IO::Scalar)
|
2011-09-01 21:23:33 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
BuildRequires: perl(Test::NoWarnings)
|
- updated to 0.74
see /usr/share/doc/packages/perl-Spreadsheet-Read/Changes
0.74 - 27 Aug 2017, H.Merijn Brand
* Re-enable opening files with bad characters in the filename (issue#14)
0.73 - 30 Jul 2017, H.Merijn Brand
* Spreadsheet::XLSX::Reader::LibXML support completely dropped
* New options for ss2tk (font specs and SS labels)
* Safer xls2csv option parsing/passing
* Pass unknown command-line options to the parser
* Fix ReadData ("a,b,c
1,2,3
", parser => "csv")
* Drop 5.8.0 support. 5.8.1 is now minimum
0.72 - 25 May 2017, H.Merijn Brand
* get_active_sheet is only available as of Spreadsheet::ParseExcel 0.61
* Support password protected spreadsheets (implementation just for Excel)
* Do not warn on undefined labels (xlscat)
0.71 - 13 May 2017, H.Merijn Brand
* Use -w as intended
* Add option pivot
* No trailing spaces on xlscat -L
* Lexicalize code snippet (issue#12)
* Add attr method
* Remove special chars from worksheet name component (Windows, PR#13)
* Add refresh to ss2tk / csv2tk
* Add shortcut for UTF-8 output to xlscat
* Upgrade recommended modules to required for cpancover
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Spreadsheet-Read?expand=0&rev=12
2017-10-08 08:31:10 +00:00
|
|
|
Requires: perl(Data::Peek)
|
|
|
|
Requires: perl(File::Temp) >= 0.22
|
|
|
|
Requires: perl(IO::Scalar)
|
|
|
|
Requires: perl(Test::More) >= 0.88
|
|
|
|
Requires: perl(Test::NoWarnings)
|
2024-01-04 15:16:51 +00:00
|
|
|
Provides: perl(Spreadsheet::Read) = %{version}
|
2024-03-08 23:04:29 +00:00
|
|
|
%undefine __perllib_provides
|
2024-01-04 15:16:51 +00:00
|
|
|
Recommends: perl(Data::Dumper) >= 2.183
|
2025-04-14 20:41:44 +00:00
|
|
|
Recommends: perl(Data::Peek) >= 0.530
|
2024-12-31 00:17:09 +00:00
|
|
|
Recommends: perl(Encode) >= 3.21
|
2021-01-21 07:37:12 +00:00
|
|
|
Recommends: perl(File::Temp) >= 0.2311
|
- updated to 0.74
see /usr/share/doc/packages/perl-Spreadsheet-Read/Changes
0.74 - 27 Aug 2017, H.Merijn Brand
* Re-enable opening files with bad characters in the filename (issue#14)
0.73 - 30 Jul 2017, H.Merijn Brand
* Spreadsheet::XLSX::Reader::LibXML support completely dropped
* New options for ss2tk (font specs and SS labels)
* Safer xls2csv option parsing/passing
* Pass unknown command-line options to the parser
* Fix ReadData ("a,b,c
1,2,3
", parser => "csv")
* Drop 5.8.0 support. 5.8.1 is now minimum
0.72 - 25 May 2017, H.Merijn Brand
* get_active_sheet is only available as of Spreadsheet::ParseExcel 0.61
* Support password protected spreadsheets (implementation just for Excel)
* Do not warn on undefined labels (xlscat)
0.71 - 13 May 2017, H.Merijn Brand
* Use -w as intended
* Add option pivot
* No trailing spaces on xlscat -L
* Lexicalize code snippet (issue#12)
* Add attr method
* Remove special chars from worksheet name component (Windows, PR#13)
* Add refresh to ss2tk / csv2tk
* Add shortcut for UTF-8 output to xlscat
* Upgrade recommended modules to required for cpancover
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Spreadsheet-Read?expand=0&rev=12
2017-10-08 08:31:10 +00:00
|
|
|
Recommends: perl(IO::Scalar)
|
2011-09-01 21:23:33 +00:00
|
|
|
%{perl_requires}
|
2019-08-30 12:21:28 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
BuildRequires: perl(Spreadsheet::ParseExcel) >= 0.34
|
|
|
|
BuildRequires: perl(Spreadsheet::ParseExcel::FmtDefault)
|
|
|
|
BuildRequires: perl(Spreadsheet::ParseXLSX) >= 0.24
|
|
|
|
BuildRequires: perl(Text::CSV_XS) >= 0.71
|
|
|
|
Recommends: perl(Spreadsheet::ReadSXC) >= 0.20
|
2022-02-01 15:41:12 +00:00
|
|
|
Suggests: perl-Spreadsheet-Read-scripts = %{version}
|
2019-08-30 12:21:28 +00:00
|
|
|
# MANUAL END
|
2011-09-01 21:23:33 +00:00
|
|
|
|
|
|
|
%description
|
2018-01-22 20:51:49 +00:00
|
|
|
Spreadsheet::Read tries to transparently read *any* spreadsheet and return
|
|
|
|
its content in a universal manner independent of the parsing module that
|
|
|
|
does the actual spreadsheet scanning.
|
|
|
|
|
|
|
|
For OpenOffice this module uses Spreadsheet::ReadSXC
|
|
|
|
|
|
|
|
For Microsoft Excel this module uses Spreadsheet::ParseExcel or
|
|
|
|
Spreadsheet::XLSX
|
|
|
|
|
|
|
|
For CSV this module uses Text::CSV_XS (0.29 or up required, 0.73 or up
|
|
|
|
preferred) or Text::CSV_PP (1.05 or up required).
|
|
|
|
|
|
|
|
For SquirrelCalc there is a very simplistic built-in parser
|
2011-09-01 21:23:33 +00:00
|
|
|
|
|
|
|
%prep
|
2025-04-14 20:41:44 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2023-03-10 10:45:41 +00:00
|
|
|
|
2023-11-16 16:38:12 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2011-09-01 21:23:33 +00:00
|
|
|
|
|
|
|
%build
|
2019-08-30 12:21:28 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-12-28 13:16:47 +00:00
|
|
|
%make_build
|
2011-09-01 21:23:33 +00:00
|
|
|
|
|
|
|
%check
|
2022-02-01 15:41:12 +00:00
|
|
|
make test
|
2011-09-01 21:23:33 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2022-02-01 15:41:12 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
# Remove xls2csv and xls2csv.1 (conflict with libxls-tools and xls2csv packages)
|
|
|
|
rm -f %{buildroot}%{_bindir}/xls2csv
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/xls2csv.1
|
|
|
|
# MANUAL END
|
2011-09-01 21:23:33 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2025-04-14 20:41:44 +00:00
|
|
|
%doc Changes CONTRIBUTING.md examples README SECURITY.md
|
2021-12-28 13:16:47 +00:00
|
|
|
%exclude %{_bindir}/*
|
|
|
|
%exclude %{_mandir}/*
|
|
|
|
|
2022-02-01 15:41:12 +00:00
|
|
|
%package scripts
|
|
|
|
Summary: Scripts to Work with Spreadsheets
|
|
|
|
Requires: perl(HTML::Entities)
|
|
|
|
Requires: perl(Spreadsheet::Read) = %{version}
|
|
|
|
Requires: perl(Term::ReadKey)
|
|
|
|
Requires: perl(Text::CSV_XS)
|
|
|
|
Requires: perl(Tk)
|
|
|
|
Requires: perl(Tk::TableMatrix::Spreadsheet)
|
|
|
|
# Conflict with ssdiff
|
|
|
|
Conflicts: gnumeric
|
|
|
|
|
|
|
|
%description scripts
|
|
|
|
This package includes some scripts to work with spreadsheets.
|
|
|
|
|
2021-12-28 13:16:47 +00:00
|
|
|
%files scripts
|
|
|
|
%{_bindir}/ss2tk
|
|
|
|
%{_bindir}/ssdiff
|
|
|
|
%{_bindir}/xlscat
|
|
|
|
%{_bindir}/xlsgrep
|
|
|
|
%{_bindir}/xlsx2csv
|
|
|
|
%{_mandir}/man1/xlsx2csv.1%{?ext_man}
|
2011-09-01 21:23:33 +00:00
|
|
|
|
|
|
|
%changelog
|