ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/soqt.spec
Revision: 1.11
Committed: Wed Jun 27 12:50:44 2007 UTC (17 years, 10 months ago) by elmer
Branch: MAIN
CVS Tags: nr080626_for1612flt, CMSSW_1_6_12, apFor1612v0, apFor1612p3v0, CMSSW_1_6_12_pre2, apFor1612p2v1, apFor1612p2v0, CMSSW_1_6_12_pre1, apFor1612p1v1, apFor1612p1v0, CMSSW_1_6_11, apFor1611v0, apFor1611p1v1, apFor1611p1v0, CMSSW_1_6_10, apFor1610v0, CMSSW_1_6_10_pre2, CMSSW_1_6_10_pre1, apFor1610p2v0, apFor1610p1v2, CMSSW_1_6_8_FWLITE-root51800, apFor1610p1v1, CMSSW_1_6_9, apFor169v1, CMSSW_1_6_9_pre2, nr080124fwl168a, apFor169p2v2, apFor169p2v1, apFor169p2v0, ap20080116d, ap20080116c, ap20080116b, ap20080116a, ap20080115d, ap20080115c, ap20080115b, ap20080115a, ap20080114b, ap20080114a, CMSSW_1_6_9_pre1, apFor169p1, apFor169p1v5, apFor169p1v4, apFor169p1v3, apFor169p1v2, apFor169p1v1, apFor169p1v0, apFor169v0, CMSSW_1_6_8, CMSSW_1_6_8_pre2_FWLITE-root51706, apFor168, CMSSW_1_6_8_pre2, apFor168p2, CMSSW_1_6_8_pre1, apFor168p1, CMSSW_1_6_7_FWLITE, nr071026_fwlite167, nr071025_fwlite167, CMSSW_1_6_7, pe20071019a-for167, CMSSW_1_6_6, pe20071013a-for166p2, nr20071011-bootstrap, pe20071011a-for166, pe20071009a-for166p1, CMSSW_1_6_5, pe20071006a-for165, CMSSW_1_6_5_pre2, pe20071005a-for165p2, CMSSW_1_6_5_pre1, pe20070930b-for165p1, pe20070930a-for165p1, CMSSW_1_6_4, pe20070929a-for164, nr20070926-bootstrap, CMSSW_1_6_3, pe20070928a-for16Xdpm, pe20070926a-for163, CMSSW_1_6_2, ap-20070925, pe20070925a-for162, CMSSW_1_6_2_pre1, pe20070922a-for162p1, CMSSW_1_6_1, pe20070922g-for161p2, pe20070922f-for161p2, pe20070922e-for161p2, pe20070922d-for161p2, pe20070922c-for161p2, pe20070922b-for161p2, pe20070922a-for161p2, CMSSW_1_6_1_pre1, CMSSW_1_6_0, CMSSW_1_6_0_pre14, pe20070831d-160p14, pe20070831c-160p14, pe20070831b-160p14, pe20070831a-160p14, pe20070830a-160p14, CMSSW_1_7_0_pre1, dl070829, CMSSW_1_6_0_DAQ3, CMSSW_1_6_0_pre13, dl070828t2, dl070828, dl070827, dl070826, pe20070826a-160p13, CMSSW_1_6_0_pre12, dl070824, pe20070824b-160p12, pe20070824-160p12, pe20070823-160p12, CMSSW_1_6_0_pre11, CMSSW_1_6_0_pre10, ge20070810-ptc, CMSSW_1_6_0_pre9, CMSSW_1_6_0_pre8, CMSSW_1_6_0_pre7, dl070730, cms160daq1_zhen2, cms160daq1_zhen1, ge20070730-cmsbuild, ge20070729-amd64, CMSSW_1_6_0_pre6, pe20070727-160p6, CMSSW_1_6_0_DAQ1, ge20070726, ge20070724-slc3, nr20070723_fwlite160p5, ap20070723, CMSSW_1_6_0_pre5, dl070721, dl070720_160daq1_1, pe20070720-160daq1, pe20070720-160p5, ge20070718, ge20070717, ap20070717, ge20070713-macosx, ap20070712, ge20070712-migration, ge20070712, ge20070711-prodcommon, CMSSW_1_6_0_pre4, ge20070710-formencode, ge20070709-slc3, ge20070709-macosx, ge20070709a-macosx, ge20070706-macosx, ap20070706, CMSSW_1_6_0_pre3, pe20070705a-160p3, CMSSW_1_6_0_pre2, ge20070705, ge20070704, ge20070703b, pe20070702b-160p3, pe20070702b-160p2, ge20070702-rpm-webtools, CMSSW_1_6_0_pre1, pe20070729b-160p2, pe20070729b-160p1, pe20070729a-160p2, pe20070729a-160p1, pe20070629a-ports, pe20070628e-ports, pe20070628d-ports, pe20070628c-ports, pe20070628b-ports, pe20070628a-ports, pe20070627b-ports, pe20070627a-ports
Changes since 1.10: +1 -1 lines
Log Message:
Update to -CMS3 for full rebuild

