ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/bz2lib.spec
Revision: 1.12
Committed: Mon Sep 3 15:28:45 2007 UTC (17 years, 7 months ago) by muzaffar
Branch: MAIN
CVS Tags: CMSSW_1_7_7, dl080227for176, CMSSW_1_7_5_ONLINE1, CMSSW_1_7_5, CMSSW_1_7_5_g491, CMSSW_1_7_5_ONLINE, nr080115onl175, dl080111, ge20080109-webconddb, ge20080109-sitedb, CMSSW_1_7_4, CMSSW_1_7_3_g490p1, dl071212t2, dl071212, CMSSW_1_7_3, CMSSW_1_7_2, CMSSW_1_7_1, nr071121onl170_xdaq5, nr071120_fwlite170_1, CMSSW_1_7_0_ONLINE, CMSSW_1_7_0, nr071116onlpre13, CMSSW_1_7_0_pre13, dl071114, ap20071113, CMSSW_1_7_0_pre12, CMSSW_1_7_0_pre10_ONLINE, CMSSW_1_7_0_pre11, nr071105a, pe20071102a-ports, CMSSW_1_7_0_pre10, CMSSW_1_7_0_pre9, CMSSW_1_7_0_pre8, CMSSW_1_7_0_pre7, dl071028, dl071024, nr071023_fwlite170p6, pe20071023-170p6-amd64, forTony_001, pe20071021-170p6-zlib, dl071021t2, dl071021, pe20071021a-ports, dl071020, nr071017_170p5onl2, CMSSW_1_7_0_pre6, nr071016_170p5onl1, nr071016onl170p5bs, nr071016onl170p5, pe20071015-xrootd, pe20071014-ports, dl071014, dl071010t2, dl071010, dl071009t2, dl071009, CMSSW_1_7_0_pre5, dl070926t2, dl070926, ap-20070926, CMSSW_1_7_0_pre4, dl070921t2, dl070921, dl070920, CMSSW_1_7_0_pre3, dl070916, dl070912, dl070812, sm070912b, sm070912a, sm070911a, dl070909p3, dl070909, CMSSW_1_7_0_pre2, dl070906, dl070905, sm030907a
Changes since 1.11: +17 -1 lines
Log Message:
new spec files for auto generation of toolfile i.e. no need of scramtoolbox

File Contents

# User Rev Content
1 muzaffar 1.12 ### RPM external bz2lib 1.0.2-CMS8
2 eulisse 1.1 # Build system patches by Lassi A. Tuura <lat@iki.fi>
3 elmer 1.9 Source: ftp://sources.redhat.com/pub/bzip2/v%(echo %realversion | tr -d .)/bzip2-%realversion.tar.gz
4 eulisse 1.6 %define cpu %(echo %cmsplatf | cut -f2 -d_)
5 eulisse 1.3 Provides: libbz2.so.1
6 eulisse 1.6 %if "%cpu" == "amd64"
7     Provides: libbz2.so.1()(64bit)
8     %endif
9 eulisse 1.1
10     %prep
11 elmer 1.9 %setup -n bzip2-%realversion
12 eulisse 1.1 sed -e 's/ -shared/ -dynamiclib/' \
13     -e 's/ -Wl,-soname -Wl,[^ ]*//' \
14     -e 's/libbz2\.so/libbz2.dylib/g' \
15     < Makefile-libbz2_so > Makefile-libbz2_dylib
16    
17     %build
18     case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
19 eulisse 1.2 make %makeprocesses -f Makefile-libbz2_$so
20 eulisse 1.1
21     %install
22     case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
23     make install PREFIX=%i
24 elmer 1.9 cp libbz2.$so.%realversion %i/lib
25     ln -s libbz2.$so.%realversion %i/lib/libbz2.$so
26     ln -s libbz2.$so.%realversion %i/lib/libbz2.$so.`echo %realversion | cut -d. -f 1,2`
27     ln -s libbz2.$so.%realversion %i/lib/libbz2.$so.`echo %realversion | cut -d. -f 1`
28    
29 muzaffar 1.12 # SCRAM ToolBox toolfile
30     mkdir -p %i/etc/scram.d
31     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
32     <doc type=BuildSystem::ToolDoc version=1.0>
33     <Tool name=%n version=%v>
34     <info url="http://sources.redhat.com/bzip2/"></info>
35     <lib name=bz2>
36     <Client>
37     <Environment name=BZ2LIB_BASE default="%i"></Environment>
38     <Environment name=LIBDIR default="$BZ2LIB_BASE/lib"></Environment>
39     <Environment name=INCLUDE default="$BZ2LIB_BASE/include"></Environment>
40     </Client>
41     </Tool>
42     EOF_TOOLFILE
43 elmer 1.9
44 muzaffar 1.12 %post
45     %{relocateConfig}etc/scram.d/%n