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