]>
Commit | Line | Data |
---|---|---|
5a9bdbd6 ER |
1 | # TODO |
2 | # - get stuff from fc spec | |
3 | # - cc/cflags | |
4 | # - language bindings | |
11130741 ER |
5 | # |
6 | # Conditional build: | |
7 | %bcond_without java # Java bindings | |
8 | %bcond_without dotnet # .NET bindings | |
9 | %bcond_without python # Python bindings | |
10 | %bcond_without ruby # Ruby bindings | |
11 | %bcond_without php # PHP bindings | |
12 | %bcond_without gui # IceGrid GUI | |
13 | ||
5a9bdbd6 ER |
14 | Summary: The Ice base runtime and services |
15 | Name: ice | |
85d0fae0 | 16 | Version: 3.4.0 |
46b0ec3f | 17 | Release: 0.2 |
5a9bdbd6 | 18 | License: GPL v2 with exceptions (see ICE_LICENSE) |
85d0fae0 | 19 | Group: Applications |
5a9bdbd6 | 20 | Source0: http://www.zeroc.com/download/Ice/3.4/Ice-%{version}.tar.gz |
85d0fae0 | 21 | # Source0-md5: 998b10627ade020cb00f5beb73efc0e0 |
11130741 ER |
22 | # Extracted from http://zeroc.com/download/Ice/3.4/ice-3.4.0-1.src.rpm |
23 | Source1: Ice-rpmbuild-%{version}.tar.gz | |
24 | # Source1-md5: 869cc60645e7e2b4115584a5ab17d1e9 | |
25 | Source2: %{name}gridgui | |
26 | Source3: IceGridAdmin.desktop | |
5a9bdbd6 | 27 | URL: http://www.zeroc.com/ |
85d0fae0 | 28 | Patch0: %{name}-build.patch |
11130741 ER |
29 | Patch1: dont-build-demo-test.patch |
30 | Patch2: java-build.patch | |
46b0ec3f ER |
31 | %{?with_python:BuildRequires: rpm-pythonprov} |
32 | %{?with_ruby:BuildRequires: ruby >= 1:1.8.6} | |
11130741 | 33 | Patch3: jgoodies.patch |
5a9bdbd6 | 34 | BuildRequires: db-cxx-devel |
11130741 ER |
35 | %{?with_java:BuildRequires: db-java-devel} |
36 | %{?with_java:BuildRequires: java-jgoodies-forms} | |
37 | %{?with_java:BuildRequires: java-jgoodies-looks} | |
85d0fae0 | 38 | BuildRequires: mcpp-devel |
11130741 ER |
39 | %{?with_php:BuildRequires: php-devel >= 3:5.0.0} |
40 | BuildRequires: rpmbuild(macros) >= 1.519 | |
5a9bdbd6 ER |
41 | # drop these O/P if not needed |
42 | Provides: Ice | |
43 | Obsoletes: Ice | |
11130741 ER |
44 | # Ice doesn't officially support ppc64 at all; sparc64 doesnt have mono |
45 | ExcludeArch: ppc64 sparc64 | |
85d0fae0 | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
11130741 ER |
48 | # Some file suffixes we need to grab the right stuff for the file lists |
49 | %define soversion 34 | |
50 | ||
85d0fae0 | 51 | %description |
5a9bdbd6 ER |
52 | Ice is a modern alternative to object middleware such as CORBA or |
53 | COM/DCOM/COM+. It is easy to learn, yet provides a powerful network | |
54 | infrastructure for demanding technical applications. It features an | |
55 | object-oriented specification language, easy to use C++, C#, Java, | |
56 | Python, Ruby, PHP, and Visual Basic mappings, a highly efficient | |
57 | protocol, asynchronous method invocation and dispatch, dynamic | |
58 | transport plug-ins, TCP/IP and UDP/IP support, SSL-based security, a | |
59 | firewall solution, and much more. | |
85d0fae0 | 60 | |
61 | %package devel | |
5a9bdbd6 | 62 | Summary: Tools for developing Ice applications in C++ |
85d0fae0 | 63 | Group: Development/Libraries |
64 | Requires: %{name} = %{version}-%{release} | |
5a9bdbd6 ER |
65 | # drop these O/P if not needed |
66 | Provides: Ice-devel | |
67 | Obsoletes: Ice-devel | |
85d0fae0 | 68 | |
69 | %description devel | |
5a9bdbd6 | 70 | Tools for developing Ice applications in C++. |
85d0fae0 | 71 | |
a33c5a13 ER |
72 | %package servers |
73 | Summary: Ice services to run through /etc/rc.d/init.d | |
11130741 | 74 | Group: Development/Tools |
a33c5a13 ER |
75 | Requires(post,preun): /sbin/chkconfig |
76 | Requires: %{name} = %{version}-%{release} | |
77 | Requires: rc-scripts | |
11130741 | 78 | |
a33c5a13 ER |
79 | %description servers |
80 | Ice services to run through /etc/rc.d/init.d | |
11130741 | 81 | |
a33c5a13 | 82 | %package -n icegrid-gui |
11130741 | 83 | Summary: IceGrid Admin Tool |
11130741 | 84 | Group: Development/Tools |
11130741 | 85 | Requires: %{name} = %{version}-%{release} |
a33c5a13 ER |
86 | Requires: java-%{name} = %{version}-%{release} |
87 | Requires: java-jgoodies-forms | |
88 | Requires: java-jgoodies-looks | |
89 | Requires: jpackage-utils | |
90 | ||
91 | %description -n icegrid-gui | |
92 | Graphical administration tool for IceGrid | |
93 | ||
94 | %package -n java-%{name} | |
95 | Summary: The Ice runtime for Java | |
96 | Group: Libraries/Java | |
11130741 | 97 | Requires: %{name} = %{version}-%{release} |
a33c5a13 | 98 | Requires: db-java |
11130741 | 99 | Requires: jpackage-utils |
11130741 | 100 | |
a33c5a13 ER |
101 | %description -n java-%{name} |
102 | The Ice runtime for Java | |
11130741 | 103 | |
a33c5a13 ER |
104 | %package -n csharp-%{name} |
105 | Summary: The Ice runtime for C# | |
106 | Group: Libraries | |
107 | Requires: %{name} = %{version}-%{release} | |
108 | Requires: mono >= 1.2.2 | |
11130741 | 109 | |
a33c5a13 ER |
110 | %description -n csharp-%{name} |
111 | The Ice runtime for C# | |
11130741 | 112 | |
a33c5a13 | 113 | %package -n ruby-%{name} |
11130741 | 114 | Summary: The Ice runtime for Ruby applications |
a33c5a13 | 115 | Group: Development/Languages |
11130741 | 116 | Requires: %{name} = %{version}-%{release} |
46b0ec3f | 117 | %{?ruby_mod_ver_requires_eq} |
11130741 | 118 | |
a33c5a13 | 119 | %description -n ruby-%{name} |
11130741 ER |
120 | The Ice runtime for Ruby applications. |
121 | ||
a33c5a13 | 122 | %package -n python-%{name} |
11130741 | 123 | Summary: The Ice runtime for Python applications |
a33c5a13 | 124 | Group: Development/Languages/Python |
11130741 | 125 | Requires: %{name} = %{version}-%{release} |
a33c5a13 | 126 | Requires: python >= 1:2.3.4 |
11130741 | 127 | |
a33c5a13 | 128 | %description -n python-%{name} |
11130741 ER |
129 | The Ice runtime for Python applications. |
130 | ||
a33c5a13 | 131 | %package -n php-%{name} |
11130741 | 132 | Summary: The Ice runtime for PHP applications |
a33c5a13 | 133 | Group: Development/Languages/PHP |
11130741 ER |
134 | Requires: %{name} = %{version}-%{release} |
135 | %{?requires_php_extension} | |
136 | ||
a33c5a13 | 137 | %description -n php-%{name} |
11130741 ER |
138 | The Ice runtime for PHP applications. |
139 | ||
85d0fae0 | 140 | %prep |
11130741 | 141 | %setup -q -n Ice-%{version} -a 1 |
85d0fae0 | 142 | %patch0 -p0 |
11130741 ER |
143 | %patch1 -p1 |
144 | %patch2 -p1 | |
145 | %patch3 -p1 | |
85d0fae0 | 146 | |
147 | %build | |
11130741 ER |
148 | |
149 | # Compile the main Ice runtime | |
150 | # TODO: CC/CXX passing as make param breaks build system | |
151 | %{__make} -C cpp \ | |
152 | CFLAGS="%{rpmcflags} -fPIC" \ | |
153 | CXXFLAGS="%{rpmcxxflags} -fPIC" \ | |
154 | embedded_runpath_prefix="" | |
155 | ||
156 | %if %{with java} | |
157 | # Set the CLASSPATH correctly for the Java compile | |
158 | export CLASSPATH=$(build-classpath db jgoodies-forms jgoodies-looks) | |
159 | ||
160 | # Rebuild the Java ImportKey class | |
161 | cd cpp/src/ca | |
162 | rm *.class | |
163 | javac ImportKey.java | |
164 | cd - | |
165 | ||
166 | %{__make} -C java \ | |
167 | CFLAGS="%{rpmcflags} -fPIC" \ | |
168 | CXXFLAGS="%{rpmcxxflags} -fPIC" \ | |
169 | embedded_runpath_prefix="" | |
170 | ||
171 | # Create the IceGrid icon | |
172 | cd java/resources/icons | |
173 | convert icegrid.ico temp.png | |
174 | mv temp-8.png icegrid.png | |
175 | rm temp*.png | |
176 | cd - | |
177 | %endif | |
178 | ||
179 | %if %{with dotnet} | |
180 | %{__make} -C cs \ | |
181 | CFLAGS="%{rpmcflags} -fPIC" \ | |
182 | CXXFLAGS="%{rpmcxxflags} -fPIC" \ | |
183 | embedded_runpath_prefix="" | |
184 | %endif | |
185 | ||
186 | %if %{with python} | |
187 | %{__make} -C py \ | |
188 | CFLAGS="%{rpmcflags} -fPIC" \ | |
189 | CXXFLAGS="%{rpmcxxflags} -fPIC" \ | |
190 | embedded_runpath_prefix="" | |
191 | %endif | |
192 | ||
193 | %if %{with ruby} | |
194 | %{__make} -C rb \ | |
195 | CFLAGS="%{rpmcflags} -fPIC" \ | |
196 | CXXFLAGS="%{rpmcxxflags} -fPIC" \ | |
197 | embedded_runpath_prefix="" | |
198 | %endif | |
199 | ||
200 | %if %{with php} | |
201 | %{__make} -C php \ | |
202 | PHP_HOME=%{_prefix} \ | |
203 | CFLAGS="%{rpmcflags} -fPIC" \ | |
204 | CXXFLAGS="%{rpmcxxflags} -fPIC" \ | |
205 | embedded_runpath_prefix="" | |
206 | %endif | |
85d0fae0 | 207 | |
208 | %install | |
209 | rm -rf $RPM_BUILD_ROOT | |
11130741 | 210 | install -d $RPM_BUILD_ROOT{%{_docdir}/Ice-%{version},%{_datadir}/Ice} |
85d0fae0 | 211 | |
212 | %{__make} install \ | |
11130741 ER |
213 | prefix=$RPM_BUILD_ROOT \ |
214 | GACINSTALL=yes \ | |
215 | GAC_ROOT=$RPM_BUILD_ROOT%{_libdir} \ | |
216 | embedded_runpath_prefix="" | |
85d0fae0 | 217 | |
11130741 ER |
218 | %if %{with java} |
219 | %{__make} -C java install \ | |
220 | prefix=$RPM_BUILD_ROOT \ | |
221 | GACINSTALL=yes \ | |
222 | GAC_ROOT=$RPM_BUILD_ROOT%{_libdir} \ | |
223 | embedded_runpath_prefix="" | |
224 | # Move Java stuff where it should be | |
225 | install -d $RPM_BUILD_ROOT%{_javadir} | |
226 | mv $RPM_BUILD_ROOT/lib/ant-ice.jar $RPM_BUILD_ROOT%{_javadir}/ant-ice-%{version}.jar | |
227 | ln -s ant-ice-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/ant-ice.jar | |
228 | mv $RPM_BUILD_ROOT/lib/Ice.jar $RPM_BUILD_ROOT%{_javadir}/Ice-%{version}.jar | |
229 | ln -s Ice-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/Ice.jar | |
230 | mv $RPM_BUILD_ROOT/lib/Freeze.jar $RPM_BUILD_ROOT%{_javadir}/Freeze-%{version}.jar | |
231 | ln -s Freeze-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/Freeze.jar | |
232 | %endif | |
233 | ||
234 | %if %{with gui} | |
235 | # Install the IceGrid GUI | |
236 | mv $RPM_BUILD_ROOT/lib/IceGridGUI.jar $RPM_BUILD_ROOT%{_datadir}/Ice | |
237 | install -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps | |
238 | cp -a java/resources/icons/icegrid.png \ | |
239 | $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps | |
240 | install -d $RPM_BUILD_ROOT%{_bindir} | |
241 | install -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir} | |
242 | install -d $RPM_BUILD_ROOT%{_desktopdir} | |
243 | cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir} | |
244 | %endif | |
245 | ||
246 | # Move other rpm-specific files into the right place (README, service stuff) | |
247 | cp -a Ice-rpmbuild-%{version}/ice.ini $RPM_BUILD_ROOT/ice.ini | |
248 | ||
249 | # Install the servers | |
250 | install -d $RPM_BUILD_ROOT%{_sysconfdir} | |
251 | cp -a Ice-rpmbuild-%{version}/*.conf $RPM_BUILD_ROOT%{_sysconfdir} | |
252 | install -d $RPM_BUILD_ROOT%{_initrddir} | |
253 | for i in icegridregistry icegridnode glacier2router; do | |
254 | cp -a Ice-rpmbuild-%{version}/$i.redhat $RPM_BUILD_ROOT%{_initrddir}/$i | |
255 | done | |
256 | install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/icegrid | |
257 | ||
258 | # "make install" assumes it's going into a directory under /opt. | |
259 | # Move things to where they should be in an RPM setting (adapted from | |
260 | # the original ZeroC srpm). | |
261 | install -d $RPM_BUILD_ROOT%{_bindir} | |
262 | mv $RPM_BUILD_ROOT/bin/* $RPM_BUILD_ROOT%{_bindir} | |
263 | install -d $RPM_BUILD_ROOT%{_includedir} | |
264 | mv $RPM_BUILD_ROOT/include/* $RPM_BUILD_ROOT%{_includedir} | |
265 | install -d $RPM_BUILD_ROOT%{_libdir} | |
266 | # There are a couple of files that end up installed in /lib, not %{_libdir}, | |
267 | # so we try this move too. | |
268 | mv $RPM_BUILD_ROOT/%{_lib}/* $RPM_BUILD_ROOT%{_libdir} | |
269 | mv $RPM_BUILD_ROOT/lib/* $RPM_BUILD_ROOT%{_libdir} || true | |
270 | mv $RPM_BUILD_ROOT/help/IceGridAdmin $RPM_BUILD_ROOT%{_docdir}/Ice-%{version} | |
271 | ||
272 | # Copy the man pages into the correct directory | |
273 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
274 | #cp -a $RPM_BUILD_DIR/Ice-3.3.0-man-pages/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
275 | ||
276 | # Fix the encoding and line-endings of all the IceGridAdmin documentation files | |
277 | cd $RPM_BUILD_ROOT%{_docdir}/Ice-%{version}/IceGridAdmin | |
278 | chmod a-x * | |
279 | for f in *.js *.css; do | |
280 | dos2unix $f | |
281 | done | |
282 | for f in helpman_topicinit.js icegridadmin_navigation.js IceGridAdmin_popup_html.js zoom_pageinfo.js; do | |
283 | iconv -f ISO88591 -t UTF8 $f -o $f.tmp | |
284 | mv $f.tmp $f | |
285 | done | |
286 | cd - | |
287 | ||
288 | %if %{with dotnet} | |
289 | # .NET spec files (for csharp-devel) -- convert the paths | |
290 | for f in IceGrid Glacier2 IceBox Ice IceStorm IcePatch2; do | |
291 | sed -i -e "s#/lib/#%{_libdir}/#" $RPM_BUILD_ROOT%{_libdir}/pkgconfig/$f.pc | |
292 | sed -i -e "s#mono_root}/usr#mono_root}#" $RPM_BUILD_ROOT%{_libdir}/pkgconfig/$f.pc | |
293 | mv $RPM_BUILD_ROOT%{_bindir}/$f.xml $RPM_BUILD_ROOT%{_libdir}/mono/gac/$f/%{version}.*/ | |
294 | done | |
295 | %endif | |
296 | ||
297 | %if %{with python} | |
298 | %{__sed} -i -e '1s,/usr/bin/env python,%{__python},' $RPM_BUILD_ROOT/python/Ice.py | |
299 | install -d $RPM_BUILD_ROOT%{py_sitedir}/Ice | |
f905d0db ER |
300 | mv $RPM_BUILD_ROOT/python/IcePy.so.*.*.* $RPM_BUILD_ROOT%{py_sitedir}/Ice/IcePy.so |
301 | rm -f $RPM_BUILD_ROOT/python/IcePy.so* | |
11130741 ER |
302 | mv $RPM_BUILD_ROOT/python/* $RPM_BUILD_ROOT%{py_sitedir}/Ice |
303 | cp -a Ice-rpmbuild-%{version}/ice.pth $RPM_BUILD_ROOT%{py_sitedir} | |
46b0ec3f ER |
304 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
305 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
306 | %py_postclean | |
11130741 ER |
307 | %endif |
308 | ||
309 | %if %{with ruby} | |
310 | %{__sed} -i -e '1s,/usr/bin/env ruby,%{__ruby},' $RPM_BUILD_ROOT/ruby/*.rb | |
311 | install -d $RPM_BUILD_ROOT%{ruby_sitearchdir} | |
f905d0db ER |
312 | mv $RPM_BUILD_ROOT/ruby/IceRuby.so.*.*.* $RPM_BUILD_ROOT%{ruby_sitearchdir}/IceRuby.so |
313 | rm -f $RPM_BUILD_ROOT/ruby/IceRuby.so* | |
11130741 ER |
314 | mv $RPM_BUILD_ROOT/ruby/* $RPM_BUILD_ROOT%{ruby_sitearchdir} |
315 | %endif | |
316 | ||
317 | %if %{with php} | |
318 | # Put the PHP stuff into the right place | |
46b0ec3f ER |
319 | install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir},%{php_data_dir}} |
320 | mv $RPM_BUILD_ROOT/ice.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d | |
321 | mv $RPM_BUILD_ROOT/php/IcePHP.so $RPM_BUILD_ROOT%{php_extensiondir} | |
322 | mv $RPM_BUILD_ROOT/php/* $RPM_BUILD_ROOT%{php_data_dir} | |
11130741 ER |
323 | %endif |
324 | ||
325 | mv $RPM_BUILD_ROOT/config/* $RPM_BUILD_ROOT%{_datadir}/Ice | |
5a9bdbd6 | 326 | mv $RPM_BUILD_ROOT/slice $RPM_BUILD_ROOT%{_datadir}/Ice |
11130741 ER |
327 | # Somehow, some files under "slice" end up with executable permissions -- ?? |
328 | find $RPM_BUILD_ROOT%{_datadir}/Ice -name "*.ice" | xargs chmod a-x | |
329 | ||
330 | # Move the ImportKey.class file -- it'll be in %{_libdir} because of the moves earlier | |
331 | mv $RPM_BUILD_ROOT%{_libdir}/ImportKey.class $RPM_BUILD_ROOT%{_datadir}/Ice | |
332 | ||
333 | # Move the license files into the documentation directory | |
334 | mv $RPM_BUILD_ROOT/ICE_LICENSE $RPM_BUILD_ROOT%{_docdir}/Ice-%{version}/ICE_LICENSE | |
335 | mv $RPM_BUILD_ROOT/LICENSE $RPM_BUILD_ROOT%{_docdir}/Ice-%{version}/LICENSE | |
336 | # Copy in the other files too | |
337 | cp CHANGES RELEASE_NOTES $RPM_BUILD_ROOT%{_docdir}/Ice-%{version}/ | |
85d0fae0 | 338 | |
339 | %clean | |
340 | rm -rf $RPM_BUILD_ROOT | |
341 | ||
342 | %post -p /sbin/ldconfig | |
343 | %postun -p /sbin/ldconfig | |
344 | ||
a33c5a13 | 345 | %post -n php-%{name} |
46b0ec3f ER |
346 | %php_webserver_restart |
347 | ||
a33c5a13 | 348 | %postun -n php-%{name} |
46b0ec3f ER |
349 | if [ "$1" = 0 ]; then |
350 | %php_webserver_restart | |
351 | fi | |
352 | ||
85d0fae0 | 353 | %files |
354 | %defattr(644,root,root,755) | |
355 | %attr(755,root,root) %{_bindir}/dumpdb | |
356 | %attr(755,root,root) %{_bindir}/glacier2router | |
357 | %attr(755,root,root) %{_bindir}/icebox | |
358 | %attr(755,root,root) %{_bindir}/iceboxadmin | |
359 | %attr(755,root,root) %{_bindir}/iceca | |
360 | %attr(755,root,root) %{_bindir}/icegridadmin | |
361 | %attr(755,root,root) %{_bindir}/icegridnode | |
362 | %attr(755,root,root) %{_bindir}/icegridregistry | |
363 | %attr(755,root,root) %{_bindir}/icepatch2calc | |
364 | %attr(755,root,root) %{_bindir}/icepatch2client | |
365 | %attr(755,root,root) %{_bindir}/icepatch2server | |
366 | %attr(755,root,root) %{_bindir}/icestormadmin | |
367 | %attr(755,root,root) %{_bindir}/icestormmigrate | |
85d0fae0 | 368 | %attr(755,root,root) %{_bindir}/transformdb |
f905d0db | 369 | %attr(755,root,root) %{_bindir}/slice2html |
46b0ec3f ER |
370 | %attr(755,root,root) %{_libdir}/libFreeze.so.*.*.* |
371 | %attr(755,root,root) %ghost %{_libdir}/libFreeze.so.%{soversion} | |
372 | %attr(755,root,root) %{_libdir}/libGlacier2.so.*.*.* | |
373 | %attr(755,root,root) %ghost %{_libdir}/libGlacier2.so.%{soversion} | |
374 | %attr(755,root,root) %{_libdir}/libIce.so.*.*.* | |
375 | %attr(755,root,root) %ghost %{_libdir}/libIce.so.%{soversion} | |
376 | %attr(755,root,root) %{_libdir}/libIceBox.so.*.*.* | |
377 | %attr(755,root,root) %ghost %{_libdir}/libIceBox.so.%{soversion} | |
378 | %attr(755,root,root) %{_libdir}/libIceDB.so.*.*.* | |
379 | %attr(755,root,root) %ghost %{_libdir}/libIceDB.so.%{soversion} | |
380 | %attr(755,root,root) %{_libdir}/libIceGrid.so.*.*.* | |
381 | %attr(755,root,root) %ghost %{_libdir}/libIceGrid.so.%{soversion} | |
382 | %attr(755,root,root) %{_libdir}/libIceGridFreezeDB.so.*.*.* | |
383 | %attr(755,root,root) %ghost %{_libdir}/libIceGridFreezeDB.so.%{soversion} | |
384 | %attr(755,root,root) %{_libdir}/libIcePatch2.so.*.*.* | |
385 | %attr(755,root,root) %ghost %{_libdir}/libIcePatch2.so.%{soversion} | |
386 | %attr(755,root,root) %{_libdir}/libIceSSL.so.*.*.* | |
387 | %attr(755,root,root) %ghost %{_libdir}/libIceSSL.so.%{soversion} | |
388 | %attr(755,root,root) %{_libdir}/libIceStorm.so.*.*.* | |
389 | %attr(755,root,root) %ghost %{_libdir}/libIceStorm.so.%{soversion} | |
390 | %attr(755,root,root) %{_libdir}/libIceStormFreezeDB.so.*.*.* | |
391 | %attr(755,root,root) %ghost %{_libdir}/libIceStormFreezeDB.so.%{soversion} | |
392 | %attr(755,root,root) %{_libdir}/libIceStormService.so.*.*.* | |
393 | %attr(755,root,root) %ghost %{_libdir}/libIceStormService.so.%{soversion} | |
394 | %attr(755,root,root) %{_libdir}/libIceUtil.so.*.*.* | |
395 | %attr(755,root,root) %ghost %{_libdir}/libIceUtil.so.%{soversion} | |
396 | %attr(755,root,root) %{_libdir}/libIceXML.so.*.*.* | |
397 | %attr(755,root,root) %ghost %{_libdir}/libIceXML.so.%{soversion} | |
398 | %attr(755,root,root) %{_libdir}/libSlice.so.*.*.* | |
399 | %attr(755,root,root) %ghost %{_libdir}/libSlice.so.%{soversion} | |
5a9bdbd6 | 400 | %{_datadir}/Ice |
85d0fae0 | 401 | |
46b0ec3f ER |
402 | # XXX gui |
403 | %attr(755,root,root) %{_bindir}/icegridgui | |
404 | %{_desktopdir}/IceGridAdmin.desktop | |
405 | %{_iconsdir}/hicolor/*/apps/icegrid.png | |
406 | ||
407 | # XXX doc | |
408 | %doc %{_docdir}/Ice-%{version} | |
409 | ||
85d0fae0 | 410 | %files devel |
411 | %defattr(644,root,root,755) | |
f905d0db ER |
412 | %attr(755,root,root) %{_bindir}/slice2cpp |
413 | %attr(755,root,root) %{_bindir}/slice2freeze | |
85d0fae0 | 414 | %attr(755,root,root) %{_libdir}/libFreeze.so |
415 | %attr(755,root,root) %{_libdir}/libGlacier2.so | |
416 | %attr(755,root,root) %{_libdir}/libIce.so | |
417 | %attr(755,root,root) %{_libdir}/libIceBox.so | |
418 | %attr(755,root,root) %{_libdir}/libIceDB.so | |
419 | %attr(755,root,root) %{_libdir}/libIceGrid.so | |
420 | %attr(755,root,root) %{_libdir}/libIceGridFreezeDB.so | |
421 | %attr(755,root,root) %{_libdir}/libIcePatch2.so | |
422 | %attr(755,root,root) %{_libdir}/libIceSSL.so | |
423 | %attr(755,root,root) %{_libdir}/libIceStorm.so | |
424 | %attr(755,root,root) %{_libdir}/libIceStormFreezeDB.so | |
425 | %attr(755,root,root) %{_libdir}/libIceStormService.so | |
426 | %attr(755,root,root) %{_libdir}/libIceUtil.so | |
427 | %attr(755,root,root) %{_libdir}/libIceXML.so | |
428 | %attr(755,root,root) %{_libdir}/libSlice.so | |
429 | %{_includedir}/Freeze | |
430 | %{_includedir}/Glacier2 | |
431 | %{_includedir}/Ice | |
432 | %{_includedir}/IceBox | |
433 | %{_includedir}/IceGrid | |
434 | %{_includedir}/IcePatch2 | |
435 | %{_includedir}/IceSSL | |
436 | %{_includedir}/IceStorm | |
437 | %{_includedir}/IceUtil | |
438 | %{_includedir}/IceXML | |
439 | %{_includedir}/Slice | |
f905d0db ER |
440 | |
441 | # these pkgconfig files are for csharp, but we do not have separate -devel for csharp | |
46b0ec3f ER |
442 | %{_pkgconfigdir}/Glacier2.pc |
443 | %{_pkgconfigdir}/Ice.pc | |
444 | %{_pkgconfigdir}/IceBox.pc | |
445 | %{_pkgconfigdir}/IceGrid.pc | |
446 | %{_pkgconfigdir}/IcePatch2.pc | |
447 | %{_pkgconfigdir}/IceStorm.pc | |
448 | ||
f905d0db ER |
449 | |
450 | # as we do not have -devel for each binding, these are in main -devel | |
451 | # -csharp | |
452 | %attr(755,root,root) %{_bindir}/slice2cs | |
453 | # -java | |
454 | %attr(755,root,root) %{_bindir}/slice2freezej | |
455 | %attr(755,root,root) %{_bindir}/slice2java | |
456 | # -php | |
457 | %attr(755,root,root) %{_bindir}/slice2php | |
458 | # -python | |
459 | %attr(755,root,root) %{_bindir}/slice2py | |
460 | # -ruby | |
461 | %attr(755,root,root) %{_bindir}/slice2rb | |
462 | ||
46b0ec3f ER |
463 | %files servers |
464 | %defattr(644,root,root,755) | |
465 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/glacier2router.conf | |
466 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/icegridnode.conf | |
467 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/icegridregistry.conf | |
468 | %attr(754,root,root) /etc/rc.d/init.d/glacier2router | |
469 | %attr(754,root,root) /etc/rc.d/init.d/icegridnode | |
470 | %attr(754,root,root) /etc/rc.d/init.d/icegridregistry | |
471 | ||
a33c5a13 | 472 | %files -n csharp-%{name} |
46b0ec3f ER |
473 | %defattr(644,root,root,755) |
474 | %attr(755,root,root) %{_bindir}/iceboxnet.exe | |
475 | %{_libdir}/mono/Glacier2 | |
476 | %{_libdir}/mono/Ice | |
477 | %{_libdir}/mono/IceBox | |
478 | %{_libdir}/mono/IceGrid | |
479 | %{_libdir}/mono/IcePatch2 | |
480 | %{_libdir}/mono/IceStorm | |
481 | %{_libdir}/mono/gac/Glacier2 | |
482 | %{_libdir}/mono/gac/Ice | |
483 | %{_libdir}/mono/gac/IceBox | |
484 | %{_libdir}/mono/gac/IceGrid | |
485 | %{_libdir}/mono/gac/IcePatch2 | |
486 | %{_libdir}/mono/gac/IceStorm | |
487 | ||
a33c5a13 | 488 | %files -n python-%{name} |
46b0ec3f ER |
489 | %defattr(644,root,root,755) |
490 | %{py_sitedir}/ice.pth | |
491 | %dir %{py_sitedir}/Ice | |
492 | %dir %{py_sitedir}/Ice/IceBox | |
493 | %dir %{py_sitedir}/Ice/IceGrid | |
494 | %dir %{py_sitedir}/Ice/IcePatch2 | |
495 | %dir %{py_sitedir}/Ice/IceStorm | |
496 | %{py_sitedir}/Ice/*.py[co] | |
497 | %{py_sitedir}/Ice/IceBox/*.py[co] | |
498 | %{py_sitedir}/Ice/IceGrid/*.py[co] | |
499 | %{py_sitedir}/Ice/IcePatch2/*.py[co] | |
500 | %{py_sitedir}/Ice/IceStorm/*.py[co] | |
f905d0db | 501 | %attr(755,root,root) %{py_sitedir}/Ice/IcePy.so |
46b0ec3f | 502 | |
a33c5a13 | 503 | %files -n ruby-%{name} |
46b0ec3f ER |
504 | %defattr(644,root,root,755) |
505 | %{ruby_sitearchdir}/Glacier2.rb | |
506 | %{ruby_sitearchdir}/Glacier2 | |
507 | %{ruby_sitearchdir}/Ice.rb | |
508 | %{ruby_sitearchdir}/Ice | |
509 | %{ruby_sitearchdir}/IceBox.rb | |
510 | %{ruby_sitearchdir}/IceBox | |
511 | %{ruby_sitearchdir}/IceGrid.rb | |
512 | %{ruby_sitearchdir}/IceGrid | |
513 | %{ruby_sitearchdir}/IcePatch2.rb | |
514 | %{ruby_sitearchdir}/IcePatch2 | |
515 | %{ruby_sitearchdir}/IceStorm.rb | |
516 | %{ruby_sitearchdir}/IceStorm/IceStorm.rb | |
f905d0db | 517 | %attr(755,root,root) %{ruby_sitearchdir}/IceRuby.so |
46b0ec3f | 518 | |
a33c5a13 | 519 | %files -n java-%{name} |
46b0ec3f ER |
520 | %defattr(644,root,root,755) |
521 | %{_javadir}/Freeze-%{version}.jar | |
522 | %{_javadir}/Freeze.jar | |
523 | %{_javadir}/Ice-%{version}.jar | |
524 | %{_javadir}/Ice.jar | |
525 | %{_javadir}/ant-ice-%{version}.jar | |
526 | %{_javadir}/ant-ice.jar | |
527 | ||
a33c5a13 | 528 | %files -n php-%{name} |
46b0ec3f ER |
529 | %defattr(644,root,root,755) |
530 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/ice.ini | |
531 | %attr(755,root,root) %{php_extensiondir}/IcePHP.so | |
532 | %{php_data_dir}/Glacier2.php | |
533 | %{php_data_dir}/Glacier2 | |
534 | %{php_data_dir}/Ice.php | |
535 | %{php_data_dir}/Ice | |
536 | %{php_data_dir}/IceBox.php | |
537 | %{php_data_dir}/IceBox | |
538 | %{php_data_dir}/IceGrid.php | |
539 | %{php_data_dir}/IceGrid | |
540 | %{php_data_dir}/IcePatch2.php | |
541 | %{php_data_dir}/IcePatch2 | |
542 | %{php_data_dir}/IceStorm.php | |
543 | %{php_data_dir}/IceStorm |