1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/perl-parse/perl-parse.spec Fri Jan 09 17:12:49 2009 +0100 1.3 @@ -0,0 +1,355 @@ 1.4 +## 1.5 +## perl-parse.spec -- OpenPKG RPM Package Specification 1.6 +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> 1.7 +## 1.8 +## Permission to use, copy, modify, and distribute this software for 1.9 +## any purpose with or without fee is hereby granted, provided that 1.10 +## the above copyright notice and this permission notice appear in all 1.11 +## copies. 1.12 +## 1.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 1.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 1.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 1.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 1.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 1.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 1.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1.24 +## SUCH DAMAGE. 1.25 +## 1.26 + 1.27 +# versions of individual parts 1.28 +%define V_perl 5.10.0 1.29 +%define V_config_inifiles 2.45 1.30 +%define V_config_general 2.42 1.31 +%define V_config_simple 4.58 1.32 +%define V_config_context 0.10 1.33 +%define V_config_scoped 0.12 1.34 +%define V_string_tokenizer 0.05 1.35 +%define V_parse_recdescent 1.95.1 1.36 +%define V_parse_recdescent_faq 6.0.e 1.37 +%define V_parse_recdescent_deparse 1.00 1.38 +%define V_parse_recdescent_consumer 1.03 1.39 +%define V_parse_recdescent_topiary 0.05 1.40 +%define V_parse_yapp 1.05 1.41 +%define V_parse_eyapp 1.136 1.42 +%define V_parse_earley 0.15 1.43 +%define V_parse_lex 2.15 1.44 +%define V_parse_flex 0.12 1.45 +%define V_c_scan 0.74 1.46 +%define V_appconfig 1.66 1.47 +%define V_appconfig_std 1.07 1.48 +%define V_ogdl 20041124 1.49 +%define V_text_csv_pp 1.06 1.50 +%define V_text_csv_xs 0.58 1.51 +%define V_text_csv_simple 1.00 1.52 +%define V_getopt_long 2.37 1.53 +%define V_getopt_attribute 1.44 1.54 +%define V_getopt_argvfile 1.11 1.55 +%define V_getopt_fancy 0.06 1.56 +%define V_getopt_ll 1.0.0 1.57 + 1.58 +# package information 1.59 +Name: perl-parse 1.60 +Summary: Perl Modules for use with parsing algorythms 1.61 +URL: http://www.cpan.org/ 1.62 +Vendor: Perl Community 1.63 +Packager: OpenPKG Foundation e.V. 1.64 +Distribution: OpenPKG Community 1.65 +Class: BASE 1.66 +Group: Perl 1.67 +License: GPL/Artistic 1.68 +Version: %{V_perl} 1.69 +Release: 20081228 1.70 + 1.71 +# list of sources 1.72 +Source0: http://www.cpan.org/modules/by-module/Config/Config-IniFiles-%{V_config_inifiles}.tar.gz 1.73 +Source1: http://www.cpan.org/modules/by-module/Config/Config-General-%{V_config_general}.tar.gz 1.74 +Source2: http://www.cpan.org/modules/by-module/Config/Config-Simple-%{V_config_simple}.tar.gz 1.75 +Source3: http://www.cpan.org/authors/id/D/DC/DCONWAY/Parse-RecDescent-v%{V_parse_recdescent}.tar.gz 1.76 +Source4: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-FAQ-%{V_parse_recdescent_faq}.tar.gz 1.77 +Source5: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Deparse-%{V_parse_recdescent_deparse}.tar.gz 1.78 +Source6: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Consumer-%{V_parse_recdescent_consumer}.tar.gz 1.79 +Source7: http://www.cpan.org/modules/by-module/Parse/Parse-Yapp-%{V_parse_yapp}.tar.gz 1.80 +Source8: http://www.cpan.org/modules/by-module/Parse/Parse-Earley-%{V_parse_earley}.tar.gz 1.81 +Source9: http://www.cpan.org/modules/by-module/Parse/ParseLex-%{V_parse_lex}.tar.gz 1.82 +Source10: http://www.cpan.org/modules/by-module/C/C-Scan-%{V_c_scan}.tar.gz 1.83 +Source11: http://www.cpan.org/modules/by-module/AppConfig/AppConfig-%{V_appconfig}.tar.gz 1.84 +Source12: http://www.cpan.org/modules/by-module/AppConfig/AppConfig-Std-%{V_appconfig_std}.tar.gz 1.85 +Source13: http://switch.dl.sourceforge.net/ogdl/ogdlutils-%{V_ogdl}.tgz 1.86 +Source14: http://www.cpan.org/modules/by-module/String/String-Tokenizer-%{V_string_tokenizer}.tar.gz 1.87 +Source15: http://www.cpan.org/modules/by-module/Config/Config-Context-%{V_config_context}.tar.gz 1.88 +Source16: http://www.cpan.org/modules/by-module/Config/Config-Scoped-%{V_config_scoped}.tar.gz 1.89 +Source17: http://www.cpan.org/modules/by-module/Text/Text-CSV_PP-%{V_text_csv_pp}.tar.gz 1.90 +Source18: http://www.cpan.org/modules/by-module/Text/Text-CSV_XS-%{V_text_csv_xs}.tgz 1.91 +Source19: http://www.cpan.org/modules/by-module/Text/Text-CSV-Simple-%{V_text_csv_simple}.tar.gz 1.92 +Source20: http://www.cpan.org/modules/by-module/Getopt/Getopt-Long-%{V_getopt_long}.tar.gz 1.93 +Source21: http://www.cpan.org/modules/by-module/Getopt/Getopt-Attribute-%{V_getopt_attribute}.tar.gz 1.94 +Source22: http://www.cpan.org/modules/by-module/Getopt/Getopt-ArgvFile-%{V_getopt_argvfile}.tar.gz 1.95 +Source23: http://www.cpan.org/modules/by-module/Getopt/Getopt-Fancy-%{V_getopt_fancy}.tar.gz 1.96 +Source24: http://www.cpan.org/modules/by-module/Getopt/Getopt-LL-%{V_getopt_ll}.tar.gz 1.97 +Source25: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Topiary-%{V_parse_recdescent_topiary}.tar.gz 1.98 +Source26: http://www.cpan.org/modules/by-module/Parse/Parse-Flex-%{V_parse_flex}.tar.gz 1.99 +Source27: http://www.cpan.org/modules/by-module/Parse/Parse-Eyapp-%{V_parse_eyapp}.tar.gz 1.100 + 1.101 +# build information 1.102 +Prefix: %{l_prefix} 1.103 +BuildRoot: %{l_buildroot} 1.104 +BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20051031 1.105 +PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl} 1.106 +BuildPreReq: perl-util, perl-module, flex 1.107 +PreReq: perl-util, perl-module, flex 1.108 +AutoReq: no 1.109 +AutoReqProv: no 1.110 + 1.111 +%description 1.112 + Perl modules for use with parsing algorythms: 1.113 + - Config::IniFiles (%{V_config_inifiles}) 1.114 + - Config::General (%{V_config_general}) 1.115 + - Config::Simple (%{V_config_simple}) 1.116 + - Config::Context (%{V_config_context}) 1.117 + - Config::Scoped (%{V_config_scoped}) 1.118 + - String::Tokenizer (%{V_string_tokenizer}) 1.119 + - Parse::RecDescent (%{V_parse_recdescent}) 1.120 + - Parse::RecDescent::FAQ (%{V_parse_recdescent_faq}) 1.121 + - Parse::RecDescent::Deparse (%{V_parse_recdescent_deparse}) 1.122 + - Parse::RecDescent::Consumer (%{V_parse_recdescent_consumer}) 1.123 + - Parse::RecDescent::Topiary (%{V_parse_recdescent_topiary}) 1.124 + - Parse::Yapp (%{V_parse_yapp}) 1.125 + - Parse::Eyapp (%{V_parse_eyapp}) 1.126 + - Parse::Earley (%{V_parse_earley}) 1.127 + - Parse::Lex (%{V_parse_lex}) 1.128 + - Parse::Flex (%{V_parse_flex}) 1.129 + - C::Scan (%{V_c_scan}) 1.130 + - AppConfig (%{V_appconfig}) 1.131 + - AppConfig::Std (%{V_appconfig_std}) 1.132 + - OGDL (%{V_ogdl}) 1.133 + - Text::CSV_PP (%{V_text_csv_pp}) 1.134 + - Text::CSV_XS (%{V_text_csv_xs}) 1.135 + - Text::CSV::Simple (%{V_text_csv_simple}) 1.136 + - Getopt::Long (%{V_getopt_long}) 1.137 + - Getopt::Attribute (%{V_getopt_attribute}) 1.138 + - Getopt::ArgvFile (%{V_getopt_argvfile}) 1.139 + - Getopt::Fancy (%{V_getopt_fancy}) 1.140 + - Getopt::LL (%{V_getopt_ll}) 1.141 + 1.142 +%track 1.143 + prog perl-parse:Config-General = { 1.144 + version = %{V_config_general} 1.145 + url = http://www.cpan.org/modules/by-module/Config/ 1.146 + regex = Config-General-(__VER__)\.tar\.gz 1.147 + } 1.148 + prog perl-parse:Config-IniFiles = { 1.149 + version = %{V_config_inifiles} 1.150 + url = http://www.cpan.org/modules/by-module/Config/ 1.151 + regex = Config-IniFiles-(__VER__)\.tar\.gz 1.152 + } 1.153 + prog perl-parse:Config-Simple = { 1.154 + version = %{V_config_simple} 1.155 + url = http://www.cpan.org/modules/by-module/Config/ 1.156 + regex = Config-Simple-(__VER__)\.tar\.gz 1.157 + } 1.158 + prog perl-parse:Parse-RecDescent = { 1.159 + version = %{V_parse_recdescent} 1.160 + url = http://www.cpan.org/authors/id/D/DC/DCONWAY/ 1.161 + regex = Parse-RecDescent-v(__VER__)\.tar\.gz 1.162 + } 1.163 + prog perl-parse:Parse-RecDescent-Consumer = { 1.164 + version = %{V_parse_recdescent_consumer} 1.165 + url = http://www.cpan.org/modules/by-module/Parse/ 1.166 + regex = Parse-RecDescent-Consumer-(__VER__)\.tar\.gz 1.167 + } 1.168 + prog perl-parse:Parse-RecDescent-Deparse = { 1.169 + version = %{V_parse_recdescent_deparse} 1.170 + url = http://www.cpan.org/modules/by-module/Parse/ 1.171 + regex = Parse-RecDescent-Deparse-(__VER__)\.tar\.gz 1.172 + } 1.173 + prog perl-parse:Parse-RecDescent-FAQ = { 1.174 + version = %{V_parse_recdescent_faq} 1.175 + url = http://www.cpan.org/modules/by-module/Parse/ 1.176 + regex = Parse-RecDescent-FAQ-(__VER__)\.tar\.gz 1.177 + } 1.178 + prog perl-parse:Parse-RecDescent-Topiary = { 1.179 + version = %{V_parse_recdescent_topiary} 1.180 + url = http://www.cpan.org/modules/by-module/Parse/ 1.181 + regex = Parse-RecDescent-Topiary-(__VER__)\.tar\.gz 1.182 + } 1.183 + prog perl-parse:Parse-Yapp = { 1.184 + version = %{V_parse_yapp} 1.185 + url = http://www.cpan.org/modules/by-module/Parse/ 1.186 + regex = Parse-Yapp-(__VER__)\.tar\.gz 1.187 + } 1.188 + prog perl-parse:Parse-Eyapp = { 1.189 + version = %{V_parse_eyapp} 1.190 + url = http://www.cpan.org/modules/by-module/Parse/ 1.191 + regex = Parse-Eyapp-(__VER__)\.tar\.gz 1.192 + } 1.193 + prog perl-parse:Parse-Earley = { 1.194 + version = %{V_parse_earley} 1.195 + url = http://www.cpan.org/modules/by-module/Parse/ 1.196 + regex = Parse-Earley-(__VER__)\.tar\.gz 1.197 + } 1.198 + prog perl-parse:Parse-Lex = { 1.199 + version = %{V_parse_lex} 1.200 + url = http://www.cpan.org/modules/by-module/Parse/ 1.201 + regex = ParseLex-(__VER__)\.tar\.gz 1.202 + } 1.203 + prog perl-parse:Parse-Flex = { 1.204 + version = %{V_parse_flex} 1.205 + url = http://www.cpan.org/modules/by-module/Parse/ 1.206 + regex = Parse-Flex-(__VER__)\.tar\.gz 1.207 + } 1.208 + prog perl-parse:C-Scan = { 1.209 + version = %{V_c_scan} 1.210 + url = http://www.cpan.org/modules/by-module/C/ 1.211 + regex = C-Scan-(__VER__)\.tar\.gz 1.212 + } 1.213 + prog perl-parse:AppConfig = { 1.214 + version = %{V_appconfig} 1.215 + url = http://www.cpan.org/modules/by-module/AppConfig/ 1.216 + regex = AppConfig-(__VER__)\.tar\.gz 1.217 + } 1.218 + prog perl-parse:AppConfig-Std = { 1.219 + version = %{V_appconfig_std} 1.220 + url = http://www.cpan.org/modules/by-module/AppConfig/ 1.221 + regex = AppConfig-Std-(__VER__)\.tar\.gz 1.222 + } 1.223 + prog perl-parse:OGDL = { 1.224 + version = %{V_ogdl} 1.225 + url = http://prdownloads.sourceforge.net/ogdl/ 1.226 + regex = ogdlutils-(__VER__)\.tgz 1.227 + } 1.228 + prog perl-parse:String-Tokenizer = { 1.229 + version = %{V_string_tokenizer} 1.230 + url = http://www.cpan.org/modules/by-module/String/ 1.231 + regex = String-Tokenizer-(__VER__)\.tar\.gz 1.232 + } 1.233 + prog perl-parse:Config-Context = { 1.234 + version = %{V_config_context} 1.235 + url = http://www.cpan.org/modules/by-module/Config/ 1.236 + regex = Config-Context-(__VER__)\.tar\.gz 1.237 + } 1.238 + prog perl-parse:Config-Scoped = { 1.239 + version = %{V_config_scoped} 1.240 + url = http://www.cpan.org/modules/by-module/Config/ 1.241 + regex = Config-Scoped-(__VER__)\.tar\.gz 1.242 + } 1.243 + prog perl-parse:Text-CSV_PP = { 1.244 + version = %{V_text_csv_pp} 1.245 + url = http://www.cpan.org/modules/by-module/Text/ 1.246 + regex = Text-CSV_PP-(__VER__)\.tar\.gz 1.247 + } 1.248 + prog perl-parse:Text-CSV_XS = { 1.249 + version = %{V_text_csv_xs} 1.250 + url = http://www.cpan.org/modules/by-module/Text/ 1.251 + regex = Text-CSV_XS-(__VER__)\.t(ar\.)?gz 1.252 + } 1.253 + prog perl-parse:Text-CSV-Simple = { 1.254 + version = %{V_text_csv_simple} 1.255 + url = http://www.cpan.org/modules/by-module/Text/ 1.256 + regex = Text-CSV-Simple-(__VER__)\.tar\.gz 1.257 + } 1.258 + prog perl-parse:Getopt-Long = { 1.259 + version = %{V_getopt_long} 1.260 + url = http://www.cpan.org/modules/by-module/Getopt/ 1.261 + regex = Getopt-Long-(__VER__)\.tar\.gz 1.262 + } 1.263 + prog perl-parse:Getopt-Attribute = { 1.264 + version = %{V_getopt_attribute} 1.265 + url = http://www.cpan.org/modules/by-module/Getopt/ 1.266 + regex = Getopt-Attribute-(__VER__)\.tar\.gz 1.267 + } 1.268 + prog perl-parse:Getopt-ArgvFile = { 1.269 + version = %{V_getopt_argvfile} 1.270 + url = http://www.cpan.org/modules/by-module/Getopt/ 1.271 + regex = Getopt-ArgvFile-(__VER__)\.tar\.gz 1.272 + } 1.273 + prog perl-parse:Getopt-Fancy = { 1.274 + version = %{V_getopt_fancy} 1.275 + url = http://www.cpan.org/modules/by-module/Getopt/ 1.276 + regex = Getopt-Fancy-(__VER__)\.tar\.gz 1.277 + } 1.278 + prog perl-parse:Getopt-LL = { 1.279 + version = %{V_getopt_ll} 1.280 + url = http://www.cpan.org/modules/by-module/Getopt/ 1.281 + regex = Getopt-LL-(__VER__)\.tar\.gz 1.282 + } 1.283 + 1.284 +%prep 1.285 + %setup -q -c 1.286 + %setup -q -T -D -a 1 1.287 + %setup -q -T -D -a 2 1.288 + %setup -q -T -D -a 3 1.289 + %setup -q -T -D -a 4 1.290 + %setup -q -T -D -a 5 1.291 + %setup -q -T -D -a 6 1.292 + %setup -q -T -D -a 7 1.293 + %setup -q -T -D -a 8 1.294 + %setup -q -T -D -a 9 1.295 + %setup -q -T -D -a 10 1.296 + %setup -q -T -D -a 11 1.297 + %setup -q -T -D -a 12 1.298 + %setup -q -T -D -a 13 1.299 + %setup -q -T -D -a 14 1.300 + %setup -q -T -D -a 15 1.301 + %setup -q -T -D -a 16 1.302 + %setup -q -T -D -a 17 1.303 + %setup -q -T -D -a 18 1.304 + %setup -q -T -D -a 19 1.305 + %setup -q -T -D -a 20 1.306 + %setup -q -T -D -a 21 1.307 + %setup -q -T -D -a 22 1.308 + %setup -q -T -D -a 23 1.309 + %setup -q -T -D -a 24 1.310 + %setup -q -T -D -a 25 1.311 + %setup -q -T -D -a 26 1.312 + %setup -q -T -D -a 27 1.313 + 1.314 +%build 1.315 + 1.316 +%install 1.317 + rm -rf $RPM_BUILD_ROOT 1.318 + %{l_prefix}/bin/perl-openpkg prepare 1.319 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install 1.320 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install 1.321 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install 1.322 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install 1.323 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install 1.324 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install 1.325 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install 1.326 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install 1.327 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install 1.328 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install 1.329 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install 1.330 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install 1.331 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install 1.332 + ( cd ogdlutils-%{V_ogdl}/c 1.333 + %{l_cc} %{l_cflags} -c ogdlparser.c graph.c path.c ogdllog.c 1.334 + ar cr libogdl.a ogdlparser.o graph.o path.o ogdllog.o 1.335 + ) || exit $? 1.336 + %{l_prefix}/bin/perl-openpkg -d ogdlutils-%{V_ogdl}/perl configure build install 1.337 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install 1.338 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install 1.339 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install 1.340 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install 1.341 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install 1.342 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install 1.343 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install 1.344 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install 1.345 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install 1.346 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install 1.347 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install 1.348 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install 1.349 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install 1.350 + %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install 1.351 + %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup 1.352 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files` 1.353 + 1.354 +%files -f files 1.355 + 1.356 +%clean 1.357 + rm -rf $RPM_BUILD_ROOT 1.358 +