File Contents

# User Rev Content
1 elmer 1.11 ### RPM external soqt 1.3.0-CMS3
2 eulisse 1.1 # 1.3.0-tgs, 1.3.0-coin (default: coin)
3 elmer 1.10 # FIXME: make type part of installation location!
4 elmer 1.7 %define soqttype %(echo %realversion | sed 's/[-0-9.]*//')
5     %define soqtversion %(echo %realversion | sed 's/-.*//')
6 eulisse 1.1 %if "%soqttype" == ""
7     %define type coin
8     %else
9     %define type %{soqttype}
10     %endif
11     # define tgspath /some/path
12     # define qtpath /some/path
13    
14     Requires: qt
15     %if "%type" == "tgs"
16     Requires: tgsinventorfix
17     %else
18     Requires: coin
19     %endif
20    
21 elmer 1.8 Source: ftp://ftp.coin3d.org/pub/coin/src/all/SoQt-%{soqtversion}.tar.gz
22 eulisse 1.1 # FIXME: forget about the patch for the time being.
23     # I need to ask lassi where to find it.
24 eulisse 1.3 Patch: soqt
25 eulisse 1.1
26     %prep
27     %setup -n SoQt-%{soqtversion}
28 eulisse 1.4 %patch0
29 eulisse 1.1
30     %build
31     case $(uname) in
32     Darwin ) threads= cfgflags="-without-framework --without-x" ;;
33     * ) threads=-pthread cfgflags= ;;
34     esac
35    
36     # Allow Qt location to be overridden from RPM command line
37     %if "%{?qtpath:set}" == "set"
38     QT_ROOT="%qtpath"
39     export QT_ROOT
40     %endif
41    
42     case "%type" in
43     tgs )
44     [ X"%tgspath" = X ] && { echo "%%tgspath not defined" 1>&2; exit 1; }
45    
46     # FIXME: OpenGL home? (-L, --with-opengl=...)
47     # FIXME: KCC/Linux needs -D__ELF__ -lz -lm
48     # FIXME: KCC/Solaris needs -lm
49     # FIXME: KCC/IRIX needs -lm; CC=$(CXX) CFLAGS=$(CFLAGS) (can't link C++ with KCC --c)
50     # FIXME: Merge CFLAGS/CXXFLAGS to CC/CXX because of abi-changing meaning; zero out the flags
51     # FIXME: Need -DENABLE_NLS -DEHAVE_GETTEXT for GCC 3.x on linuxen?
52     # FIXME: Need --enable-exceptions?
53     # FIXME: Need MAKE=...?
54     # FIXME: Need -pthread / --enable-threads?
55     ./configure --prefix=%i \
56     --with-inventor=%tgspath --without-coin \
57     --with-qt=$QT_ROOT --disable-dependency-tracking \
58     --disable-libtool-lock $cfgflags \
59     LDFLAGS="-L%tgspath" CXX="c++ $threads" \
60     LIBS="-L$TGSINVENTORFIX_ROOT/lib -lTGSInventorFix" ;;
61    
62     coin )
63     ./configure --prefix=%i --with-coin=$COIN_ROOT \
64     --with-qt=$QT_ROOT --disable-dependency-tracking \
65     --disable-libtool-lock $cfgflags \
66     CXX="c++ $threads" ;;
67    
68     * )
69     echo "unknown soqt build type %type" 1>&2
70     exit 1 ;;
71     esac
72 eulisse 1.2 make %makeprocesses