Revision: | 1.19 |
Committed: | Sun Nov 9 23:30:50 2008 UTC (16 years, 5 months ago) by elmer |
Branch: | MAIN |
CVS Tags: | pe20090304b-30Xports-432, pe20090304a-30Xports-432, pe20090226b-30Xports-432, pe20090226a-30Xports-432, pe20090224b-30Xports-432, pe20090224a-30Xports-432, pe20090218a-30Xports-432, pe20090216b-30Xports-432, pe20090216a-30Xports-432, WEBTOOLS-APPS_20090130, WEBTOOLS-APPS_20090129, pe20090127c-30Xports-432, pe20090127b-30Xports-432, pe20090127a-30Xports-432, pe20090125a-30Xports-432, PRODAGENT_0_12_10_20090122, PRODAGENT_0_12_10_pre1_MISC, sw_20090115a, sw_20090115, pe20090114c-ports, pe20090114b-ports, pe20090114a-ports, pe20081213c-30Xports-432, pe20081213c-30Xports, pe20081213b-30Xports, pe20081213a-30Xports, pe20081125d-30Xports-432, pe20081125d-30Xports, pe20081125c-30Xports-432, pe20081125c-30Xports, pe20081125b-30Xports, pe20081125b-30Xports-432, pe20081125a-30Xports, pe20081124d-30Xports, pe20081124c-30Xports, pe20081124b-30Xports, pe20081124a-30Xports, pe20081121b-30Xports, pe20081121a-30Xports, testofc |
Changes since 1.18: | +1 -1 lines |
Log Message: | Remove old-style "-CMS19" from version string, no other change. |
# | User | Rev | Content |
---|---|---|---|
1 | elmer | 1.19 | ### RPM external coin 2.4.4 |
2 | elmer | 1.13 | # Source: ftp://ftp.coin3d.org/pub/coin/src/snapshots/Coin-%realversion.tar.gz |
3 | # Source: cvs://:pserver:cvs@cvs.coin3d.org:2401/export/cvsroot?passwd=Ah<Z&tag=-D%{v}&module=Coin&output=/Coin-%realversion.tar.gz | ||
4 | muzaffar | 1.16 | Source: http://ftp.coin3d.org/coin/src/all/Coin-%realversion.tar.gz |
5 | eulisse | 1.1 | |
6 | eulisse | 1.4 | Patch: coin3d-gcc345 |
7 | Patch2: coin3d-gcc345-2 | ||
8 | Patch3: coin3d-gcc345-3 | ||
9 | |||
10 | muzaffar | 1.16 | %define openinventor_version coin |
11 | ## INITENV SET OPENINVENTOR_VERSION %openinventor_version | ||
12 | |||
13 | eulisse | 1.1 | %prep |
14 | elmer | 1.13 | %setup -n Coin-%realversion |
15 | eulisse | 1.4 | %patch |
16 | %patch2 | ||
17 | %patch3 | ||
18 | elmer | 1.10 | # The following things cause problems with gcc4.1.1. It is fixed in |
19 | # Coin version 2.4.5, so if we ever move to that, the next 2 lines can | ||
20 | # be removed | ||
21 | perl -p -i -e "s|SelectionState::SelectionState|SelectionState|g" src/nodes/SoExtSelection.cpp | ||
22 | perl -p -i -e "s|SelectionState::~SelectionState|~SelectionState|g" src/nodes/SoExtSelection.cpp | ||
23 | |||
24 | eulisse | 1.1 | %build |
25 | elmer | 1.14 | cfgflags=; |
26 | case $(uname)-$(uname -p) in | ||
27 | Linux-x86_64) | ||
28 | cfgflags="-x-libraries=/usr/X11R6/lib64";; | ||
29 | Linux-i*86) | ||
30 | cfgflags="-x-libraries=/usr/X11R6/lib";; | ||
31 | Darwin*) | ||
32 | cfgflags="-without-framework --without-x";; | ||
33 | esac | ||
34 | eulisse | 1.1 | ./configure --prefix=%i $cfgflags --disable-libtool-lock --disable-dependency-tracking |
35 | eulisse | 1.2 | make %makeprocesses |
36 | muzaffar | 1.16 | |
37 | %install | ||
38 | make install | ||
39 | # SCRAM ToolBox toolfile | ||
40 | mkdir -p %i/etc/scram.d | ||
41 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n | ||
42 | <doc type=BuildSystem::ToolDoc version=1.0> | ||
43 | <Tool name=Coin version=%v> | ||
44 | <info url=http://www.coin3d.org></info> | ||
45 | <lib name=Coin> | ||
46 | <Client> | ||
47 | <Environment name=COIN3D_BASE default="%i"></Environment> | ||
48 | <Environment name=LIBDIR default="$COIN3D_BASE/lib"></Environment> | ||
49 | <Environment name=INCLUDE default="$COIN3D_BASE/include"></Environment> | ||
50 | </Client> | ||
51 | <use name=OpenGL> | ||
52 | </Tool> | ||
53 | EOF_TOOLFILE | ||
54 | cat << \EOF_TOOLFILE >%i/etc/scram.d/openinventor | ||
55 | <doc type=BuildSystem::ToolDoc version=1.0> | ||
56 | <Tool name=OpenInventor version=%openinventor_version> | ||
57 | <use name=Coin> | ||
58 | </Tool> | ||
59 | EOF_TOOLFILE | ||
60 | |||
61 | eulisse | 1.6 | %post |
62 | %{relocateConfig}bin/coin-config | ||
63 | %{relocateConfig}lib/libCoin.la | ||
64 | muzaffar | 1.16 | %{relocateConfig}etc/scram.d/%n |
65 | elmer | 1.13 | |
66 |