Fri, 09 Jan 2009 17:14:32 +0100
Repackage using reduced source list as some are no longer available.
1 ##
2 ## perl-sys.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_unix_syslog 1.1
27 %define V_archive_tar 1.42
28 %define V_archive_zip 1.26
29 %define V_archive_cpio 0.07
30 %define V_expect 1.21
31 %define V_storable 2.18
32 %define V_ipc_sharelite 0.13
33 %define V_ipc_shareable 0.60
34 %define V_ipc_sharedcache 1.3
35 %define V_ipc_run 0.82
36 %define V_ipc_run3 0.042
37 %define V_ipc_signal 1.00
38 %define V_ipc_filter 0.002
39 %define V_file_tail 0.99.3
40 %define V_file_temp 0.21
41 %define V_file_remove 1.42
42 %define V_file_rename 0.05
43 %define V_freezethaw 0.43
44 %define V_authen_sasl 2.12
45 %define V_authen_pam 0.16
46 %define V_weakref 0.01
47 %define V_filehandle_deluxe 0.92
48 %define V_filehandle_unget 0.1622
49 %define V_spiffy 0.30
50 %define V_io 1.2301
51 %define V_io_all 0.39
52 %define V_io_multiplex 1.10
53 %define V_io_interface 1.05
54 %define V_io_util 1.5
55 %define V_io_mux 0.08
56 %define V_boulder 1.30
57 %define V_error 0.17015
58 %define V_file_fnmatch 0.02
59 %define V_user 1.8
60 %define V_file_rsync 0.42
62 # package information
63 Name: perl-sys
64 Summary: Perl Modules for use with the system
65 URL: http://www.cpan.org/
66 Vendor: Perl Community
67 Packager: OpenPKG Foundation e.V.
68 Distribution: OpenPKG Community
69 Class: BASE
70 Group: Perl
71 License: GPL/Artistic
72 Version: %{V_perl}
73 Release: 20090106
75 # package options
76 %option with_pam no
78 # list of sources
79 Source0: http://www.cpan.org/modules/by-module/Unix/Unix-Syslog-%{V_unix_syslog}.tar.gz
80 Source1: http://www.cpan.org/modules/by-module/Archive/Archive-Tar-%{V_archive_tar}.tar.gz
81 Source2: http://www.cpan.org/modules/by-module/Archive/Archive-Zip-%{V_archive_zip}.tar.gz
82 Source3: http://www.cpan.org/modules/by-module/Expect/Expect-%{V_expect}.tar.gz
83 Source4: http://www.cpan.org/modules/by-module/Storable/Storable-%{V_storable}.tar.gz
84 Source5: http://www.cpan.org/modules/by-module/IPC/IPC-Shareable-%{V_ipc_shareable}.tar.gz
85 Source6: http://www.cpan.org/modules/by-module/File/File-Tail-%{V_file_tail}.tar.gz
86 Source7: http://www.cpan.org/modules/by-module/FreezeThaw/FreezeThaw-%{V_freezethaw}.tar.gz
87 Source8: http://www.cpan.org/modules/by-module/Authen/Authen-SASL-%{V_authen_sasl}.tar.gz
88 Source9: http://www.cpan.org/authors/id/L/LU/LUKKA/WeakRef-%{V_weakref}.tar.gz
89 Source10: http://www.cpan.org/modules/by-module/FileHandle/FileHandle-Deluxe-%{V_filehandle_deluxe}.tar.gz
90 Source11: http://www.cpan.org/modules/by-module/FileHandle/FileHandle-Unget-%{V_filehandle_unget}.tar.gz
91 Source12: http://www.cpan.org/modules/by-module/IPC/IPC-ShareLite-%{V_ipc_sharelite}.tar.gz
92 Source13: http://www.cpan.org/modules/by-module/IPC/IPC-SharedCache-%{V_ipc_sharedcache}.tar.gz
93 Source14: http://www.cpan.org/modules/by-module/IPC/IPC-Run-%{V_ipc_run}.tar.gz
94 Source15: http://www.cpan.org/modules/by-module/IPC/IPC-Signal-%{V_ipc_signal}.tar.gz
95 Source16: http://www.cpan.org/modules/by-module/IPC/IPC-Filter-%{V_ipc_filter}.tar.gz
96 Source17: http://www.cpan.org/authors/id/I/IN/INGY/Spiffy-%{V_spiffy}.tar.gz
97 Source18: http://www.cpan.org/modules/by-module/IO/IO-%{V_io}.tar.gz
98 Source19: http://www.cpan.org/modules/by-module/IO/IO-All-%{V_io_all}.tar.gz
99 Source20: http://www.cpan.org/modules/by-module/IO/IO-Multiplex-%{V_io_multiplex}.tar.gz
100 Source21: http://www.cpan.org/modules/by-module/IO/IO-Interface-%{V_io_interface}.tar.gz
101 Source22: http://www.cpan.org/modules/by-module/IO/IO-Util-%{V_io_util}.tar.gz
102 Source23: http://www.cpan.org/modules/by-module/Boulder/Boulder-%{V_boulder}.tar.gz
103 Source24: http://www.cpan.org/modules/by-module/Error/Error-%{V_error}.tar.gz
104 Source25: http://www.cpan.org/modules/by-module/IPC/IPC-Run3-%{V_ipc_run3}.tar.gz
105 Source26: http://www.cpan.org/modules/by-module/IO/IO-Mux-%{V_io_mux}.tar.gz
106 Source27: http://www.cpan.org/modules/by-module/File/File-FnMatch-%{V_file_fnmatch}.tar.gz
107 Source28: http://www.cpan.org/modules/by-module/Authen/Authen-PAM-%{V_authen_pam}.tar.gz
108 Source29: http://www.cpan.org/modules/by-module/Archive/Archive-Cpio-%{V_archive_cpio}.tar.gz
109 Source30: http://www.cpan.org/authors/id/T/TB/TBONE/User-%{V_user}.tar.gz
110 Source31: http://www.cpan.org/modules/by-module/File/File-Temp-%{V_file_temp}.tar.gz
111 Source32: http://www.cpan.org/modules/by-module/File/File-Remove-%{V_file_remove}.tar.gz
112 Source33: http://www.cpan.org/modules/by-module/File/File-Rename-%{V_file_rename}.tar.gz
113 Source34: http://www.cpan.org/modules/by-module/File/File-Rsync-%{V_file_rsync}.tar.gz
114 Patch0: perl-sys.patch
116 # build information
117 Prefix: %{l_prefix}
118 BuildRoot: %{l_buildroot}
119 BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
120 PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
121 BuildPreReq: perl-time, perl-term
122 PreReq: perl-time, perl-term
123 %if "%{with_pam}" == "yes"
124 BuildPreReq: PAM
125 PreReq: PAM
126 %endif
127 AutoReq: no
128 AutoReqProv: no
130 %description
131 Perl modules for use with the system:
132 - Unix::Syslog (%{V_unix_syslog})
133 - Archive::Tar (%{V_archive_tar})
134 - Expect (%{V_expect})
135 - Storable (%{V_storable})
136 - IPC::ShareLite (%{V_ipc_sharelite})
137 - IPC::Shareable (%{V_ipc_shareable})
138 - IPC::SharedCache (%{V_ipc_sharedcache})
139 - IPC::Run (%{V_ipc_run})
140 - IPC::Run3 (%{V_ipc_run3})
141 - IPC::Signal (%{V_ipc_signal})
142 - IPC::Filter (%{V_ipc_filter})
143 - File::Tail (%{V_file_tail})
144 - FreezeThaw (%{V_freezethaw})
145 - Authen::SASL (%{V_authen_sasl})
146 - Authen::PAM (%{V_authen_pam}) [with_pam=yes]
147 - Archive::Zip (%{V_archive_zip})
148 - WeakRef (%{V_weakref})
149 - FileHandle::Deluxe (%{V_filehandle_deluxe})
150 - FileHandle::Unget (%{V_filehandle_unget})
151 - Spiffy (%{V_spiffy})
152 - IO (%{V_io})
153 - IO::All (%{V_io_all})
154 - IO::Multiplex (%{V_io_multiplex})
155 - IO::Interface (%{V_io_interface})
156 - IO::Util (%{V_io_util})
157 - IO::Mux (%{V_io_mux})
158 - Boulder (%{V_boulder})
159 - Error (%{V_error})
160 - File::FnMatch (%{V_file_fnmatch})
161 - Archive::Cpio (%{V_archive_cpio})
162 - User (%{V_user})
163 - File::Temp (%{V_file_temp})
164 - File::Remove (%{V_file_remove})
165 - File::Rename (%{V_file_rename})
166 - File::Rsync (%{V_file_rsync})
168 %track
169 prog perl-sys:Archive-Tar = {
170 version = %{V_archive_tar}
171 url = http://www.cpan.org/modules/by-module/Archive/
172 regex = Archive-Tar-(__VER__)\.tar\.gz
173 }
174 prog perl-sys:Archive-Zip = {
175 version = %{V_archive_zip}
176 url = http://www.cpan.org/modules/by-module/Archive/
177 regex = Archive-Zip-(__VER__)\.tar\.gz
178 }
179 prog perl-sys:Authen-SASL = {
180 version = %{V_authen_sasl}
181 url = http://www.cpan.org/modules/by-module/Authen/
182 regex = Authen-SASL-(__VER__)\.tar\.gz
183 }
184 prog perl-sys:Expect = {
185 version = %{V_expect}
186 url = http://www.cpan.org/modules/by-module/Expect/
187 regex = Expect-(__VER__)\.tar\.gz
188 }
189 prog perl-sys:File-Tail = {
190 version = %{V_file_tail}
191 url = http://www.cpan.org/modules/by-module/File/
192 regex = File-Tail-(__VER__)\.tar\.gz
193 }
194 prog perl-sys:FileHandle-Deluxe = {
195 version = %{V_filehandle_deluxe}
196 url = http://www.cpan.org/modules/by-module/FileHandle/
197 regex = FileHandle-Deluxe-(__VER__)\.tar\.gz
198 }
199 prog perl-sys:FileHandle-Unget = {
200 version = %{V_filehandle_unget}
201 url = http://www.cpan.org/modules/by-module/FileHandle/
202 regex = FileHandle-Unget-(__VER__)\.tar\.gz
203 }
204 prog perl-sys:FreezeThaw = {
205 version = %{V_freezethaw}
206 url = http://www.cpan.org/modules/by-module/FreezeThaw/
207 regex = FreezeThaw-(__VER__)\.tar\.gz
208 }
209 prog perl-sys:IPC-Shareable = {
210 version = %{V_ipc_shareable}
211 url = http://www.cpan.org/modules/by-module/IPC/
212 regex = IPC-Shareable-(__VER__)\.tar\.gz
213 }
214 prog perl-sys:IPC-ShareLite = {
215 version = %{V_ipc_sharelite}
216 url = http://www.cpan.org/modules/by-module/IPC/
217 regex = IPC-ShareLite-(__VER__)\.tar\.gz
218 }
219 prog perl-sys:IPC-SharedCache = {
220 version = %{V_ipc_sharedcache}
221 url = http://www.cpan.org/modules/by-module/IPC/
222 regex = IPC-SharedCache-(__VER__)\.tar\.gz
223 }
224 prog perl-sys:IPC-Run = {
225 version = %{V_ipc_run}
226 url = http://www.cpan.org/modules/by-module/IPC/
227 regex = IPC-Run-(__VER__)\.tar\.gz
228 }
229 prog perl-sys:IPC-Run3 = {
230 version = %{V_ipc_run3}
231 url = http://www.cpan.org/modules/by-module/IPC/
232 regex = IPC-Run3-(__VER__)\.tar\.gz
233 }
234 prog perl-sys:IPC-Signal = {
235 version = %{V_ipc_signal}
236 url = http://www.cpan.org/modules/by-module/IPC/
237 regex = IPC-Signal-(__VER__)\.tar\.gz
238 }
239 prog perl-sys:IPC-Filter = {
240 version = %{V_ipc_filter}
241 url = http://www.cpan.org/modules/by-module/IPC/
242 regex = IPC-Filter-(__VER__)\.tar\.gz
243 }
244 prog perl-sys:Storable = {
245 version = %{V_storable}
246 url = http://www.cpan.org/modules/by-module/Storable/
247 regex = Storable-(__VER__)\.tar\.gz
248 }
249 prog perl-sys:Unix-Syslog = {
250 version = %{V_unix_syslog}
251 url = http://www.cpan.org/modules/by-module/Unix/
252 regex = Unix-Syslog-(__VER__)\.tar\.gz
253 }
254 prog perl-sys:WeakRef = {
255 version = %{V_weakref}
256 url = http://www.cpan.org/authors/id/L/LU/LUKKA/
257 regex = WeakRef-(__VER__)\.tar\.gz
258 }
259 prog perl-sys:Spiffy = {
260 version = %{V_spiffy}
261 url = http://www.cpan.org/authors/id/I/IN/INGY/
262 regex = Spiffy-(__VER__)\.tar\.gz
263 }
264 prog perl-sys:IO = {
265 version = %{V_io}
266 url = http://www.cpan.org/modules/by-module/IO/
267 regex = \bIO-(__VER__)\.tar\.gz
268 }
269 prog perl-sys:IO-All = {
270 version = %{V_io_all}
271 url = http://www.cpan.org/modules/by-module/IO/
272 regex = IO-All-(__VER__)\.tar\.gz
273 }
274 prog perl-sys:IO-Multiplex = {
275 version = %{V_io_multiplex}
276 url = http://www.cpan.org/modules/by-module/IO/
277 regex = IO-Multiplex-(__VER__)\.tar\.gz
278 }
279 prog perl-sys:IO-Interface = {
280 version = %{V_io_interface}
281 url = http://www.cpan.org/modules/by-module/IO/
282 regex = IO-Interface-(__VER__)\.tar\.gz
283 }
284 prog perl-sys:IO-Util = {
285 version = %{V_io_util}
286 url = http://www.cpan.org/modules/by-module/IO/
287 regex = IO-Util-(__VER__)\.tar\.gz
288 }
289 prog perl-sys:IO-Mux = {
290 version = %{V_io_mux}
291 url = http://www.cpan.org/modules/by-module/IO/
292 regex = IO-Mux-(__VER__)\.tar\.gz
293 }
294 prog perl-sys:Boulder = {
295 version = %{V_boulder}
296 url = http://www.cpan.org/modules/by-module/Boulder/
297 regex = Boulder-(__VER__)\.tar\.gz
298 }
299 prog perl-sys:Error = {
300 version = %{V_error}
301 url = http://www.cpan.org/modules/by-module/Error/
302 regex = Error-(__VER__)\.tar\.gz
303 }
304 prog perl-sys:File-FnMatch = {
305 version = %{V_file_fnmatch}
306 url = http://www.cpan.org/modules/by-module/File/
307 regex = File-FnMatch-(__VER__)\.tar\.gz
308 }
309 prog perl-sys:Authen-PAM = {
310 version = %{V_authen_pam}
311 url = http://www.cpan.org/modules/by-module/Authen/
312 regex = Authen-PAM-(__VER__)\.tar\.gz
313 }
314 prog perl-sys:Archive-Cpio = {
315 version = %{V_archive_cpio}
316 url = http://www.cpan.org/modules/by-module/Archive/
317 regex = Archive-Cpio-(__VER__)\.tar\.gz
318 }
319 prog perl-sys:User = {
320 version = %{V_user}
321 url = http://www.cpan.org/authors/id/T/TB/TBONE/
322 regex = User-(__VER__)\.tar\.gz
323 }
324 prog perl-sys:File-Temp = {
325 version = %{V_file_temp}
326 url = http://www.cpan.org/modules/by-module/File/
327 regex = File-Temp-(__VER__)\.tar\.gz
328 }
329 prog perl-sys:File-Remove = {
330 version = %{V_file_remove}
331 url = http://www.cpan.org/modules/by-module/File/
332 regex = File-Remove-(__VER__)\.tar\.gz
333 }
334 prog perl-sys:File-Rename = {
335 version = %{V_file_rename}
336 url = http://www.cpan.org/modules/by-module/File/
337 regex = File-Rename-(__VER__)\.tar\.gz
338 }
339 prog perl-sys:File-Rsync = {
340 version = %{V_file_rsync}
341 url = http://www.cpan.org/modules/by-module/File/
342 regex = File-Rsync-(__VER__)\.tar\.gz
343 }
345 %prep
346 %setup -q -c
347 %setup -q -T -D -a 1
348 %setup -q -T -D -a 2
349 %setup -q -T -D -a 3
350 %setup -q -T -D -a 4
351 %setup -q -T -D -a 5
352 %setup -q -T -D -a 6
353 %setup -q -T -D -a 7
354 %setup -q -T -D -a 8
355 %setup -q -T -D -a 9
356 %setup -q -T -D -a 10
357 %setup -q -T -D -a 11
358 %setup -q -T -D -a 12
359 %setup -q -T -D -a 13
360 %setup -q -T -D -a 14
361 %setup -q -T -D -a 15
362 %setup -q -T -D -a 16
363 %setup -q -T -D -a 17
364 %setup -q -T -D -a 18
365 %setup -q -T -D -a 19
366 %setup -q -T -D -a 20
367 %setup -q -T -D -a 21
368 %setup -q -T -D -a 22
369 %setup -q -T -D -a 23
370 %setup -q -T -D -a 24
371 %setup -q -T -D -a 25
372 %setup -q -T -D -a 26
373 %setup -q -T -D -a 27
374 %setup -q -T -D -a 28
375 %setup -q -T -D -a 29
376 %setup -q -T -D -a 30
377 %setup -q -T -D -a 31
378 %setup -q -T -D -a 32
379 %setup -q -T -D -a 33
380 %setup -q -T -D -a 34
381 %patch -p0
383 %build
384 %{l_shtool} subst \
385 -e 's;/usr/local/bin/rsync;%{l_prefix}/bin/rsync;' \
386 -e 's;<STDIN>;"";' \
387 File-Rsync-*/makepm.PL
389 %install
390 rm -rf $RPM_BUILD_ROOT
391 %{l_prefix}/bin/perl-openpkg prepare
392 %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
393 %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
394 %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
395 %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
396 %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
397 %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
398 %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
399 %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
400 %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
401 %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
402 %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
403 %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
404 %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
405 %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
406 %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
407 %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
408 %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
409 %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
410 %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
411 %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
412 %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
413 %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
414 %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
415 %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
416 %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
417 %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
418 %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
419 %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
420 %if "%{with_pam}" == "yes"
421 export CC="%{l_cc}"
422 export CFLAGS="%{l_cflags} -I`%{l_rc} --query pam_incdir`"
423 export CPPFLAGS="%{l_cppflags} -I`%{l_rc} --query pam_incdir`"
424 export LDFLAGS="%{l_ldflags} -L`%{l_rc} --query pam_libdir`"
425 %{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install
426 %endif
427 %{l_prefix}/bin/perl-openpkg -d %{SOURCE29} configure build install
428 %{l_prefix}/bin/perl-openpkg -d %{SOURCE30} configure build install
429 %{l_prefix}/bin/perl-openpkg -d %{SOURCE31} configure build install
430 %{l_prefix}/bin/perl-openpkg -d %{SOURCE32} configure build install
431 %{l_prefix}/bin/perl-openpkg -d %{SOURCE33} configure build install
432 %{l_prefix}/bin/perl-openpkg -d %{SOURCE34} configure build install
433 %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
434 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
436 %files -f files
438 %clean
439 rm -rf $RPM_BUILD_ROOT