ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/zlib.spec
(Generate patch)

Comparing COMP/CMSDIST/zlib.spec (file contents):
Revision 1.6 by eulisse, Thu Jul 6 13:08:38 2006 UTC vs.
Revision 1.19 by eulisse, Mon Sep 14 13:27:01 2009 UTC

# Line 1 | Line 1
1 < ### RPM external zlib 1.1.4
2 < Source: http://www.gzip.org/%n/%n-%v.tar.bz2
1 > ### RPM external zlib 1.2.3
2 > Source: http://www.gzip.org/%n/%n-%realversion.tar.bz2
3 > Patch: zlib-1.2.3-shared-for-32-bit-on-x86_64
4 >
5 > %prep
6 > %setup -n %n-%realversion
7 > # Apply this patch to force shared libraries to be created. The problem
8 > # only appears when building 32-bit on 64-bit machines (./configure gets
9 > # confused by the 'skipping /usr/lib64' message), but applying it on all
10 > # linux builds should not hurt since they all should build shared libraries.
11 > %ifos linux
12 > %patch -p1
13 > %endif
14  
15   %build
16 < case $(uname) in
17 <  Darwin )
18 <    LDSHARED="gcc -dynamiclib" ./configure --shared --prefix=%i
19 <    make LIBS='libz.dylib.$(VER)' SHAREDLIB=libz.dylib # FIXME: libz.$(VER).dylib
20 <    ;;
21 <
22 <  * )
23 <    ./configure --shared --prefix=%i
13 <    make %makeprocesses
14 <    ;;
15 < esac
16 > %if "%cmscompiler" == "icc"
17 > %define cfgopts CC="icc -fPIC"
18 > %else
19 > %define cfgopts %nil
20 > %endif
21 >
22 > %cfgopts ./configure --shared --prefix=%i
23 > make %makeprocesses
24  
25   %install
26 < case $(uname) in
27 <  Darwin ) make install LIBS='libz.dylib.$(VER)' SHAREDLIB=libz.dylib ;;
28 <  * ) make install ;;
29 < esac
30 < #
31 < #
26 > make install
27 >
28 > # SCRAM ToolBox toolfile
29 > mkdir -p %i/etc/scram.d
30 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
31 > <doc type=BuildSystem::ToolDoc version=1.0>
32 > <Tool name=%n version=%v>
33 > <lib name=z>
34 > <client>
35 > <Environment name=ZLIB_BASE default="%i"></Environment>
36 > <Environment name=INCLUDE default="$ZLIB_BASE/include"></Environment>
37 > <Environment name=LIBDIR  default="$ZLIB_BASE/lib"></Environment>
38 > </client>
39 > </Tool>
40 > EOF_TOOLFILE
41 >
42 > %post
43 > %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines