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