added plugins to win32/linux installers; fixed crash when plugins are disabled
[xonotic/netradiant.git] / setup / linux / gtkradiant-1.5.0.spec
1 %define name gtkradiant
2 %define version 1.5.0
3 %define release 5
4 %define installdir /opt/%{name}
5
6 Summary: GtkRadiant Level Editor
7 Name: %{name}
8 Version: %{version}
9 Release: %{release}
10 Group: Applications/Editors
11 Copyright: Id Software
12 URL: www.qeradiant.com
13 Distribution: GtkRadiant
14 Packager: %{packager}
15 Prefix: %{installdir}
16 Source: %{name}-%{version}.tar.gz
17 Requires: gtk2 >= 2.4.0 , gtkglext >= 1.0.0 , libxml2 >= 2.0.0 , zlib >= 1.2.0 , libpng >= 1.2.0 , mhash >= 0.9.0
18 BuildRequires: python >= 2.3.0 , gcc >= 3.0.0 , scons >= 0.96 , gtk2-devel >= 2.4.0 , gtkglext-devel >= 1.0.0 , libxml2-devel >= 2.0.0 , zlib-devel >= 1.2.0 , libpng-devel >= 1.2.0 , mhash-devel >= 0.9.0
19
20 %description
21 GtkRadiant is a cross-platform level editor for games based on Id Software
22 technology.
23
24 %prep
25 %setup -q
26
27 %build
28 scons BUILD="release" SETUP="0"
29
30 %install
31 echo $RPM_BUILD_ROOT/
32 rm -rf $RPM_BUILD_ROOT%{installdir}
33 mkdir -p $RPM_BUILD_ROOT%{installdir}
34
35 cp install/radiant.x86 $RPM_BUILD_ROOT%{installdir}
36 cp install/q3map2.x86 $RPM_BUILD_ROOT%{installdir}
37 cp install/q2map $RPM_BUILD_ROOT%{installdir}
38 cp setup/linux/bspc $RPM_BUILD_ROOT%{installdir}
39 cp setup/links.htm $RPM_BUILD_ROOT%{installdir}
40 cp setup/credits.html $RPM_BUILD_ROOT%{installdir}
41 cp setup/changelog.txt $RPM_BUILD_ROOT%{installdir}
42 cp setup/license.txt $RPM_BUILD_ROOT%{installdir}
43 cp setup/data/tools/global.xlink $RPM_BUILD_ROOT%{installdir}
44 mkdir $RPM_BUILD_ROOT%{installdir}/gl
45 cp setup/data/tools/gl/lighting_DBS_omni_fp.glsl $RPM_BUILD_ROOT%{installdir}/gl
46 cp setup/data/tools/gl/lighting_DBS_omni_vp.glsl $RPM_BUILD_ROOT%{installdir}/gl
47 cp setup/data/tools/gl/zfill_fp.glsl $RPM_BUILD_ROOT%{installdir}/gl
48 cp setup/data/tools/gl/zfill_vp.glsl $RPM_BUILD_ROOT%{installdir}/gl
49 cp setup/data/tools/gl/lighting_DBS_omni_fp.glp $RPM_BUILD_ROOT%{installdir}/gl
50 cp setup/data/tools/gl/lighting_DBS_omni_vp.glp $RPM_BUILD_ROOT%{installdir}/gl
51 cp setup/data/tools/gl/zfill_fp.glp $RPM_BUILD_ROOT%{installdir}/gl
52 cp setup/data/tools/gl/zfill_vp.glp $RPM_BUILD_ROOT%{installdir}/gl
53 cp include/RADIANT_MINOR $RPM_BUILD_ROOT%{installdir}
54 cp include/RADIANT_MAJOR $RPM_BUILD_ROOT%{installdir}
55 mkdir $RPM_BUILD_ROOT%{installdir}/et.game
56 mkdir $RPM_BUILD_ROOT%{installdir}/et.game/etmain
57 cp games/ETPack/et.game/etmain/default_shaderlist.txt $RPM_BUILD_ROOT%{installdir}/et.game/etmain
58 cp games/ETPack/et.game/etmain/et_entities.def $RPM_BUILD_ROOT%{installdir}/et.game/etmain
59 cp games/ETPack/et.game/etmain/et_entities.ent $RPM_BUILD_ROOT%{installdir}/et.game/etmain
60 cp games/ETPack/et.game/game.xlink $RPM_BUILD_ROOT%{installdir}/et.game
61 cp games/ETPack/et.game/default_build_menu.xml $RPM_BUILD_ROOT%{installdir}/et.game
62 mkdir $RPM_BUILD_ROOT%{installdir}/et.game/bitmaps
63 cp games/ETPack/et.game/bitmaps/splash.bmp $RPM_BUILD_ROOT%{installdir}/et.game/bitmaps
64 cp games/ETPack/et.game/default_build_menu.txt $RPM_BUILD_ROOT%{installdir}/et.game/bitmaps
65 mkdir $RPM_BUILD_ROOT%{installdir}/games
66 cp games/ETPack/games/et.game $RPM_BUILD_ROOT%{installdir}/games
67 cp games/Q1Pack/games/q1.game $RPM_BUILD_ROOT%{installdir}/games
68 cp games/Q2Pack/games/q2.game $RPM_BUILD_ROOT%{installdir}/games
69 cp games/Q3Pack/tools/games/q3.game $RPM_BUILD_ROOT%{installdir}/games
70 cp games/Doom3Pack/tools/games/doom3.game $RPM_BUILD_ROOT%{installdir}/games
71 cp games/Q4Pack/tools/games/q4.game $RPM_BUILD_ROOT%{installdir}/games
72 cp games/JAPack/Tools/games/ja.game $RPM_BUILD_ROOT%{installdir}/games
73 cp games/NexuizPack/games/nexuiz.game $RPM_BUILD_ROOT%{installdir}/games
74 cp games/DarkPlacesPack/games/darkplaces.game $RPM_BUILD_ROOT%{installdir}/games
75 mkdir $RPM_BUILD_ROOT%{installdir}/modules
76 cp install/modules/entity.so $RPM_BUILD_ROOT%{installdir}/modules
77 cp install/modules/model.so $RPM_BUILD_ROOT%{installdir}/modules
78 cp install/modules/shaders.so $RPM_BUILD_ROOT%{installdir}/modules
79 cp install/modules/vfspk3.so $RPM_BUILD_ROOT%{installdir}/modules
80 cp install/modules/archivepak.so $RPM_BUILD_ROOT%{installdir}/modules
81 cp install/modules/mapxml.so $RPM_BUILD_ROOT%{installdir}/modules
82 cp install/modules/md3model.so $RPM_BUILD_ROOT%{installdir}/modules
83 cp install/modules/image.so $RPM_BUILD_ROOT%{installdir}/modules
84 cp install/modules/imagehl.so $RPM_BUILD_ROOT%{installdir}/modules
85 cp install/modules/archivezip.so $RPM_BUILD_ROOT%{installdir}/modules
86 cp install/modules/imagepng.so $RPM_BUILD_ROOT%{installdir}/modules
87 cp install/modules/imageq2.so $RPM_BUILD_ROOT%{installdir}/modules
88 cp install/modules/mapq3.so $RPM_BUILD_ROOT%{installdir}/modules
89 cp install/modules/archivewad.so $RPM_BUILD_ROOT%{installdir}/modules
90 cp install/plugins/prtview.so $RPM_BUILD_ROOT%{installdir}/prtview
91 cp install/plugins/bobtoolz.so $RPM_BUILD_ROOT%{installdir}/plugins
92 cp install/plugins/bt/*.txt $RPM_BUILD_ROOT%{installdir}/plugins/bt
93 cp install/plugins/bitmaps/bobtoolz_*.bmp $RPM_BUILD_ROOT%{installdir}/plugins/bitmaps
94 mkdir $RPM_BUILD_ROOT%{installdir}/q1.game
95 cp games/Q1Pack/q1.game/default_build_menu.xml $RPM_BUILD_ROOT%{installdir}/q1.game
96 mkdir $RPM_BUILD_ROOT%{installdir}/q1.game/id1
97 cp games/Q1Pack/q1.game/id1/entities.ent $RPM_BUILD_ROOT%{installdir}/q1.game/id1
98 mkdir $RPM_BUILD_ROOT%{installdir}/q2.game
99 cp games/Q2Pack/q2.game/game.xlink $RPM_BUILD_ROOT%{installdir}/q2.game
100 cp games/Q2Pack/q2.game/default_build_menu.xml $RPM_BUILD_ROOT%{installdir}/q2.game
101 mkdir $RPM_BUILD_ROOT%{installdir}/q2.game/baseq2
102 cp games/Q2Pack/q2.game/baseq2/entities.def $RPM_BUILD_ROOT%{installdir}/q2.game/baseq2
103 mkdir $RPM_BUILD_ROOT%{installdir}/q3.game
104 cp games/Q3Pack/tools/q3.game/game.xlink $RPM_BUILD_ROOT%{installdir}/q3.game
105 cp games/Q3Pack/tools/q3.game/default_build_menu.xml $RPM_BUILD_ROOT%{installdir}/q3.game
106 mkdir $RPM_BUILD_ROOT%{installdir}/q3.game/missionpack
107 cp games/Q3Pack/tools/q3.game/missionpack/default_shaderlist.txt $RPM_BUILD_ROOT%{installdir}/q3.game/missionpack
108 cp games/Q3Pack/tools/q3.game/missionpack/entities-ta.def $RPM_BUILD_ROOT%{installdir}/q3.game/missionpack
109 cp games/Q3Pack/tools/q3.game/missionpack/entities-ta.ent $RPM_BUILD_ROOT%{installdir}/q3.game/missionpack
110 mkdir $RPM_BUILD_ROOT%{installdir}/q3.game/baseq3
111 cp games/Q3Pack/tools/q3.game/baseq3/entities.ent $RPM_BUILD_ROOT%{installdir}/q3.game/baseq3
112 cp games/Q3Pack/tools/q3.game/baseq3/default_shaderlist.txt $RPM_BUILD_ROOT%{installdir}/q3.game/baseq3
113 cp games/Q3Pack/tools/q3.game/baseq3/entities.def $RPM_BUILD_ROOT%{installdir}/q3.game/baseq3
114 mkdir $RPM_BUILD_ROOT%{installdir}/nexuiz.game
115 cp games/NexuizPack/nexuiz.game/game.xlink $RPM_BUILD_ROOT%{installdir}/nexuiz.game
116 cp games/NexuizPack/nexuiz.game/default_build_menu.xml $RPM_BUILD_ROOT%{installdir}/nexuiz.game
117 mkdir $RPM_BUILD_ROOT%{installdir}/nexuiz.game/data
118 cp games/NexuizPack/nexuiz.game/data/default_shaderlist.txt $RPM_BUILD_ROOT%{installdir}/nexuiz.game/data
119 cp games/NexuizPack/nexuiz.game/data/entities.def $RPM_BUILD_ROOT%{installdir}/nexuiz.game/data
120 mkdir $RPM_BUILD_ROOT%{installdir}/darkplaces.game
121 cp games/DarkPlacesPack/darkplaces.game/game.xlink $RPM_BUILD_ROOT%{installdir}/darkplaces.game
122 cp games/DarkPlacesPack/darkplaces.game/default_build_menu.xml $RPM_BUILD_ROOT%{installdir}/darkplaces.game
123 mkdir $RPM_BUILD_ROOT%{installdir}/darkplaces.game/id1
124 cp games/DarkPlacesPack/darkplaces.game/id1/default_shaderlist.txt $RPM_BUILD_ROOT%{installdir}/darkplaces.game/id1
125 cp games/DarkPlacesPack/darkplaces.game/id1/entities.ent $RPM_BUILD_ROOT%{installdir}/darkplaces.game/id1
126 mkdir $RPM_BUILD_ROOT%{installdir}/bitmaps
127 cp setup/data/tools/bitmaps/view_cubicclipping.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
128 cp setup/data/tools/bitmaps/cap_endcap.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
129 cp setup/data/tools/bitmaps/window4.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
130 cp setup/data/tools/bitmaps/splash.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
131 cp setup/data/tools/bitmaps/show_entities.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
132 cp setup/data/tools/bitmaps/selection_selecttouching.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
133 cp setup/data/tools/bitmaps/cap_iendcap.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
134 cp setup/data/tools/bitmaps/patch_wireframe.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
135 cp setup/data/tools/bitmaps/patch_insdel.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
136 cp setup/data/tools/bitmaps/brush_rotatey.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
137 cp setup/data/tools/bitmaps/view_cameraupdate.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
138 cp setup/data/tools/bitmaps/dontselectcurve.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
139 cp setup/data/tools/bitmaps/scalelockz.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
140 cp setup/data/tools/bitmaps/file_open.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
141 cp setup/data/tools/bitmaps/ellipsis.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
142 cp setup/data/tools/bitmaps/brush_rotatez.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
143 cp setup/data/tools/bitmaps/scalelocky.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
144 cp setup/data/tools/bitmaps/dontselectmodel.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
145 cp setup/data/tools/bitmaps/modify_vertices.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
146 cp setup/data/tools/bitmaps/brush_rotatex.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
147 cp setup/data/tools/bitmaps/brush_flipy.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
148 cp setup/data/tools/bitmaps/selection_selectinside.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
149 cp setup/data/tools/bitmaps/patch_weld.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
150 cp setup/data/tools/bitmaps/view_cameratoggle.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
151 cp setup/data/tools/bitmaps/select_mousescale.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
152 cp setup/data/tools/bitmaps/view_change.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
153 cp setup/data/tools/bitmaps/selection_csgsubtract.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
154 cp setup/data/tools/bitmaps/patch_bend.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
155 cp setup/data/tools/bitmaps/window3.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
156 cp setup/data/tools/bitmaps/scalelockx.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
157 cp setup/data/tools/bitmaps/select_mouseresize.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
158 cp setup/data/tools/bitmaps/window1.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
159 cp setup/data/tools/bitmaps/view_clipper.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
160 cp setup/data/tools/bitmaps/logo.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
161 cp setup/data/tools/bitmaps/patch_drilldown.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
162 cp setup/data/tools/bitmaps/texture_lock.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
163 cp setup/data/tools/bitmaps/textures_popup.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
164 cp setup/data/tools/bitmaps/selection_selectpartialtall.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
165 cp setup/data/tools/bitmaps/selection_selectcompletetall.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
166 cp setup/data/tools/bitmaps/window2.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
167 cp setup/data/tools/bitmaps/select_mousetranslate.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
168 cp setup/data/tools/bitmaps/brush_flipx.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
169 cp setup/data/tools/bitmaps/selection_makehollow.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
170 cp setup/data/tools/bitmaps/select_mouserotate.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
171 cp setup/data/tools/bitmaps/selection_csgmerge.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
172 cp setup/data/tools/bitmaps/file_save.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
173 cp setup/data/tools/bitmaps/popup_selection.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
174 cp setup/data/tools/bitmaps/cap_bevel.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
175 cp setup/data/tools/bitmaps/brush_flipz.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
176 cp setup/data/tools/bitmaps/cap_ibevel.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
177 cp setup/data/tools/bitmaps/curve_cap.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
178 cp setup/data/tools/bitmaps/modify_faces.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
179 cp setup/data/tools/bitmaps/notex.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
180 cp setup/data/tools/bitmaps/modify_edges.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
181 cp setup/data/tools/bitmaps/icon.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
182 cp setup/data/tools/bitmaps/shadernotex.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
183 cp setup/data/tools/bitmaps/patch_showboundingbox.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
184 cp setup/data/tools/bitmaps/view_entity.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
185 cp setup/data/tools/bitmaps/cap_cylinder.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
186 cp setup/data/tools/bitmaps/white.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
187 cp setup/data/tools/bitmaps/black.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
188 cp setup/data/tools/bitmaps/noFalloff.bmp $RPM_BUILD_ROOT%{installdir}/bitmaps
189 mkdir $RPM_BUILD_ROOT%{installdir}/doom3.game
190 cp games/Doom3Pack/tools/doom3.game/default_build_menu.xml $RPM_BUILD_ROOT%{installdir}/doom3.game
191 mkdir $RPM_BUILD_ROOT%{installdir}/q4.game
192 cp games/Q4Pack/tools/q4.game/default_build_menu.xml $RPM_BUILD_ROOT%{installdir}/q4.game
193 mkdir $RPM_BUILD_ROOT%{installdir}/ja.game
194 cp games/JAPack/Tools/ja.game/default_build_menu.xml $RPM_BUILD_ROOT%{installdir}/ja.game
195 cp games/JAPack/Tools/ja.game/game.xlink $RPM_BUILD_ROOT%{installdir}/ja.game
196 mkdir $RPM_BUILD_ROOT%{installdir}/ja.game/base
197 cp games/JAPack/Tools/ja.game/base/mp_entities.def $RPM_BUILD_ROOT%{installdir}/ja.game/base
198 cp games/JAPack/Tools/ja.game/base/sp_entities.def $RPM_BUILD_ROOT%{installdir}/ja.game/base
199 cp games/JAPack/Tools/ja.game/base/default_shaderlist.txt $RPM_BUILD_ROOT%{installdir}/ja.game/base
200
201
202 %clean
203
204 %files
205 %defattr(-,root,root)
206 %{installdir}