2011-04-21 14:12:39 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package xls2csv
|
|
|
|
|
#
|
2014-09-08 19:03:44 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-04-21 14:12:39 +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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
2011-06-01 09:14:26 +00:00
|
|
|
|
|
|
|
|
|
2011-04-21 14:12:39 +00:00
|
|
|
Name: xls2csv
|
2014-09-08 19:03:44 +00:00
|
|
|
Version: 1.07
|
2013-02-28 08:51:01 +00:00
|
|
|
Release: 0
|
2011-04-21 14:12:39 +00:00
|
|
|
Summary: A script that recodes a spreadsheet's charset and saves as CSV
|
2013-02-28 08:51:01 +00:00
|
|
|
License: Artistic-1.0 or GPL-2.0+
|
2011-04-21 14:12:39 +00:00
|
|
|
Group: Productivity/Text/Convertors
|
2014-09-08 19:03:44 +00:00
|
|
|
Url: http://search.cpan.org/~ken/xls2csv/script/xls2csv
|
2011-04-21 14:12:39 +00:00
|
|
|
# repacked http://search.cpan.org/CPAN/authors/id/K/KE/KEN/%%{name}-%%{version}.tar.gz
|
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
|
Requires: perl
|
|
|
|
|
Requires: perl(Locale::Recode)
|
|
|
|
|
Requires: perl(Spreadsheet::ParseExcel)
|
|
|
|
|
Requires: perl(Spreadsheet::ParseExcel::FmtUnicode)
|
|
|
|
|
Requires: perl(Text::CSV_XS)
|
|
|
|
|
Requires: perl(Unicode::Map)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This script will recode a spreadsheet into a different character set and output the recoded data as a csv file.
|
|
|
|
|
The script came about after many headaches from dealing with Excel spreadsheets from clients that were being received in various character sets.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
2014-09-08 19:03:44 +00:00
|
|
|
perl Makefile.PL
|
|
|
|
|
make %{?_smp_mflags} OPTIMIZE="%{optflags}"
|
2011-04-21 14:12:39 +00:00
|
|
|
|
|
|
|
|
%install
|
2014-09-08 19:03:44 +00:00
|
|
|
make pure_install DESTDIR=%{buildroot}
|
2011-04-21 14:12:39 +00:00
|
|
|
find %{buildroot} -name .packlist -print -delete
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
%{_bindir}/xls2csv
|
|
|
|
|
%doc %{_mandir}/man1/xls2csv.1*
|
2014-09-08 19:03:44 +00:00
|
|
|
%doc Changes README
|
2011-04-21 14:12:39 +00:00
|
|
|
|
|
|
|
|
%changelog
|