perl-sys/perl-sys.spec

Fri, 16 Jan 2009 10:58:21 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2009 10:58:21 +0100
changeset 92
645923d1e875
parent 57
b2ef87c65d24
child 158
f144dd621b72
permissions
-rw-r--r--

Correct and improve code logic, buildconf, and packaging. In particular:
1. Use descriptive variable names <var>libs instead of just <var>.
2. Although Nokia states in all Qt builds that 'NOTE: When linking
against OpenSSL, you can override the default library names
through OPENSSL_LIBS.' and even gives an example, their own
configuration logic rejects such an attempt. Correct this by
hard coding the OpenSSL library string in the configure script.
3. Consistently use the whitespace substitution [\t ] throughout.
4. Patch the buggy INCPATH of SQL plugin Qmake project files.
5. Add the 'x11' configuration variable to the qtconfig Qmake
project using the src/gui/gui.pro file as a model. This is
needed for qtconfig although not in other tools, because
the qtconfig buildconf indirectly includes qt_x11_p.h which
is dependent on X11 headers.
6. Avoid 'ld.so: fatal: hardware capability unsupported: SSE2 AMD_3DNow'
on platforms for which the config.tests/unix/[3dnow|sse2] succeed
although unsopported at run time by testing for the x86-64
instruction set at build time and regulating hardware capabilities.
7. Correctly install the desinger plugin by explicitly building it.
8. Remove custom plugin installation logic which is unnecessary.
9. Correct removal of temporary paths from shared object files.

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

mercurial