[packages/perl-Spreadsheet-Read] - new

baggins baggins at pld-linux.org
Thu Dec 27 10:24:11 CET 2012


commit c807ecdeaee07a959bc19e40eaac489e9887440c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Dec 27 10:23:53 2012 +0100

    - new

 perl-Spreadsheet-Read.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
---
diff --git a/perl-Spreadsheet-Read.spec b/perl-Spreadsheet-Read.spec
new file mode 100644
index 0000000..393b41d
--- /dev/null
+++ b/perl-Spreadsheet-Read.spec
@@ -0,0 +1,67 @@
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Spreadsheet
+%define		pnam	Read
+%include	/usr/lib/rpm/macros.perl
+Summary:	Spreadsheet::Read - Read the data from a spreadsheet
+Name:		perl-Spreadsheet-Read
+Version:	0.47
+Release:	1
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Spreadsheet/%{pdir}-%{pnam}-%{version}.tgz
+# Source0-md5:	84fe60094d79a6e85c6ed414a77e89cb
+URL:		http://search.cpan.org/~hmbrand/Spreadsheet-Read/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Test-NoWarnings
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 or Text::CSV_PP.
+
+For SquirrelCalc there is a very simplistic built-in parser
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+AUTOMATED_TESTING=1 \
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Spreadsheet/Read*.pm
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Spreadsheet-Read.git/commitdiff/c807ecdeaee07a959bc19e40eaac489e9887440c



More information about the pld-cvs-commit mailing list