From d0aa181e306a6b849d8e43e59c5dca6507d1fb78 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Sun, 13 Nov 2005 10:07:10 +0000 Subject: [PATCH] add Text::CSV modules for parsing CSV files --- perl-parse/perl-parse.spec | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/perl-parse/perl-parse.spec b/perl-parse/perl-parse.spec index fc316ee0fc..5febfd24b9 100644 --- a/perl-parse/perl-parse.spec +++ b/perl-parse/perl-parse.spec @@ -43,6 +43,9 @@ %define V_template 2.14 %define V_yaml 0.39 %define V_ogdl 20041124 +%define V_text_csv_pp 1.01 +%define V_text_csv_xs 0.23 +%define V_text_csv_simple 1.00 # package information Name: perl-parse @@ -55,7 +58,7 @@ Class: BASE Group: Language License: GPL/Artistic Version: %{V_perl} -Release: 20051108 +Release: 20051113 # list of sources Source0: http://www.cpan.org/modules/by-module/Config/Config-IniFiles-%{V_config_inifiles}.tar.gz @@ -77,12 +80,17 @@ Source15: http://osdn.dl.sourceforge.net/ogdl/ogdlutils-%{V_ogdl}.tgz Source16: http://www.cpan.org/modules/by-module/String/String-Tokenizer-%{V_string_tokenizer}.tar.gz Source17: http://www.cpan.org/modules/by-module/Config/Config-Context-%{V_config_context}.tar.gz Source18: http://www.cpan.org/modules/by-module/Config/Config-Scoped-%{V_config_scoped}.tar.gz +Source19: http://www.cpan.org/modules/by-module/Text/Text-CSV_PP-%{V_text_csv_pp}.tar.gz +Source20: http://www.cpan.org/modules/by-module/Text/Text-CSV_XS-%{V_text_csv_xs}.tar.gz +Source21: http://www.cpan.org/modules/by-module/Text/Text-CSV-Simple-%{V_text_csv_simple}.tar.gz # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-util, perl-openpkg >= %{V_perl}-20040126 -PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-util +BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20051031 +PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl} +BuildPreReq: perl-util +PreReq: perl-util AutoReq: no AutoReqProv: no @@ -107,6 +115,9 @@ AutoReqProv: no - Template (%{V_template}) - YAML (%{V_yaml}) - OGDL (%{V_ogdl}) + - Text::CSV_PP (%{V_text_csv_pp}) + - Text::CSV_XS (%{V_text_csv_xs}) + - Text::CSV::Simple (%{V_text_csv_simple}) %track prog perl-parse:Config-General = { @@ -204,6 +215,21 @@ AutoReqProv: no url = http://www.cpan.org/modules/by-module/Config/ regex = Config-Scoped-(__VER__)\.tar\.gz } + prog perl-parse:Text-CSV_PP = { + version = %{V_text_csv_pp} + url = http://www.cpan.org/modules/by-module/Text/ + regex = Text-CSV_PP-(__VER__)\.tar\.gz + } + prog perl-parse:Text-CSV_XS = { + version = %{V_text_csv_xs} + url = http://www.cpan.org/modules/by-module/Text/ + regex = Text-CSV_XS-(__VER__)\.tar\.gz + } + prog perl-parse:Text-CSV-Simple = { + version = %{V_text_csv_simple} + url = http://www.cpan.org/modules/by-module/Text/ + regex = Text-CSV-Simple-(__VER__)\.tar\.gz + } %prep %setup -q -c @@ -225,6 +251,9 @@ AutoReqProv: no %setup -q -T -D -a 16 %setup -q -T -D -a 17 %setup -q -T -D -a 18 + %setup -q -T -D -a 19 + %setup -q -T -D -a 20 + %setup -q -T -D -a 21 %build @@ -257,6 +286,9 @@ AutoReqProv: no %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install + %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install + %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install + %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`