michael@57: ## michael@57: ## perl-parse.spec -- OpenPKG RPM Package Specification michael@372: ## Copyright (c) 2000-2011 OpenPKG Foundation e.V. michael@57: ## michael@57: ## Permission to use, copy, modify, and distribute this software for michael@57: ## any purpose with or without fee is hereby granted, provided that michael@57: ## the above copyright notice and this permission notice appear in all michael@57: ## copies. michael@57: ## michael@57: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@57: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@57: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@57: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@57: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@57: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@57: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@57: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@57: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@57: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@57: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@57: ## SUCH DAMAGE. michael@57: ## michael@57: michael@57: # versions of individual parts michael@372: %define V_perl 5.14 michael@372: %define V_config_inifiles 2.68 michael@372: %define V_config_general 2.50 michael@372: %define V_config_simple 4.59 michael@57: %define V_config_context 0.10 michael@372: %define V_config_scoped 0.13 michael@57: %define V_string_tokenizer 0.05 michael@372: %define V_parse_recdescent 1.962.2 michael@372: %define V_parse_recdescent_faq 7.5 michael@57: %define V_parse_recdescent_deparse 1.00 michael@57: %define V_parse_recdescent_consumer 1.03 michael@57: %define V_parse_recdescent_topiary 0.05 michael@57: %define V_parse_yapp 1.05 michael@372: %define V_parse_eyapp 1.181 michael@57: %define V_parse_earley 0.15 michael@372: %define V_parse_lex 2.20 michael@57: %define V_parse_flex 0.12 michael@57: %define V_c_scan 0.74 michael@57: %define V_appconfig 1.66 michael@57: %define V_appconfig_std 1.07 michael@57: %define V_ogdl 20041124 michael@372: %define V_text_csv_pp 1.06 michael@372: %define V_text_csv_xs 0.85 michael@57: %define V_text_csv_simple 1.00 michael@372: %define V_getopt_long 2.38_02 michael@372: %define V_getopt_attribute 2.101700 michael@57: %define V_getopt_argvfile 1.11 michael@57: %define V_getopt_fancy 0.06 michael@57: %define V_getopt_ll 1.0.0 michael@372: %define V_getopt_flex 1.07 michael@57: michael@57: # package information michael@57: Name: perl-parse michael@57: Summary: Perl Modules for use with parsing algorythms michael@57: URL: http://www.cpan.org/ michael@57: Vendor: Perl Community michael@57: Packager: OpenPKG Foundation e.V. michael@57: Distribution: OpenPKG Community michael@57: Class: BASE michael@57: Group: Perl michael@57: License: GPL/Artistic michael@57: Version: %{V_perl} michael@372: Release: 20110914 michael@57: michael@57: # list of sources michael@372: Source0: http://www.cpan.org/authors/id/S/SH/SHLOMIF/Config-IniFiles-%{V_config_inifiles}.tar.gz michael@372: Source1: http://www.cpan.org/authors/id/T/TL/TLINDEN/Config-General-%{V_config_general}.tar.gz michael@372: Source2: http://www.cpan.org/authors/id/S/SH/SHERZODR/Config-Simple-%{V_config_simple}.tar.gz michael@372: Source3: http://www.cpan.org/authors/id/D/DC/DCONWAY/Parse-RecDescent-%{V_parse_recdescent}.tar.gz michael@372: Source4: http://www.cpan.org/authors/id/T/TB/TBONE/Parse-RecDescent-FAQ-%{V_parse_recdescent_faq}.tar.gz michael@372: Source5: http://www.cpan.org/authors/id/S/SI/SIMON/Parse-RecDescent-Deparse-%{V_parse_recdescent_deparse}.tar.gz michael@372: Source6: http://www.cpan.org/authors/id/T/TB/TBONE/Parse-RecDescent-Consumer-%{V_parse_recdescent_consumer}.tar.gz michael@372: Source7: http://www.cpan.org/authors/id/F/FD/FDESAR/Parse-Yapp-%{V_parse_yapp}.tar.gz michael@372: Source8: http://www.cpan.org/authors/id/L/LP/LPALMER/Parse-Earley-%{V_parse_earley}.tar.gz michael@372: Source9: http://www.cpan.org/authors/id/P/PS/PSCUST/ParseLex-%{V_parse_lex}.tar.gz michael@372: Source10: http://www.cpan.org/authors/id/H/HV/HVDS/C-Scan-%{V_c_scan}.tar.gz michael@372: Source11: http://www.cpan.org/authors/id/A/AB/ABW/AppConfig-%{V_appconfig}.tar.gz michael@372: Source12: http://www.cpan.org/authors/id/N/NE/NEILB/AppConfig-Std-%{V_appconfig_std}.tar.gz michael@57: Source13: http://switch.dl.sourceforge.net/ogdl/ogdlutils-%{V_ogdl}.tgz michael@372: Source14: http://www.cpan.org/authors/id/S/ST/STEVAN/String-Tokenizer-%{V_string_tokenizer}.tar.gz michael@372: Source15: http://www.cpan.org/authors/id/M/MG/MGRAHAM/Config-Context-%{V_config_context}.tar.gz michael@372: Source16: http://www.cpan.org/authors/id/G/GA/GAISSMAI/Config-Scoped-%{V_config_scoped}.tar.gz michael@372: Source17: http://www.cpan.org/modules/by-module/Text/Text-CSV_PP-%{V_text_csv_pp}.tar.gz michael@372: Source18: http://www.cpan.org/modules/by-module/Text/Text-CSV_XS-%{V_text_csv_xs}.tgz michael@372: Source19: http://www.cpan.org/authors/id/T/TM/TMTM/Text-CSV-Simple-%{V_text_csv_simple}.tar.gz michael@372: Source20: http://www.cpan.org/authors/id/J/JV/JV/Getopt-Long-%{V_getopt_long}.tar.gz michael@372: Source21: http://www.cpan.org/authors/id/M/MA/MARCEL/Getopt-Attribute-%{V_getopt_attribute}.tar.gz michael@372: Source22: http://www.cpan.org/authors/id/J/JS/JSTENZEL/Getopt-ArgvFile-%{V_getopt_argvfile}.tar.gz michael@372: Source23: http://www.cpan.org/authors/id/B/BA/BATMAN/Getopt-Fancy-%{V_getopt_fancy}.tar.gz michael@372: Source24: http://www.cpan.org/authors/id/A/AS/ASKSH/Getopt-LL-%{V_getopt_ll}.tar.gz michael@372: Source25: http://www.cpan.org/authors/id/I/IV/IVORW/Parse-RecDescent-Topiary-%{V_parse_recdescent_topiary}.tar.gz michael@372: Source26: http://www.cpan.org/authors/id/I/IO/IOANNIS/Parse-Flex-%{V_parse_flex}.tar.gz michael@372: Source27: http://www.cpan.org/authors/id/C/CA/CASIANO/Parse-Eyapp-%{V_parse_eyapp}.tar.gz michael@372: Source28: http://www.cpan.org/authors/id/R/RP/RPKELLY/Getopt-Flex-%{V_getopt_flex}.tar.gz michael@57: michael@57: # build information michael@57: Prefix: %{l_prefix} michael@57: BuildRoot: %{l_buildroot} michael@372: BuildPreReq: OpenPKG, openpkg >= 20060823, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20051031 michael@372: PreReq: OpenPKG, openpkg >= 20060823, perl >= %{V_perl} michael@57: BuildPreReq: perl-util, perl-module, flex michael@57: PreReq: perl-util, perl-module, flex michael@57: AutoReq: no michael@57: AutoReqProv: no michael@57: michael@57: %description michael@57: Perl modules for use with parsing algorythms: michael@57: - Config::IniFiles (%{V_config_inifiles}) michael@57: - Config::General (%{V_config_general}) michael@57: - Config::Simple (%{V_config_simple}) michael@57: - Config::Context (%{V_config_context}) michael@57: - Config::Scoped (%{V_config_scoped}) michael@57: - String::Tokenizer (%{V_string_tokenizer}) michael@57: - Parse::RecDescent (%{V_parse_recdescent}) michael@57: - Parse::RecDescent::FAQ (%{V_parse_recdescent_faq}) michael@57: - Parse::RecDescent::Deparse (%{V_parse_recdescent_deparse}) michael@57: - Parse::RecDescent::Consumer (%{V_parse_recdescent_consumer}) michael@57: - Parse::RecDescent::Topiary (%{V_parse_recdescent_topiary}) michael@57: - Parse::Yapp (%{V_parse_yapp}) michael@57: - Parse::Eyapp (%{V_parse_eyapp}) michael@57: - Parse::Earley (%{V_parse_earley}) michael@57: - Parse::Lex (%{V_parse_lex}) michael@57: - Parse::Flex (%{V_parse_flex}) michael@57: - C::Scan (%{V_c_scan}) michael@57: - AppConfig (%{V_appconfig}) michael@57: - AppConfig::Std (%{V_appconfig_std}) michael@57: - OGDL (%{V_ogdl}) michael@372: - Text::CSV_PP (%{V_text_csv_pp}) michael@57: - Text::CSV_XS (%{V_text_csv_xs}) michael@57: - Text::CSV::Simple (%{V_text_csv_simple}) michael@57: - Getopt::Long (%{V_getopt_long}) michael@57: - Getopt::Attribute (%{V_getopt_attribute}) michael@57: - Getopt::ArgvFile (%{V_getopt_argvfile}) michael@57: - Getopt::Fancy (%{V_getopt_fancy}) michael@57: - Getopt::LL (%{V_getopt_ll}) michael@372: - Getopt::Flex (%{V_getopt_flex}) michael@57: michael@57: %track michael@57: prog perl-parse:Config-General = { michael@57: version = %{V_config_general} michael@372: url = http://www.cpan.org/authors/id/T/TL/TLINDEN/ michael@57: regex = Config-General-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Config-IniFiles = { michael@57: version = %{V_config_inifiles} michael@372: url = http://www.cpan.org/authors/id/S/SH/SHLOMIF/ michael@57: regex = Config-IniFiles-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Config-Simple = { michael@57: version = %{V_config_simple} michael@372: url = http://www.cpan.org/authors/id/S/SH/SHERZODR/ michael@57: regex = Config-Simple-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Parse-RecDescent = { michael@57: version = %{V_parse_recdescent} michael@57: url = http://www.cpan.org/authors/id/D/DC/DCONWAY/ michael@57: regex = Parse-RecDescent-v(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Parse-RecDescent-Consumer = { michael@57: version = %{V_parse_recdescent_consumer} michael@372: url = http://www.cpan.org/authors/id/T/TB/TBONE/ michael@57: regex = Parse-RecDescent-Consumer-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Parse-RecDescent-Deparse = { michael@57: version = %{V_parse_recdescent_deparse} michael@372: url = http://www.cpan.org/authors/id/S/SI/SIMON/ michael@57: regex = Parse-RecDescent-Deparse-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Parse-RecDescent-FAQ = { michael@57: version = %{V_parse_recdescent_faq} michael@372: url = http://www.cpan.org/authors/id/T/TB/TBONE/ michael@57: regex = Parse-RecDescent-FAQ-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Parse-RecDescent-Topiary = { michael@57: version = %{V_parse_recdescent_topiary} michael@372: url = http://www.cpan.org/authors/id/I/IV/IVORW/ michael@57: regex = Parse-RecDescent-Topiary-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Parse-Yapp = { michael@57: version = %{V_parse_yapp} michael@372: url = http://www.cpan.org/authors/id/F/FD/FDESAR/ michael@57: regex = Parse-Yapp-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Parse-Eyapp = { michael@57: version = %{V_parse_eyapp} michael@372: url = http://www.cpan.org/authors/id/C/CA/CASIANO/ michael@57: regex = Parse-Eyapp-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Parse-Earley = { michael@57: version = %{V_parse_earley} michael@372: url = http://www.cpan.org/authors/id/L/LP/LPALMER/ michael@57: regex = Parse-Earley-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Parse-Lex = { michael@57: version = %{V_parse_lex} michael@372: url = http://www.cpan.org/authors/id/P/PS/PSCUST/ michael@57: regex = ParseLex-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Parse-Flex = { michael@57: version = %{V_parse_flex} michael@372: url = http://www.cpan.org/authors/id/I/IO/IOANNIS/ michael@57: regex = Parse-Flex-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:C-Scan = { michael@57: version = %{V_c_scan} michael@372: url = http://www.cpan.org/authors/id/H/HV/HVDS/ michael@57: regex = C-Scan-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:AppConfig = { michael@57: version = %{V_appconfig} michael@372: url = http://www.cpan.org/authors/id/A/AB/ABW/ michael@57: regex = AppConfig-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:AppConfig-Std = { michael@57: version = %{V_appconfig_std} michael@372: url = http://www.cpan.org/authors/id/N/NE/NEILB/ michael@57: regex = AppConfig-Std-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:OGDL = { michael@57: version = %{V_ogdl} michael@372: url = http://sourceforge.net/projects/ogdl/files/ michael@57: regex = ogdlutils-(__VER__)\.tgz michael@57: } michael@57: prog perl-parse:String-Tokenizer = { michael@57: version = %{V_string_tokenizer} michael@372: url = http://www.cpan.org/authors/id/S/ST/STEVAN/ michael@57: regex = String-Tokenizer-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Config-Context = { michael@57: version = %{V_config_context} michael@372: url = http://www.cpan.org/authors/id/M/MG/MGRAHAM/ michael@57: regex = Config-Context-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Config-Scoped = { michael@57: version = %{V_config_scoped} michael@372: url = http://www.cpan.org/authors/id/G/GA/GAISSMAI/ michael@57: regex = Config-Scoped-(__VER__)\.tar\.gz michael@57: } michael@372: prog perl-parse:Text-CSV_PP = { michael@372: version = %{V_text_csv_pp} michael@372: url = http://www.cpan.org/modules/by-module/Text/ michael@372: regex = Text-CSV_PP-(__VER__)\.tar\.gz michael@372: } michael@57: prog perl-parse:Text-CSV_XS = { michael@57: version = %{V_text_csv_xs} michael@57: url = http://www.cpan.org/modules/by-module/Text/ michael@57: regex = Text-CSV_XS-(__VER__)\.t(ar\.)?gz michael@57: } michael@57: prog perl-parse:Text-CSV-Simple = { michael@57: version = %{V_text_csv_simple} michael@372: url = http://www.cpan.org/authors/id/T/TM/TMTM/ michael@57: regex = Text-CSV-Simple-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Getopt-Long = { michael@57: version = %{V_getopt_long} michael@372: url = http://www.cpan.org/authors/id/J/JV/JV/ michael@57: regex = Getopt-Long-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Getopt-Attribute = { michael@57: version = %{V_getopt_attribute} michael@372: url = http://www.cpan.org/authors/id/M/MA/MARCEL/ michael@57: regex = Getopt-Attribute-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Getopt-ArgvFile = { michael@57: version = %{V_getopt_argvfile} michael@372: url = http://www.cpan.org/authors/id/J/JS/JSTENZEL/ michael@57: regex = Getopt-ArgvFile-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Getopt-Fancy = { michael@57: version = %{V_getopt_fancy} michael@372: url = http://www.cpan.org/authors/id/B/BA/BATMAN/ michael@57: regex = Getopt-Fancy-(__VER__)\.tar\.gz michael@57: } michael@57: prog perl-parse:Getopt-LL = { michael@57: version = %{V_getopt_ll} michael@372: url = http://www.cpan.org/authors/id/A/AS/ASKSH/ michael@57: regex = Getopt-LL-(__VER__)\.tar\.gz michael@57: } michael@372: prog perl-parse:Getopt-Flex = { michael@372: version = %{V_getopt_flex} michael@372: url = http://www.cpan.org/authors/id/R/RP/RPKELLY/ michael@372: regex = Getopt-Flex-(__VER__)\.tar\.gz michael@372: } michael@57: michael@57: %prep michael@57: %setup -q -c michael@57: %setup -q -T -D -a 1 michael@57: %setup -q -T -D -a 2 michael@57: %setup -q -T -D -a 3 michael@57: %setup -q -T -D -a 4 michael@57: %setup -q -T -D -a 5 michael@57: %setup -q -T -D -a 6 michael@57: %setup -q -T -D -a 7 michael@57: %setup -q -T -D -a 8 michael@57: %setup -q -T -D -a 9 michael@57: %setup -q -T -D -a 10 michael@57: %setup -q -T -D -a 11 michael@57: %setup -q -T -D -a 12 michael@57: %setup -q -T -D -a 13 michael@57: %setup -q -T -D -a 14 michael@57: %setup -q -T -D -a 15 michael@57: %setup -q -T -D -a 16 michael@57: %setup -q -T -D -a 17 michael@57: %setup -q -T -D -a 18 michael@57: %setup -q -T -D -a 19 michael@57: %setup -q -T -D -a 20 michael@57: %setup -q -T -D -a 21 michael@57: %setup -q -T -D -a 22 michael@57: %setup -q -T -D -a 23 michael@57: %setup -q -T -D -a 24 michael@57: %setup -q -T -D -a 25 michael@57: %setup -q -T -D -a 26 michael@372: %setup -q -T -D -a 27 michael@372: %setup -q -T -D -a 28 michael@57: michael@57: %build michael@57: michael@57: %install michael@57: rm -rf $RPM_BUILD_ROOT michael@57: %{l_prefix}/bin/perl-openpkg prepare michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install michael@57: ( cd ogdlutils-%{V_ogdl}/c michael@57: %{l_cc} %{l_cflags} -c ogdlparser.c graph.c path.c ogdllog.c michael@57: ar cr libogdl.a ogdlparser.o graph.o path.o ogdllog.o michael@57: ) || exit $? michael@57: %{l_prefix}/bin/perl-openpkg -d ogdlutils-%{V_ogdl}/perl configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install michael@158: %{l_prefix}/bin/perl-openpkg -A TAR=%{l_tar} -d %{SOURCE16} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install michael@372: %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install michael@372: %{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install michael@57: %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup michael@57: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files` michael@57: michael@57: %files -f files michael@57: michael@57: %clean michael@57: rm -rf $RPM_BUILD_ROOT michael@57: