Fri, 09 Jan 2009 17:12:49 +0100
Import package vendor original specs for necessary manipulations.
1 ##
2 ## perl-parse.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
24 # versions of individual parts
25 %define V_perl 5.10.0
26 %define V_config_inifiles 2.45
27 %define V_config_general 2.42
28 %define V_config_simple 4.58
29 %define V_config_context 0.10
30 %define V_config_scoped 0.12
31 %define V_string_tokenizer 0.05
32 %define V_parse_recdescent 1.95.1
33 %define V_parse_recdescent_faq 6.0.e
34 %define V_parse_recdescent_deparse 1.00
35 %define V_parse_recdescent_consumer 1.03
36 %define V_parse_recdescent_topiary 0.05
37 %define V_parse_yapp 1.05
38 %define V_parse_eyapp 1.136
39 %define V_parse_earley 0.15
40 %define V_parse_lex 2.15
41 %define V_parse_flex 0.12
42 %define V_c_scan 0.74
43 %define V_appconfig 1.66
44 %define V_appconfig_std 1.07
45 %define V_ogdl 20041124
46 %define V_text_csv_pp 1.06
47 %define V_text_csv_xs 0.58
48 %define V_text_csv_simple 1.00
49 %define V_getopt_long 2.37
50 %define V_getopt_attribute 1.44
51 %define V_getopt_argvfile 1.11
52 %define V_getopt_fancy 0.06
53 %define V_getopt_ll 1.0.0
55 # package information
56 Name: perl-parse
57 Summary: Perl Modules for use with parsing algorythms
58 URL: http://www.cpan.org/
59 Vendor: Perl Community
60 Packager: OpenPKG Foundation e.V.
61 Distribution: OpenPKG Community
62 Class: BASE
63 Group: Perl
64 License: GPL/Artistic
65 Version: %{V_perl}
66 Release: 20081228
68 # list of sources
69 Source0: http://www.cpan.org/modules/by-module/Config/Config-IniFiles-%{V_config_inifiles}.tar.gz
70 Source1: http://www.cpan.org/modules/by-module/Config/Config-General-%{V_config_general}.tar.gz
71 Source2: http://www.cpan.org/modules/by-module/Config/Config-Simple-%{V_config_simple}.tar.gz
72 Source3: http://www.cpan.org/authors/id/D/DC/DCONWAY/Parse-RecDescent-v%{V_parse_recdescent}.tar.gz
73 Source4: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-FAQ-%{V_parse_recdescent_faq}.tar.gz
74 Source5: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Deparse-%{V_parse_recdescent_deparse}.tar.gz
75 Source6: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Consumer-%{V_parse_recdescent_consumer}.tar.gz
76 Source7: http://www.cpan.org/modules/by-module/Parse/Parse-Yapp-%{V_parse_yapp}.tar.gz
77 Source8: http://www.cpan.org/modules/by-module/Parse/Parse-Earley-%{V_parse_earley}.tar.gz
78 Source9: http://www.cpan.org/modules/by-module/Parse/ParseLex-%{V_parse_lex}.tar.gz
79 Source10: http://www.cpan.org/modules/by-module/C/C-Scan-%{V_c_scan}.tar.gz
80 Source11: http://www.cpan.org/modules/by-module/AppConfig/AppConfig-%{V_appconfig}.tar.gz
81 Source12: http://www.cpan.org/modules/by-module/AppConfig/AppConfig-Std-%{V_appconfig_std}.tar.gz
82 Source13: http://switch.dl.sourceforge.net/ogdl/ogdlutils-%{V_ogdl}.tgz
83 Source14: http://www.cpan.org/modules/by-module/String/String-Tokenizer-%{V_string_tokenizer}.tar.gz
84 Source15: http://www.cpan.org/modules/by-module/Config/Config-Context-%{V_config_context}.tar.gz
85 Source16: http://www.cpan.org/modules/by-module/Config/Config-Scoped-%{V_config_scoped}.tar.gz
86 Source17: http://www.cpan.org/modules/by-module/Text/Text-CSV_PP-%{V_text_csv_pp}.tar.gz
87 Source18: http://www.cpan.org/modules/by-module/Text/Text-CSV_XS-%{V_text_csv_xs}.tgz
88 Source19: http://www.cpan.org/modules/by-module/Text/Text-CSV-Simple-%{V_text_csv_simple}.tar.gz
89 Source20: http://www.cpan.org/modules/by-module/Getopt/Getopt-Long-%{V_getopt_long}.tar.gz
90 Source21: http://www.cpan.org/modules/by-module/Getopt/Getopt-Attribute-%{V_getopt_attribute}.tar.gz
91 Source22: http://www.cpan.org/modules/by-module/Getopt/Getopt-ArgvFile-%{V_getopt_argvfile}.tar.gz
92 Source23: http://www.cpan.org/modules/by-module/Getopt/Getopt-Fancy-%{V_getopt_fancy}.tar.gz
93 Source24: http://www.cpan.org/modules/by-module/Getopt/Getopt-LL-%{V_getopt_ll}.tar.gz
94 Source25: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Topiary-%{V_parse_recdescent_topiary}.tar.gz
95 Source26: http://www.cpan.org/modules/by-module/Parse/Parse-Flex-%{V_parse_flex}.tar.gz
96 Source27: http://www.cpan.org/modules/by-module/Parse/Parse-Eyapp-%{V_parse_eyapp}.tar.gz
98 # build information
99 Prefix: %{l_prefix}
100 BuildRoot: %{l_buildroot}
101 BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20051031
102 PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
103 BuildPreReq: perl-util, perl-module, flex
104 PreReq: perl-util, perl-module, flex
105 AutoReq: no
106 AutoReqProv: no
108 %description
109 Perl modules for use with parsing algorythms:
110 - Config::IniFiles (%{V_config_inifiles})
111 - Config::General (%{V_config_general})
112 - Config::Simple (%{V_config_simple})
113 - Config::Context (%{V_config_context})
114 - Config::Scoped (%{V_config_scoped})
115 - String::Tokenizer (%{V_string_tokenizer})
116 - Parse::RecDescent (%{V_parse_recdescent})
117 - Parse::RecDescent::FAQ (%{V_parse_recdescent_faq})
118 - Parse::RecDescent::Deparse (%{V_parse_recdescent_deparse})
119 - Parse::RecDescent::Consumer (%{V_parse_recdescent_consumer})
120 - Parse::RecDescent::Topiary (%{V_parse_recdescent_topiary})
121 - Parse::Yapp (%{V_parse_yapp})
122 - Parse::Eyapp (%{V_parse_eyapp})
123 - Parse::Earley (%{V_parse_earley})
124 - Parse::Lex (%{V_parse_lex})
125 - Parse::Flex (%{V_parse_flex})
126 - C::Scan (%{V_c_scan})
127 - AppConfig (%{V_appconfig})
128 - AppConfig::Std (%{V_appconfig_std})
129 - OGDL (%{V_ogdl})
130 - Text::CSV_PP (%{V_text_csv_pp})
131 - Text::CSV_XS (%{V_text_csv_xs})
132 - Text::CSV::Simple (%{V_text_csv_simple})
133 - Getopt::Long (%{V_getopt_long})
134 - Getopt::Attribute (%{V_getopt_attribute})
135 - Getopt::ArgvFile (%{V_getopt_argvfile})
136 - Getopt::Fancy (%{V_getopt_fancy})
137 - Getopt::LL (%{V_getopt_ll})
139 %track
140 prog perl-parse:Config-General = {
141 version = %{V_config_general}
142 url = http://www.cpan.org/modules/by-module/Config/
143 regex = Config-General-(__VER__)\.tar\.gz
144 }
145 prog perl-parse:Config-IniFiles = {
146 version = %{V_config_inifiles}
147 url = http://www.cpan.org/modules/by-module/Config/
148 regex = Config-IniFiles-(__VER__)\.tar\.gz
149 }
150 prog perl-parse:Config-Simple = {
151 version = %{V_config_simple}
152 url = http://www.cpan.org/modules/by-module/Config/
153 regex = Config-Simple-(__VER__)\.tar\.gz
154 }
155 prog perl-parse:Parse-RecDescent = {
156 version = %{V_parse_recdescent}
157 url = http://www.cpan.org/authors/id/D/DC/DCONWAY/
158 regex = Parse-RecDescent-v(__VER__)\.tar\.gz
159 }
160 prog perl-parse:Parse-RecDescent-Consumer = {
161 version = %{V_parse_recdescent_consumer}
162 url = http://www.cpan.org/modules/by-module/Parse/
163 regex = Parse-RecDescent-Consumer-(__VER__)\.tar\.gz
164 }
165 prog perl-parse:Parse-RecDescent-Deparse = {
166 version = %{V_parse_recdescent_deparse}
167 url = http://www.cpan.org/modules/by-module/Parse/
168 regex = Parse-RecDescent-Deparse-(__VER__)\.tar\.gz
169 }
170 prog perl-parse:Parse-RecDescent-FAQ = {
171 version = %{V_parse_recdescent_faq}
172 url = http://www.cpan.org/modules/by-module/Parse/
173 regex = Parse-RecDescent-FAQ-(__VER__)\.tar\.gz
174 }
175 prog perl-parse:Parse-RecDescent-Topiary = {
176 version = %{V_parse_recdescent_topiary}
177 url = http://www.cpan.org/modules/by-module/Parse/
178 regex = Parse-RecDescent-Topiary-(__VER__)\.tar\.gz
179 }
180 prog perl-parse:Parse-Yapp = {
181 version = %{V_parse_yapp}
182 url = http://www.cpan.org/modules/by-module/Parse/
183 regex = Parse-Yapp-(__VER__)\.tar\.gz
184 }
185 prog perl-parse:Parse-Eyapp = {
186 version = %{V_parse_eyapp}
187 url = http://www.cpan.org/modules/by-module/Parse/
188 regex = Parse-Eyapp-(__VER__)\.tar\.gz
189 }
190 prog perl-parse:Parse-Earley = {
191 version = %{V_parse_earley}
192 url = http://www.cpan.org/modules/by-module/Parse/
193 regex = Parse-Earley-(__VER__)\.tar\.gz
194 }
195 prog perl-parse:Parse-Lex = {
196 version = %{V_parse_lex}
197 url = http://www.cpan.org/modules/by-module/Parse/
198 regex = ParseLex-(__VER__)\.tar\.gz
199 }
200 prog perl-parse:Parse-Flex = {
201 version = %{V_parse_flex}
202 url = http://www.cpan.org/modules/by-module/Parse/
203 regex = Parse-Flex-(__VER__)\.tar\.gz
204 }
205 prog perl-parse:C-Scan = {
206 version = %{V_c_scan}
207 url = http://www.cpan.org/modules/by-module/C/
208 regex = C-Scan-(__VER__)\.tar\.gz
209 }
210 prog perl-parse:AppConfig = {
211 version = %{V_appconfig}
212 url = http://www.cpan.org/modules/by-module/AppConfig/
213 regex = AppConfig-(__VER__)\.tar\.gz
214 }
215 prog perl-parse:AppConfig-Std = {
216 version = %{V_appconfig_std}
217 url = http://www.cpan.org/modules/by-module/AppConfig/
218 regex = AppConfig-Std-(__VER__)\.tar\.gz
219 }
220 prog perl-parse:OGDL = {
221 version = %{V_ogdl}
222 url = http://prdownloads.sourceforge.net/ogdl/
223 regex = ogdlutils-(__VER__)\.tgz
224 }
225 prog perl-parse:String-Tokenizer = {
226 version = %{V_string_tokenizer}
227 url = http://www.cpan.org/modules/by-module/String/
228 regex = String-Tokenizer-(__VER__)\.tar\.gz
229 }
230 prog perl-parse:Config-Context = {
231 version = %{V_config_context}
232 url = http://www.cpan.org/modules/by-module/Config/
233 regex = Config-Context-(__VER__)\.tar\.gz
234 }
235 prog perl-parse:Config-Scoped = {
236 version = %{V_config_scoped}
237 url = http://www.cpan.org/modules/by-module/Config/
238 regex = Config-Scoped-(__VER__)\.tar\.gz
239 }
240 prog perl-parse:Text-CSV_PP = {
241 version = %{V_text_csv_pp}
242 url = http://www.cpan.org/modules/by-module/Text/
243 regex = Text-CSV_PP-(__VER__)\.tar\.gz
244 }
245 prog perl-parse:Text-CSV_XS = {
246 version = %{V_text_csv_xs}
247 url = http://www.cpan.org/modules/by-module/Text/
248 regex = Text-CSV_XS-(__VER__)\.t(ar\.)?gz
249 }
250 prog perl-parse:Text-CSV-Simple = {
251 version = %{V_text_csv_simple}
252 url = http://www.cpan.org/modules/by-module/Text/
253 regex = Text-CSV-Simple-(__VER__)\.tar\.gz
254 }
255 prog perl-parse:Getopt-Long = {
256 version = %{V_getopt_long}
257 url = http://www.cpan.org/modules/by-module/Getopt/
258 regex = Getopt-Long-(__VER__)\.tar\.gz
259 }
260 prog perl-parse:Getopt-Attribute = {
261 version = %{V_getopt_attribute}
262 url = http://www.cpan.org/modules/by-module/Getopt/
263 regex = Getopt-Attribute-(__VER__)\.tar\.gz
264 }
265 prog perl-parse:Getopt-ArgvFile = {
266 version = %{V_getopt_argvfile}
267 url = http://www.cpan.org/modules/by-module/Getopt/
268 regex = Getopt-ArgvFile-(__VER__)\.tar\.gz
269 }
270 prog perl-parse:Getopt-Fancy = {
271 version = %{V_getopt_fancy}
272 url = http://www.cpan.org/modules/by-module/Getopt/
273 regex = Getopt-Fancy-(__VER__)\.tar\.gz
274 }
275 prog perl-parse:Getopt-LL = {
276 version = %{V_getopt_ll}
277 url = http://www.cpan.org/modules/by-module/Getopt/
278 regex = Getopt-LL-(__VER__)\.tar\.gz
279 }
281 %prep
282 %setup -q -c
283 %setup -q -T -D -a 1
284 %setup -q -T -D -a 2
285 %setup -q -T -D -a 3
286 %setup -q -T -D -a 4
287 %setup -q -T -D -a 5
288 %setup -q -T -D -a 6
289 %setup -q -T -D -a 7
290 %setup -q -T -D -a 8
291 %setup -q -T -D -a 9
292 %setup -q -T -D -a 10
293 %setup -q -T -D -a 11
294 %setup -q -T -D -a 12
295 %setup -q -T -D -a 13
296 %setup -q -T -D -a 14
297 %setup -q -T -D -a 15
298 %setup -q -T -D -a 16
299 %setup -q -T -D -a 17
300 %setup -q -T -D -a 18
301 %setup -q -T -D -a 19
302 %setup -q -T -D -a 20
303 %setup -q -T -D -a 21
304 %setup -q -T -D -a 22
305 %setup -q -T -D -a 23
306 %setup -q -T -D -a 24
307 %setup -q -T -D -a 25
308 %setup -q -T -D -a 26
309 %setup -q -T -D -a 27
311 %build
313 %install
314 rm -rf $RPM_BUILD_ROOT
315 %{l_prefix}/bin/perl-openpkg prepare
316 %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
317 %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
318 %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
319 %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
320 %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
321 %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
322 %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
323 %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
324 %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
325 %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
326 %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
327 %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
328 %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
329 ( cd ogdlutils-%{V_ogdl}/c
330 %{l_cc} %{l_cflags} -c ogdlparser.c graph.c path.c ogdllog.c
331 ar cr libogdl.a ogdlparser.o graph.o path.o ogdllog.o
332 ) || exit $?
333 %{l_prefix}/bin/perl-openpkg -d ogdlutils-%{V_ogdl}/perl configure build install
334 %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
335 %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
336 %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
337 %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
338 %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
339 %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
340 %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
341 %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
342 %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
343 %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
344 %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
345 %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
346 %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
347 %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
348 %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
349 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
351 %files -f files
353 %clean
354 rm -rf $RPM_BUILD_ROOT