File xls2csv.spec of Package xls2csv

#
# spec file for package xls2csv
#
# 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/
#

# norootforbuild


Name:           xls2csv
Version:        1.06
Release:        1
Summary:        A script that recodes a spreadsheet's charset and saves as CSV
Group:          Productivity/Text/Convertors

License:        Artistic-1.0 ; GPL-2.0+
Url:            http://search.cpan.org/~ken/xls2csv-1.06/script/xls2csv
# 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
%{__perl} Makefile.PL
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%install
%{__make} pure_install DESTDIR=%{buildroot}
find %{buildroot} -name .packlist -print -delete

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root)
%{_bindir}/xls2csv
%doc %{_mandir}/man1/xls2csv.1*
%doc README

%changelog