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

Comparing COMP/CMSDIST/soqt.spec (file contents):
Revision 1.3 by eulisse, Wed Mar 15 21:37:14 2006 UTC vs.
Revision 1.16 by eulisse, Tue Jan 27 13:21:15 2009 UTC

# Line 1 | Line 1
1 < ### RPM external soqt 1.3.0
2 < # 1.3.0-tgs, 1.3.0-coin (default: coin)
3 < # FIXME: make type part of installation location!
4 < %define soqttype %(echo %v | sed 's/[-0-9.]*//')
5 < %define soqtversion %(echo %v | sed 's/-.*//')
6 < %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 <
1 > ### RPM external soqt 1.4.1
2   Requires: qt
15 %if "%type" == "tgs"
16 Requires: tgsinventorfix
17 %else
3   Requires: coin
4 < %endif
20 <
21 < Source: ftp://ftp.coin3d.org/pub/coin/src/SoQt-%{soqtversion}.tar.gz
4 > Source: ftp://ftp.coin3d.org/pub/coin/src/all/SoQt-%{realversion}.tar.gz
5   # FIXME: forget about the patch for the time being.
6   # I need to ask lassi where to find it.
7   Patch: soqt
8 + Patch1: soqt-ptr-fix
9  
10   %prep
11 < %setup -n SoQt-%{soqtversion}
12 < #%patch0
11 > %setup -n SoQt-%{realversion}
12 > %patch0
13 > %patch1 -p2
14  
15   %build
16 < case $(uname) in
17 <  Darwin ) threads= cfgflags="-without-framework --without-x" ;;
18 <  * )      threads=-pthread cfgflags= ;;
16 > case %cmsplatf in
17 >  osx*) threads= cfgflags="-without-framework --without-x" ;;
18 >  *)      threads=-pthread cfgflags= ;;
19   esac
20  
21 < # Allow Qt location to be overridden from RPM command line
22 < %if "%{?qtpath:set}" == "set"
23 <  QT_ROOT="%qtpath"
24 <  export QT_ROOT
25 < %endif
26 <
27 < case "%type" in
28 <  tgs )
29 <    [ X"%tgspath" = X ] && { echo "%%tgspath not defined" 1>&2; exit 1; }
30 <
31 <    # 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
21 > export QTDIR=$QT_ROOT
22 > export CONFIG_QTLIBS="-L$QT_ROOT/lib -L$COIN_ROOT/lib -lQtCore -lQtGui -lQtOpenGL -lQtDesigner $libs"
23 > export DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH
24 > export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
25 >
26 > which c++
27 > ./configure --prefix=%i --with-coin=$COIN_ROOT \
28 >            --with-qt=$QT_ROOT --disable-dependency-tracking \
29 >            --disable-libtool-lock $cfgflags \
30 >            CXX="c++ $threads"
31 >
32   make %makeprocesses
33 +
34 + %install
35 + make install
36 + # SCRAM ToolBox toolfile
37 + mkdir -p %i/etc/scram.d
38 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
39 + <doc type=BuildSystem::ToolDoc version=1.0>
40 + <Tool name=SoQt version=%v>
41 + <info url=http://www.coin3d.org></info>
42 + <Lib name=SoQt>
43 + <Client>                                                                                  
44 + <Environment name=SOQT_BASE default="%i"></Environment>
45 + <Environment name=LIBDIR default="$SOQT_BASE/lib"></Environment>
46 + <Environment name=INCLUDE default="$SOQT_BASE/include"></Environment>
47 + </Client>
48 + <use name=OpenInventor>
49 + <use name=Qt>                                                                        
50 + </Tool>
51 + EOF_TOOLFILE
52 +
53 + %post
54 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines