ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/bz2lib.spec
Revision: 1.7
Committed: Wed Apr 18 23:46:01 2007 UTC (18 years ago) by ratnik
Branch: MAIN
CVS Tags: pe20070428a-ports, pe20070423b-ports, pe20070423a-ports
Changes since 1.6: +2 -0 lines
Log Message:
Changes for building  externals in 64/32 mode: added gcc-wrapper .

File Contents

# Content
1 ### RPM external bz2lib 1.0.2
2 Requires: gcc-wrapper
3 # Build system patches by Lassi A. Tuura <lat@iki.fi>
4 Source: ftp://sources.redhat.com/pub/bzip2/v%(echo %v | tr -d .)/bzip2-%v.tar.gz
5 %define cpu %(echo %cmsplatf | cut -f2 -d_)
6 Provides: libbz2.so.1
7 %if "%cpu" == "amd64"
8 Provides: libbz2.so.1()(64bit)
9 %endif
10
11 %prep
12 %setup -n bzip2-%v
13 sed -e 's/ -shared/ -dynamiclib/' \
14 -e 's/ -Wl,-soname -Wl,[^ ]*//' \
15 -e 's/libbz2\.so/libbz2.dylib/g' \
16 < Makefile-libbz2_so > Makefile-libbz2_dylib
17
18 %build
19 ## IMPORT gcc-wrapper
20 case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
21 make %makeprocesses -f Makefile-libbz2_$so
22
23 %install
24 case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
25 make install PREFIX=%i
26 cp libbz2.$so.%v %i/lib
27 ln -s libbz2.$so.%v %i/lib/libbz2.$so
28 ln -s libbz2.$so.%v %i/lib/libbz2.$so.`echo %v | cut -d. -f 1,2`
29 ln -s libbz2.$so.%v %i/lib/libbz2.$so.`echo %v | cut -d. -f 1`
30 # mimetic.spec
31 #