]>
Commit | Line | Data |
---|---|---|
5a9bdbd6 | 1 | # TODO |
9a1d0e0d | 2 | # - finish (pldize) -servers package |
11130741 ER |
3 | # |
4 | # Conditional build: | |
36f427ab | 5 | %bcond_without gui # IceGrid GUI |
11130741 | 6 | %bcond_without dotnet # .NET bindings |
36f427ab JR |
7 | %bcond_with java # Java bindings (build requires X11 DISPLAY) |
8 | %bcond_without php # PHP bindings | |
11130741 ER |
9 | %bcond_without python # Python bindings |
10 | %bcond_without ruby # Ruby bindings | |
11130741 | 11 | |
6cff1ec8 ER |
12 | %if %{without java} |
13 | %undefine with_gui | |
14 | %endif | |
15 | ||
aa5bb803 ER |
16 | # fails with php5.5, use php5.3 |
17 | %if "%{?php_suffix}" == "" | |
18 | %define php_suffix 53 | |
19 | %endif | |
20 | %define php_name php%{?php_suffix} | |
21 | ||
b1a56e6f | 22 | %{?with_java:%include /usr/lib/rpm/macros.java} |
5a9bdbd6 ER |
23 | Summary: The Ice base runtime and services |
24 | Name: ice | |
56a96b27 JR |
25 | Version: 3.5.1 |
26 | Release: 0.1 | |
5a9bdbd6 | 27 | License: GPL v2 with exceptions (see ICE_LICENSE) |
85d0fae0 | 28 | Group: Applications |
56a96b27 JR |
29 | Source0: http://www.zeroc.com/download/Ice/3.5/Ice-%{version}.tar.gz |
30 | # Source0-md5: f00c59983cc904bca977133c0a9b3e80 | |
31 | # Extracted from http://zeroc.com/download/Ice/3.5/ice-3.5.1-1.src.rpm | |
32 | Source1: Ice-rpmbuild-%{version}.tar.gz | |
33 | # Source1-md5: 247ce2f92caf8d0615d4d35120421a7b | |
85bc9249 | 34 | # Man pages courtesy of Francisco Moya's Debian packages |
85bc9249 ER |
35 | Source3: %{name}gridgui |
36 | Source4: IceGridAdmin.desktop | |
85d0fae0 | 37 | Patch0: %{name}-build.patch |
11130741 | 38 | Patch1: dont-build-demo-test.patch |
11130741 | 39 | Patch3: jgoodies.patch |
aa5bb803 | 40 | URL: http://www.zeroc.com/ |
3470b65a | 41 | BuildRequires: bzip2-devel |
5a9bdbd6 | 42 | BuildRequires: db-cxx-devel |
3470b65a | 43 | BuildRequires: expat-devel |
d2180ca6 ER |
44 | BuildRequires: mcpp-devel |
45 | BuildRequires: openssl-devel | |
1b7259a4 | 46 | BuildRequires: rpmbuild(macros) >= 1.665 |
d2180ca6 ER |
47 | %if %{with gui} |
48 | BuildRequires: ImageMagick | |
49 | BuildRequires: ImageMagick-coder-png | |
50 | %endif | |
51 | %if %{with dotnet} | |
52 | BuildRequires: mono-csharp | |
53 | %endif | |
c6913b64 | 54 | %if %{with java} |
077f0ed8 | 55 | BuildRequires: ant |
c6913b64 | 56 | BuildRequires: db-java-devel |
68d99d1f | 57 | BuildRequires: java-jgoodies-common |
c6913b64 | 58 | BuildRequires: java-jgoodies-forms |
59 | BuildRequires: java-jgoodies-looks | |
5d2be73c | 60 | BuildRequires: jdk |
c6913b64 | 61 | BuildRequires: jpackage-utils |
c6913b64 | 62 | BuildRequires: rpm-javaprov |
15085aa5 | 63 | %endif |
d2180ca6 | 64 | %if %{with php} |
aa5bb803 | 65 | BuildRequires: %{php_name}-devel >= 3:5.0.0 |
d2180ca6 ER |
66 | %endif |
67 | %if %{with python} | |
3470b65a | 68 | BuildRequires: python-devel |
d2180ca6 ER |
69 | BuildRequires: rpm-pythonprov |
70 | %endif | |
71 | %if %{with ruby} | |
1b7259a4 | 72 | BuildRequires: rpm-rubyprov |
d2180ca6 | 73 | BuildRequires: ruby >= 1:1.8.6 |
3470b65a | 74 | BuildRequires: ruby-devel |
d2180ca6 | 75 | %endif |
11130741 ER |
76 | # Ice doesn't officially support ppc64 at all; sparc64 doesnt have mono |
77 | ExcludeArch: ppc64 sparc64 | |
85d0fae0 | 78 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
79 | ||
11130741 | 80 | # Some file suffixes we need to grab the right stuff for the file lists |
f7e92609 | 81 | %define soversion 35 |
11130741 | 82 | |
85d0fae0 | 83 | %description |
5a9bdbd6 ER |
84 | Ice is a modern alternative to object middleware such as CORBA or |
85 | COM/DCOM/COM+. It is easy to learn, yet provides a powerful network | |
86 | infrastructure for demanding technical applications. It features an | |
87 | object-oriented specification language, easy to use C++, C#, Java, | |
88 | Python, Ruby, PHP, and Visual Basic mappings, a highly efficient | |
89 | protocol, asynchronous method invocation and dispatch, dynamic | |
90 | transport plug-ins, TCP/IP and UDP/IP support, SSL-based security, a | |
91 | firewall solution, and much more. | |
85d0fae0 | 92 | |
93 | %package devel | |
5a9bdbd6 | 94 | Summary: Tools for developing Ice applications in C++ |
85d0fae0 | 95 | Group: Development/Libraries |
96 | Requires: %{name} = %{version}-%{release} | |
97 | ||
98 | %description devel | |
5a9bdbd6 | 99 | Tools for developing Ice applications in C++. |
85d0fae0 | 100 | |
a33c5a13 ER |
101 | %package servers |
102 | Summary: Ice services to run through /etc/rc.d/init.d | |
11130741 | 103 | Group: Development/Tools |
a33c5a13 ER |
104 | Requires(post,preun): /sbin/chkconfig |
105 | Requires: %{name} = %{version}-%{release} | |
106 | Requires: rc-scripts | |
11130741 | 107 | |
a33c5a13 ER |
108 | %description servers |
109 | Ice services to run through /etc/rc.d/init.d | |
11130741 | 110 | |
a33c5a13 | 111 | %package -n icegrid-gui |
11130741 | 112 | Summary: IceGrid Admin Tool |
11130741 | 113 | Group: Development/Tools |
11130741 | 114 | Requires: %{name} = %{version}-%{release} |
a33c5a13 ER |
115 | Requires: java-%{name} = %{version}-%{release} |
116 | Requires: java-jgoodies-forms | |
117 | Requires: java-jgoodies-looks | |
118 | Requires: jpackage-utils | |
119 | ||
120 | %description -n icegrid-gui | |
121 | Graphical administration tool for IceGrid | |
122 | ||
123 | %package -n java-%{name} | |
124 | Summary: The Ice runtime for Java | |
125 | Group: Libraries/Java | |
11130741 | 126 | Requires: %{name} = %{version}-%{release} |
a33c5a13 | 127 | Requires: db-java |
11130741 | 128 | Requires: jpackage-utils |
11130741 | 129 | |
a33c5a13 ER |
130 | %description -n java-%{name} |
131 | The Ice runtime for Java | |
11130741 | 132 | |
a33c5a13 ER |
133 | %package -n csharp-%{name} |
134 | Summary: The Ice runtime for C# | |
135 | Group: Libraries | |
136 | Requires: %{name} = %{version}-%{release} | |
137 | Requires: mono >= 1.2.2 | |
11130741 | 138 | |
a33c5a13 ER |
139 | %description -n csharp-%{name} |
140 | The Ice runtime for C# | |
11130741 | 141 | |
a33c5a13 | 142 | %package -n ruby-%{name} |
11130741 | 143 | Summary: The Ice runtime for Ruby applications |
a33c5a13 | 144 | Group: Development/Languages |
11130741 | 145 | Requires: %{name} = %{version}-%{release} |
11130741 | 146 | |
a33c5a13 | 147 | %description -n ruby-%{name} |
11130741 ER |
148 | The Ice runtime for Ruby applications. |
149 | ||
a33c5a13 | 150 | %package -n python-%{name} |
11130741 | 151 | Summary: The Ice runtime for Python applications |
a33c5a13 | 152 | Group: Development/Languages/Python |
11130741 | 153 | Requires: %{name} = %{version}-%{release} |
a33c5a13 | 154 | Requires: python >= 1:2.3.4 |
11130741 | 155 | |
a33c5a13 | 156 | %description -n python-%{name} |
11130741 ER |
157 | The Ice runtime for Python applications. |
158 | ||
aa5bb803 | 159 | %package -n %{php_name}-%{name} |
11130741 | 160 | Summary: The Ice runtime for PHP applications |
a33c5a13 | 161 | Group: Development/Languages/PHP |
11130741 ER |
162 | Requires: %{name} = %{version}-%{release} |
163 | %{?requires_php_extension} | |
164 | ||
aa5bb803 | 165 | %description -n %{php_name}-%{name} |
11130741 ER |
166 | The Ice runtime for PHP applications. |
167 | ||
85d0fae0 | 168 | %prep |
56a96b27 | 169 | %setup -q -n Ice-%{version} -a1 |
85d0fae0 | 170 | %patch0 -p0 |
11130741 | 171 | %patch1 -p1 |
11130741 | 172 | %patch3 -p1 |
6cff1ec8 | 173 | |
457093df ER |
174 | %{__sed} -i -e '1s,/usr/bin/env python,%{__python},' cpp/src/ca/iceca |
175 | ||
fa987e4c ER |
176 | %if %{with java} |
177 | # we nuke it only when we build new class later, as ice build system expects the file being around | |
6cff1ec8 | 178 | rm cpp/src/ca/ImportKey.class |
fa987e4c | 179 | %endif |
11130741 | 180 | |
6cff1ec8 | 181 | # update path to our install |
eef55816 | 182 | sed -i -e 's,/usr/share/Ice-%{version},%{_datadir}/Ice,' cpp/src/ca/iceca Ice-rpmbuild-*/icegridregistry.conf |
6cff1ec8 | 183 | |
85bc9249 ER |
184 | # force our CC/CXX as build system compares for exactly "c++" to setup other rules |
185 | sed -i -e 's,c++,%{__cxx},g' cpp/config/Make.rules.Linux | |
186 | ||
6cff1ec8 | 187 | %build |
9a1d0e0d ER |
188 | %if %{with java} |
189 | # Rebuild the Java ImportKey class - need it early for main cpp build | |
190 | javac cpp/src/ca/ImportKey.java | |
191 | %endif | |
192 | ||
140b994f | 193 | %{__make} -j1 -C cpp \ |
11130741 | 194 | CFLAGS="%{rpmcflags} -fPIC" \ |
aed21784 | 195 | CXXFLAGS="%{rpmcxxflags} -fPIC -pthread" \ |
11130741 ER |
196 | embedded_runpath_prefix="" |
197 | ||
9a1d0e0d ER |
198 | %if %{with gui} |
199 | # Create the IceGrid icon | |
200 | convert java/resources/icons/icegrid.ico temp.png | |
201 | mv temp-8.png java/resources/icons/icegrid.png | |
202 | rm temp*.png | |
203 | %endif | |
204 | ||
11130741 ER |
205 | %if %{with java} |
206 | # Set the CLASSPATH correctly for the Java compile | |
207 | export CLASSPATH=$(build-classpath db jgoodies-forms jgoodies-looks) | |
208 | ||
140b994f | 209 | %{__make} -j1 -C java \ |
11130741 | 210 | CFLAGS="%{rpmcflags} -fPIC" \ |
aed21784 | 211 | CXXFLAGS="%{rpmcxxflags} -fPIC -pthread" \ |
11130741 | 212 | embedded_runpath_prefix="" |
11130741 ER |
213 | %endif |
214 | ||
215 | %if %{with dotnet} | |
140b994f | 216 | %{__make} -j1 -C cs \ |
11130741 | 217 | CFLAGS="%{rpmcflags} -fPIC" \ |
aed21784 | 218 | CXXFLAGS="%{rpmcxxflags} -fPIC -pthread" \ |
11130741 ER |
219 | embedded_runpath_prefix="" |
220 | %endif | |
221 | ||
222 | %if %{with python} | |
140b994f | 223 | %{__make} -j1 -C py \ |
11130741 | 224 | CFLAGS="%{rpmcflags} -fPIC" \ |
aed21784 | 225 | CXXFLAGS="%{rpmcxxflags} -fPIC -pthread" \ |
11130741 ER |
226 | embedded_runpath_prefix="" |
227 | %endif | |
228 | ||
229 | %if %{with ruby} | |
140b994f | 230 | %{__make} -j1 -C rb \ |
11130741 | 231 | CFLAGS="%{rpmcflags} -fPIC" \ |
aed21784 | 232 | CXXFLAGS="%{rpmcxxflags} -fPIC -pthread" \ |
11130741 ER |
233 | embedded_runpath_prefix="" |
234 | %endif | |
235 | ||
236 | %if %{with php} | |
140b994f | 237 | %{__make} -j1 -C php \ |
11130741 ER |
238 | PHP_HOME=%{_prefix} \ |
239 | CFLAGS="%{rpmcflags} -fPIC" \ | |
aed21784 | 240 | CXXFLAGS="%{rpmcxxflags} -fPIC -pthread" \ |
11130741 ER |
241 | embedded_runpath_prefix="" |
242 | %endif | |
85d0fae0 | 243 | |
244 | %install | |
245 | rm -rf $RPM_BUILD_ROOT | |
9a1d0e0d | 246 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_docdir}/Ice-%{version},%{_datadir}/Ice} |
85d0fae0 | 247 | |
6cff1ec8 ER |
248 | %{__make} -C cpp install \ |
249 | prefix=$RPM_BUILD_ROOT | |
250 | ||
457093df ER |
251 | # Move the ImportKey.class file |
252 | mv $RPM_BUILD_ROOT/lib/ImportKey.class $RPM_BUILD_ROOT%{_datadir}/Ice | |
253 | ||
6cff1ec8 | 254 | mv $RPM_BUILD_ROOT/bin/* $RPM_BUILD_ROOT%{_bindir} |
6cff1ec8 | 255 | mv $RPM_BUILD_ROOT/include/* $RPM_BUILD_ROOT%{_includedir} |
d66964c1 | 256 | mv $RPM_BUILD_ROOT/%{_lib}/* $RPM_BUILD_ROOT%{_libdir} |
85d0fae0 | 257 | |
85bc9249 | 258 | mv $RPM_BUILD_ROOT/config/* $RPM_BUILD_ROOT%{_datadir}/Ice |
85bc9249 | 259 | |
56a96b27 | 260 | ## Copy the man pages into the correct directory |
f7e92609 JR |
261 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
262 | cp -a man/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
85bc9249 | 263 | |
11130741 ER |
264 | %if %{with java} |
265 | %{__make} -C java install \ | |
6cff1ec8 ER |
266 | prefix=$RPM_BUILD_ROOT |
267 | ||
11130741 ER |
268 | # Move Java stuff where it should be |
269 | install -d $RPM_BUILD_ROOT%{_javadir} | |
11130741 ER |
270 | mv $RPM_BUILD_ROOT/lib/Ice.jar $RPM_BUILD_ROOT%{_javadir}/Ice-%{version}.jar |
271 | ln -s Ice-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/Ice.jar | |
272 | mv $RPM_BUILD_ROOT/lib/Freeze.jar $RPM_BUILD_ROOT%{_javadir}/Freeze-%{version}.jar | |
273 | ln -s Freeze-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/Freeze.jar | |
d815748a | 274 | |
275 | # Register ant target | |
276 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ant.d,%{_javadir}/ant} | |
277 | mv $RPM_BUILD_ROOT/lib/ant-ice.jar $RPM_BUILD_ROOT%{_javadir}/ant/ant-ice-%{version}.jar | |
278 | ln -s ant-ice-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/ant/ant-ice.jar | |
279 | echo 'ice ant/ant-ice' > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/ice | |
11130741 ER |
280 | %endif |
281 | ||
282 | %if %{with gui} | |
283 | # Install the IceGrid GUI | |
fa987e4c | 284 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} |
11130741 | 285 | mv $RPM_BUILD_ROOT/lib/IceGridGUI.jar $RPM_BUILD_ROOT%{_datadir}/Ice |
85bc9249 ER |
286 | cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir} |
287 | install -p %{SOURCE3} $RPM_BUILD_ROOT%{_bindir} | |
9a1d0e0d | 288 | cp -a java/resources/icons/icegrid.png $RPM_BUILD_ROOT%{_pixmapsdir} |
11130741 | 289 | mv $RPM_BUILD_ROOT/help/IceGridAdmin $RPM_BUILD_ROOT%{_docdir}/Ice-%{version} |
6cff1ec8 | 290 | %endif |
11130741 ER |
291 | |
292 | %if %{with dotnet} | |
6cff1ec8 ER |
293 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
294 | %{__make} -C cs install \ | |
295 | prefix=$RPM_BUILD_ROOT \ | |
296 | GACINSTALL=yes \ | |
d933ee2e | 297 | GAC_ROOT=$RPM_BUILD_ROOT%{_prefix}/lib \ |
6cff1ec8 | 298 | |
fa987e4c | 299 | mv $RPM_BUILD_ROOT/bin/* $RPM_BUILD_ROOT%{_bindir} |
11130741 ER |
300 | # .NET spec files (for csharp-devel) -- convert the paths |
301 | for f in IceGrid Glacier2 IceBox Ice IceStorm IcePatch2; do | |
d933ee2e | 302 | sed -i -e "s#/lib/#%{_prefix}/lib/#" $RPM_BUILD_ROOT/lib/pkgconfig/$f.pc |
6cff1ec8 ER |
303 | sed -i -e "s#mono_root}/usr#mono_root}#" $RPM_BUILD_ROOT/lib/pkgconfig/$f.pc |
304 | mv $RPM_BUILD_ROOT/lib/pkgconfig/$f.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/$f.pc | |
11130741 ER |
305 | done |
306 | %endif | |
307 | ||
308 | %if %{with python} | |
6cff1ec8 ER |
309 | %{__make} -C py install \ |
310 | prefix=$RPM_BUILD_ROOT | |
11130741 ER |
311 | %{__sed} -i -e '1s,/usr/bin/env python,%{__python},' $RPM_BUILD_ROOT/python/Ice.py |
312 | install -d $RPM_BUILD_ROOT%{py_sitedir}/Ice | |
f905d0db ER |
313 | mv $RPM_BUILD_ROOT/python/IcePy.so.*.*.* $RPM_BUILD_ROOT%{py_sitedir}/Ice/IcePy.so |
314 | rm -f $RPM_BUILD_ROOT/python/IcePy.so* | |
11130741 | 315 | mv $RPM_BUILD_ROOT/python/* $RPM_BUILD_ROOT%{py_sitedir}/Ice |
eef55816 | 316 | cp -a Ice-rpmbuild-*/ice.pth $RPM_BUILD_ROOT%{py_sitedir} |
46b0ec3f ER |
317 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
318 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
319 | %py_postclean | |
11130741 ER |
320 | %endif |
321 | ||
322 | %if %{with ruby} | |
6cff1ec8 ER |
323 | %{__make} -C rb install \ |
324 | prefix=$RPM_BUILD_ROOT | |
11130741 | 325 | %{__sed} -i -e '1s,/usr/bin/env ruby,%{__ruby},' $RPM_BUILD_ROOT/ruby/*.rb |
1b7259a4 ER |
326 | install -d $RPM_BUILD_ROOT%{ruby_vendorarchdir} |
327 | mv $RPM_BUILD_ROOT/ruby/IceRuby.so.*.*.* $RPM_BUILD_ROOT%{ruby_vendorarchdir}/IceRuby.so | |
f905d0db | 328 | rm -f $RPM_BUILD_ROOT/ruby/IceRuby.so* |
1b7259a4 | 329 | mv $RPM_BUILD_ROOT/ruby/* $RPM_BUILD_ROOT%{ruby_vendorarchdir} |
11130741 ER |
330 | %endif |
331 | ||
332 | %if %{with php} | |
6cff1ec8 ER |
333 | %{__make} -C php install \ |
334 | prefix=$RPM_BUILD_ROOT | |
11130741 | 335 | # Put the PHP stuff into the right place |
46b0ec3f | 336 | install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir},%{php_data_dir}} |
eef55816 | 337 | cp -a Ice-rpmbuild-*/ice.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d |
46b0ec3f ER |
338 | mv $RPM_BUILD_ROOT/php/IcePHP.so $RPM_BUILD_ROOT%{php_extensiondir} |
339 | mv $RPM_BUILD_ROOT/php/* $RPM_BUILD_ROOT%{php_data_dir} | |
11130741 ER |
340 | %endif |
341 | ||
d66964c1 ER |
342 | # move as last, bindings reinstall these if missing |
343 | mv $RPM_BUILD_ROOT/slice $RPM_BUILD_ROOT%{_datadir}/Ice | |
344 | ||
345 | # Move the license files into the documentation directory | |
346 | mv $RPM_BUILD_ROOT/ICE_LICENSE $RPM_BUILD_ROOT%{_docdir}/Ice-%{version}/ICE_LICENSE | |
347 | mv $RPM_BUILD_ROOT/LICENSE $RPM_BUILD_ROOT%{_docdir}/Ice-%{version}/LICENSE | |
348 | # Copy in the other files too | |
349 | cp CHANGES RELEASE_NOTES $RPM_BUILD_ROOT%{_docdir}/Ice-%{version} | |
350 | ||
6cff1ec8 ER |
351 | # Install the servers |
352 | install -d $RPM_BUILD_ROOT%{_sysconfdir} | |
eef55816 | 353 | cp -a Ice-rpmbuild-*/*.conf $RPM_BUILD_ROOT%{_sysconfdir} |
6cff1ec8 ER |
354 | install -d $RPM_BUILD_ROOT%{_initrddir} |
355 | for i in icegridregistry icegridnode glacier2router; do | |
eef55816 | 356 | cp -a Ice-rpmbuild-*/$i.redhat $RPM_BUILD_ROOT%{_initrddir}/$i |
6cff1ec8 ER |
357 | done |
358 | install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/icegrid | |
359 | ||
85d0fae0 | 360 | %clean |
361 | rm -rf $RPM_BUILD_ROOT | |
362 | ||
363 | %post -p /sbin/ldconfig | |
364 | %postun -p /sbin/ldconfig | |
365 | ||
aa5bb803 | 366 | %post -n %{php_name}-%{name} |
46b0ec3f ER |
367 | %php_webserver_restart |
368 | ||
aa5bb803 | 369 | %postun -n %{php_name}-%{name} |
46b0ec3f ER |
370 | if [ "$1" = 0 ]; then |
371 | %php_webserver_restart | |
372 | fi | |
373 | ||
85d0fae0 | 374 | %files |
375 | %defattr(644,root,root,755) | |
fa987e4c | 376 | %doc %{_docdir}/Ice-%{version} |
85d0fae0 | 377 | %attr(755,root,root) %{_bindir}/dumpdb |
378 | %attr(755,root,root) %{_bindir}/glacier2router | |
379 | %attr(755,root,root) %{_bindir}/icebox | |
380 | %attr(755,root,root) %{_bindir}/iceboxadmin | |
381 | %attr(755,root,root) %{_bindir}/iceca | |
382 | %attr(755,root,root) %{_bindir}/icegridadmin | |
383 | %attr(755,root,root) %{_bindir}/icegridnode | |
384 | %attr(755,root,root) %{_bindir}/icegridregistry | |
385 | %attr(755,root,root) %{_bindir}/icepatch2calc | |
386 | %attr(755,root,root) %{_bindir}/icepatch2client | |
387 | %attr(755,root,root) %{_bindir}/icepatch2server | |
388 | %attr(755,root,root) %{_bindir}/icestormadmin | |
389 | %attr(755,root,root) %{_bindir}/icestormmigrate | |
f905d0db | 390 | %attr(755,root,root) %{_bindir}/slice2html |
9a1d0e0d | 391 | %attr(755,root,root) %{_bindir}/transformdb |
85bc9249 ER |
392 | %{_mandir}/man1/dumpdb.1* |
393 | %{_mandir}/man1/glacier2router.1* | |
394 | %{_mandir}/man1/icebox.1* | |
395 | %{_mandir}/man1/iceboxadmin.1* | |
396 | %{_mandir}/man1/icegridadmin.1* | |
397 | %{_mandir}/man1/icegridnode.1* | |
398 | %{_mandir}/man1/icegridregistry.1* | |
399 | %{_mandir}/man1/icepatch2calc.1* | |
400 | %{_mandir}/man1/icepatch2client.1* | |
401 | %{_mandir}/man1/icepatch2server.1* | |
402 | %{_mandir}/man1/icestormadmin.1* | |
403 | %{_mandir}/man1/slice2html.1* | |
404 | %{_mandir}/man1/transformdb.1* | |
46b0ec3f ER |
405 | %attr(755,root,root) %{_libdir}/libFreeze.so.*.*.* |
406 | %attr(755,root,root) %ghost %{_libdir}/libFreeze.so.%{soversion} | |
407 | %attr(755,root,root) %{_libdir}/libGlacier2.so.*.*.* | |
408 | %attr(755,root,root) %ghost %{_libdir}/libGlacier2.so.%{soversion} | |
409 | %attr(755,root,root) %{_libdir}/libIce.so.*.*.* | |
410 | %attr(755,root,root) %ghost %{_libdir}/libIce.so.%{soversion} | |
411 | %attr(755,root,root) %{_libdir}/libIceBox.so.*.*.* | |
412 | %attr(755,root,root) %ghost %{_libdir}/libIceBox.so.%{soversion} | |
413 | %attr(755,root,root) %{_libdir}/libIceDB.so.*.*.* | |
414 | %attr(755,root,root) %ghost %{_libdir}/libIceDB.so.%{soversion} | |
415 | %attr(755,root,root) %{_libdir}/libIceGrid.so.*.*.* | |
416 | %attr(755,root,root) %ghost %{_libdir}/libIceGrid.so.%{soversion} | |
417 | %attr(755,root,root) %{_libdir}/libIceGridFreezeDB.so.*.*.* | |
418 | %attr(755,root,root) %ghost %{_libdir}/libIceGridFreezeDB.so.%{soversion} | |
419 | %attr(755,root,root) %{_libdir}/libIcePatch2.so.*.*.* | |
420 | %attr(755,root,root) %ghost %{_libdir}/libIcePatch2.so.%{soversion} | |
421 | %attr(755,root,root) %{_libdir}/libIceSSL.so.*.*.* | |
422 | %attr(755,root,root) %ghost %{_libdir}/libIceSSL.so.%{soversion} | |
423 | %attr(755,root,root) %{_libdir}/libIceStorm.so.*.*.* | |
424 | %attr(755,root,root) %ghost %{_libdir}/libIceStorm.so.%{soversion} | |
425 | %attr(755,root,root) %{_libdir}/libIceStormFreezeDB.so.*.*.* | |
426 | %attr(755,root,root) %ghost %{_libdir}/libIceStormFreezeDB.so.%{soversion} | |
427 | %attr(755,root,root) %{_libdir}/libIceStormService.so.*.*.* | |
428 | %attr(755,root,root) %ghost %{_libdir}/libIceStormService.so.%{soversion} | |
429 | %attr(755,root,root) %{_libdir}/libIceUtil.so.*.*.* | |
430 | %attr(755,root,root) %ghost %{_libdir}/libIceUtil.so.%{soversion} | |
431 | %attr(755,root,root) %{_libdir}/libIceXML.so.*.*.* | |
432 | %attr(755,root,root) %ghost %{_libdir}/libIceXML.so.%{soversion} | |
433 | %attr(755,root,root) %{_libdir}/libSlice.so.*.*.* | |
434 | %attr(755,root,root) %ghost %{_libdir}/libSlice.so.%{soversion} | |
5a9bdbd6 | 435 | %{_datadir}/Ice |
85d0fae0 | 436 | |
401734e9 | 437 | %if %{with gui} |
fa987e4c ER |
438 | # Exclude the stuff that's in IceGrid |
439 | %exclude %{_docdir}/Ice-%{version}/IceGridAdmin | |
440 | %exclude %{_datadir}/Ice/IceGridGUI.jar | |
441 | ||
fa987e4c ER |
442 | %files -n icegrid-gui |
443 | %defattr(644,root,root,755) | |
444 | %doc %{_docdir}/Ice-%{version}/IceGridAdmin | |
46b0ec3f | 445 | %attr(755,root,root) %{_bindir}/icegridgui |
fa987e4c | 446 | %{_datadir}/Ice/IceGridGUI.jar |
85bc9249 | 447 | %{_mandir}/man1/icegridgui.1* |
46b0ec3f | 448 | %{_desktopdir}/IceGridAdmin.desktop |
fa987e4c | 449 | %{_pixmapsdir}/icegrid.png |
6cff1ec8 | 450 | %endif |
46b0ec3f | 451 | |
85d0fae0 | 452 | %files devel |
453 | %defattr(644,root,root,755) | |
f905d0db ER |
454 | %attr(755,root,root) %{_bindir}/slice2cpp |
455 | %attr(755,root,root) %{_bindir}/slice2freeze | |
85d0fae0 | 456 | %attr(755,root,root) %{_libdir}/libFreeze.so |
457 | %attr(755,root,root) %{_libdir}/libGlacier2.so | |
458 | %attr(755,root,root) %{_libdir}/libIce.so | |
459 | %attr(755,root,root) %{_libdir}/libIceBox.so | |
460 | %attr(755,root,root) %{_libdir}/libIceDB.so | |
461 | %attr(755,root,root) %{_libdir}/libIceGrid.so | |
462 | %attr(755,root,root) %{_libdir}/libIceGridFreezeDB.so | |
463 | %attr(755,root,root) %{_libdir}/libIcePatch2.so | |
464 | %attr(755,root,root) %{_libdir}/libIceSSL.so | |
465 | %attr(755,root,root) %{_libdir}/libIceStorm.so | |
466 | %attr(755,root,root) %{_libdir}/libIceStormFreezeDB.so | |
467 | %attr(755,root,root) %{_libdir}/libIceStormService.so | |
468 | %attr(755,root,root) %{_libdir}/libIceUtil.so | |
469 | %attr(755,root,root) %{_libdir}/libIceXML.so | |
470 | %attr(755,root,root) %{_libdir}/libSlice.so | |
471 | %{_includedir}/Freeze | |
472 | %{_includedir}/Glacier2 | |
473 | %{_includedir}/Ice | |
474 | %{_includedir}/IceBox | |
475 | %{_includedir}/IceGrid | |
476 | %{_includedir}/IcePatch2 | |
477 | %{_includedir}/IceSSL | |
478 | %{_includedir}/IceStorm | |
479 | %{_includedir}/IceUtil | |
480 | %{_includedir}/IceXML | |
481 | %{_includedir}/Slice | |
85bc9249 ER |
482 | %{_mandir}/man1/slice2cpp.1* |
483 | %{_mandir}/man1/slice2freeze.1* | |
d815748a | 484 | %if %{with java} |
fe559ddb | 485 | %{_sysconfdir}/ant.d/ice |
d815748a | 486 | %{_javadir}/ant/ant-ice-%{version}.jar |
487 | %{_javadir}/ant/ant-ice.jar | |
488 | %endif | |
f905d0db | 489 | |
6cff1ec8 | 490 | %if %{with dotnet} |
46b0ec3f ER |
491 | %{_pkgconfigdir}/Glacier2.pc |
492 | %{_pkgconfigdir}/Ice.pc | |
493 | %{_pkgconfigdir}/IceBox.pc | |
494 | %{_pkgconfigdir}/IceGrid.pc | |
495 | %{_pkgconfigdir}/IcePatch2.pc | |
496 | %{_pkgconfigdir}/IceStorm.pc | |
6cff1ec8 | 497 | %endif |
f905d0db ER |
498 | |
499 | # as we do not have -devel for each binding, these are in main -devel | |
500 | # -csharp | |
501 | %attr(755,root,root) %{_bindir}/slice2cs | |
85bc9249 | 502 | %{_mandir}/man1/slice2cs.1* |
f905d0db ER |
503 | # -java |
504 | %attr(755,root,root) %{_bindir}/slice2freezej | |
505 | %attr(755,root,root) %{_bindir}/slice2java | |
85bc9249 ER |
506 | %{_mandir}/man1/slice2freezej.1* |
507 | %{_mandir}/man1/slice2java.1* | |
f905d0db ER |
508 | # -php |
509 | %attr(755,root,root) %{_bindir}/slice2php | |
510 | # -python | |
511 | %attr(755,root,root) %{_bindir}/slice2py | |
85bc9249 | 512 | %{_mandir}/man1/slice2py.1* |
f905d0db ER |
513 | # -ruby |
514 | %attr(755,root,root) %{_bindir}/slice2rb | |
85bc9249 | 515 | %{_mandir}/man1/slice2rb.1* |
f905d0db | 516 | |
46b0ec3f ER |
517 | %files servers |
518 | %defattr(644,root,root,755) | |
519 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/glacier2router.conf | |
520 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/icegridnode.conf | |
521 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/icegridregistry.conf | |
522 | %attr(754,root,root) /etc/rc.d/init.d/glacier2router | |
523 | %attr(754,root,root) /etc/rc.d/init.d/icegridnode | |
524 | %attr(754,root,root) /etc/rc.d/init.d/icegridregistry | |
525 | ||
6cff1ec8 | 526 | %if %{with dotnet} |
a33c5a13 | 527 | %files -n csharp-%{name} |
46b0ec3f ER |
528 | %defattr(644,root,root,755) |
529 | %attr(755,root,root) %{_bindir}/iceboxnet.exe | |
f7e92609 | 530 | %{_mandir}/man1/iceboxnet.1* |
d933ee2e | 531 | %{_prefix}/lib/mono/Glacier2 |
532 | %{_prefix}/lib/mono/Ice | |
533 | %{_prefix}/lib/mono/IceBox | |
534 | %{_prefix}/lib/mono/IceGrid | |
535 | %{_prefix}/lib/mono/IcePatch2 | |
536 | %{_prefix}/lib/mono/IceStorm | |
eef55816 | 537 | |
d933ee2e | 538 | %{_prefix}/lib/mono/gac/Glacier2 |
539 | %{_prefix}/lib/mono/gac/Ice | |
540 | %{_prefix}/lib/mono/gac/IceBox | |
541 | %{_prefix}/lib/mono/gac/IceGrid | |
542 | %{_prefix}/lib/mono/gac/IcePatch2 | |
543 | %{_prefix}/lib/mono/gac/IceStorm | |
eef55816 | 544 | |
f7e92609 JR |
545 | %{_prefix}/lib/mono/gac/policy.3.5.Glacier2 |
546 | %{_prefix}/lib/mono/gac/policy.3.5.Ice | |
547 | %{_prefix}/lib/mono/gac/policy.3.5.IceBox | |
548 | %{_prefix}/lib/mono/gac/policy.3.5.IceGrid | |
549 | %{_prefix}/lib/mono/gac/policy.3.5.IcePatch2 | |
550 | %{_prefix}/lib/mono/gac/policy.3.5.IceStorm | |
6cff1ec8 | 551 | %endif |
46b0ec3f | 552 | |
6cff1ec8 | 553 | %if %{with python} |
a33c5a13 | 554 | %files -n python-%{name} |
46b0ec3f ER |
555 | %defattr(644,root,root,755) |
556 | %{py_sitedir}/ice.pth | |
557 | %dir %{py_sitedir}/Ice | |
558 | %dir %{py_sitedir}/Ice/IceBox | |
559 | %dir %{py_sitedir}/Ice/IceGrid | |
560 | %dir %{py_sitedir}/Ice/IcePatch2 | |
561 | %dir %{py_sitedir}/Ice/IceStorm | |
562 | %{py_sitedir}/Ice/*.py[co] | |
563 | %{py_sitedir}/Ice/IceBox/*.py[co] | |
564 | %{py_sitedir}/Ice/IceGrid/*.py[co] | |
565 | %{py_sitedir}/Ice/IcePatch2/*.py[co] | |
566 | %{py_sitedir}/Ice/IceStorm/*.py[co] | |
f905d0db | 567 | %attr(755,root,root) %{py_sitedir}/Ice/IcePy.so |
6cff1ec8 | 568 | %endif |
46b0ec3f | 569 | |
6cff1ec8 | 570 | %if %{with ruby} |
a33c5a13 | 571 | %files -n ruby-%{name} |
46b0ec3f | 572 | %defattr(644,root,root,755) |
1b7259a4 ER |
573 | %{ruby_vendorarchdir}/Glacier2.rb |
574 | %{ruby_vendorarchdir}/Glacier2 | |
575 | %{ruby_vendorarchdir}/Ice.rb | |
576 | %{ruby_vendorarchdir}/Ice | |
577 | %{ruby_vendorarchdir}/IceBox.rb | |
578 | %{ruby_vendorarchdir}/IceBox | |
579 | %{ruby_vendorarchdir}/IceGrid.rb | |
580 | %{ruby_vendorarchdir}/IceGrid | |
581 | %{ruby_vendorarchdir}/IcePatch2.rb | |
582 | %{ruby_vendorarchdir}/IcePatch2 | |
583 | %{ruby_vendorarchdir}/IceStorm.rb | |
584 | %dir %{ruby_vendorarchdir}/IceStorm | |
585 | %{ruby_vendorarchdir}/IceStorm/IceStorm.rb | |
586 | %attr(755,root,root) %{ruby_vendorarchdir}/IceRuby.so | |
6cff1ec8 | 587 | %endif |
46b0ec3f | 588 | |
6cff1ec8 | 589 | %if %{with java} |
a33c5a13 | 590 | %files -n java-%{name} |
46b0ec3f ER |
591 | %defattr(644,root,root,755) |
592 | %{_javadir}/Freeze-%{version}.jar | |
593 | %{_javadir}/Freeze.jar | |
594 | %{_javadir}/Ice-%{version}.jar | |
595 | %{_javadir}/Ice.jar | |
6cff1ec8 | 596 | %endif |
46b0ec3f | 597 | |
6cff1ec8 | 598 | %if %{with php} |
aa5bb803 | 599 | %files -n %{php_name}-%{name} |
46b0ec3f ER |
600 | %defattr(644,root,root,755) |
601 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/ice.ini | |
602 | %attr(755,root,root) %{php_extensiondir}/IcePHP.so | |
603 | %{php_data_dir}/Glacier2.php | |
604 | %{php_data_dir}/Glacier2 | |
605 | %{php_data_dir}/Ice.php | |
606 | %{php_data_dir}/Ice | |
607 | %{php_data_dir}/IceBox.php | |
608 | %{php_data_dir}/IceBox | |
609 | %{php_data_dir}/IceGrid.php | |
610 | %{php_data_dir}/IceGrid | |
611 | %{php_data_dir}/IcePatch2.php | |
612 | %{php_data_dir}/IcePatch2 | |
613 | %{php_data_dir}/IceStorm.php | |
614 | %{php_data_dir}/IceStorm | |
6cff1ec8 | 615 | %endif |