From a12d91316ab9ae41ec23ca156adffc0ab824ca7e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 19:44:34 +0100 Subject: [PATCH] don't own system directories [release 1.07-2mamba;Sun Oct 20 2013] --- README.md | 2 ++ xls2csv.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 xls2csv.spec diff --git a/README.md b/README.md index 926f17a..9034c07 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # xls2csv +xls2csv - A script that recodes a spreadsheet's charset and saves as CSV. + diff --git a/xls2csv.spec b/xls2csv.spec new file mode 100644 index 0000000..1804e1a --- /dev/null +++ b/xls2csv.spec @@ -0,0 +1,60 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: xls2csv +Version: 1.07 +Release: 2mamba +Summary: xls2csv - A script that recodes a spreadsheet's charset and saves as CSV +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/K/KE/KEN/xls2csv-%{version}.tar.gz +License: Artistic, GPL +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-devel +BuildRequires: perl-libintl +BuildRequires: perl-Spreadsheet-ParseExcel +BuildRequires: perl-Text-CSV_XS +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +xls2csv - A script that recodes a spreadsheet's charset and saves as CSV. + +%prep +%setup -q + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Sun Oct 20 2013 Silvan Calarco 1.07-2mamba +- don't own system directories + +* Tue Jan 24 2012 Automatic Build System 1.07-1mamba +- automatic version update by autodist + +* Tue Oct 19 2010 Silvan Calarco 1.06-1mamba +- package created by autospec