forked from pool/perl-Spreadsheet-Read
initial pkg 0.43
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Spreadsheet-Read?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
Spreadsheet-Read-0.43.tar.bz2
Normal file
3
Spreadsheet-Read-0.43.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1a396eaabc2db3e2707b07bd7d14f62140256ed6937ab5c9e18691bf6a4e0d92
|
||||
size 114161
|
||||
6
perl-Spreadsheet-Read.changes
Normal file
6
perl-Spreadsheet-Read.changes
Normal file
@@ -0,0 +1,6 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 1 21:23:03 UTC 2011 - chris@computersalat.de
|
||||
|
||||
- initial package 0.43
|
||||
* created by cpanspec 1.78.05
|
||||
|
||||
114
perl-Spreadsheet-Read.spec
Normal file
114
perl-Spreadsheet-Read.spec
Normal file
@@ -0,0 +1,114 @@
|
||||
#
|
||||
# spec file for package perl-Spreadsheet-Read
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%bcond_with opt
|
||||
|
||||
Name: perl-Spreadsheet-Read
|
||||
Version: 0.43
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
%define cpan_name Spreadsheet-Read
|
||||
Summary: Read the data from a spreadsheet
|
||||
Url: http://search.cpan.org/dist/Spreadsheet-Read/
|
||||
Group: Development/Libraries/Perl
|
||||
#Source: http://www.cpan.org/authors/id/H/HM/HMBRAND/%{cpan_name}-%{version}a.tgz
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Test::Harness)
|
||||
%if 0%{?suse_version} >= 1120
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
%endif
|
||||
BuildRequires: perl(Test::NoWarnings)
|
||||
#
|
||||
BuildRequires: perl(File::Temp)
|
||||
%if %{with opt}
|
||||
BuildRequires: perl(Spreadsheet::ParseExcel) >= 0.26
|
||||
BuildRequires: perl(Spreadsheet::ParseExcel::FmtDefault)
|
||||
BuildRequires: perl(Spreadsheet::ReadSXC) >= 0.2
|
||||
BuildRequires: perl(Text::CSV) >= 1.15
|
||||
BuildRequires: perl(Text::CSV_PP) >= 1.23
|
||||
BuildRequires: perl(Text::CSV_XS) >= 0.69
|
||||
%endif
|
||||
Requires: perl(File::Temp)
|
||||
%{perl_requires}
|
||||
%if 0%{?suse_version} > 1010
|
||||
Recommends: perl(File::Temp) >= 0.22
|
||||
Recommends: perl(IO::Scalar)
|
||||
Recommends: perl(Spreadsheet::ParseExcel) >= 0.26
|
||||
Recommends: perl(Spreadsheet::ParseExcel::FmtDefault)
|
||||
Recommends: perl(Spreadsheet::ReadSXC) >= 0.2
|
||||
Recommends: perl(Text::CSV) >= 1.15
|
||||
Recommends: perl(Text::CSV_PP) >= 1.23
|
||||
Recommends: perl(Text::CSV_XS) >= 0.69
|
||||
%endif
|
||||
|
||||
%description
|
||||
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
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
%if 0%{?suse_version} < 1120 || 0%{?rhel_version} || 0%{?centos_version}
|
||||
%if %{with opt}
|
||||
#for tfile in $(%{__grep} -lr "done_testing" t/*); do
|
||||
for tfile in 20_csv 21_csv 22_csv 23_csv 24_csv 31_clr 32_fmt 33_misc 34_dates 35_perc 40_sxc 45_ods 50_sc 51_sc; do
|
||||
%{__perl} -p -i\
|
||||
-e 's|(use).*(Test::More);|\1 \2 qw(no_plan);|,s|(done_testing.*)|#\1|' t/${tfile}.t
|
||||
done
|
||||
%else
|
||||
for tfile in 50_sc 51_sc; do
|
||||
%{__perl} -p -i\
|
||||
-e 's|(use).*(Test::More);|\1 \2 qw(no_plan);|,s|(done_testing.*)|#\1|' t/${tfile}.t
|
||||
done
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes examples README
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user