]>
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 | ||
5a9bdbd6 | 28 | Summary: The Ice base runtime and services |
ad948676 | 29 | Summary(pl.UTF-8): Podstawowy pakiet uruchomieniowy oraz usługowy Ice |
5a9bdbd6 | 30 | Name: ice |
ad948676 | 31 | Version: 3.6.3 |
0139cfb7 | 32 | Release: 7 |
5a9bdbd6 | 33 | License: GPL v2 with exceptions (see ICE_LICENSE) |
85d0fae0 | 34 | Group: Applications |
ad948676 | 35 | #Source0Download: https://github.com/zeroc-ice/ice/releases |
e51f3d58 | 36 | Source0: https://github.com/zeroc-ice/ice/archive/v%{version}/%{name}-%{version}.tar.gz |
ad948676 JB |
37 | # Source0-md5: 88bf025890cdd8d1193a7155dc539671 |
38 | # Extracted from http://zeroc.com/download/Ice/3.6/rpm/el7/SRPMS/ice-3.6.3-1.el7.src.rpm | |
56a96b27 | 39 | Source1: Ice-rpmbuild-%{version}.tar.gz |
ad948676 | 40 | # Source1-md5: 38536c26981a5cdc9b57723bc28aea44 |
85bc9249 ER |
41 | Source3: %{name}gridgui |
42 | Source4: IceGridAdmin.desktop | |
e51f3d58 | 43 | Patch0: no-arch-opts.patch |
70caea28 | 44 | Patch1: csharp-build.patch |
ad948676 JB |
45 | Patch2: %{name}-db.patch |
46 | Patch3: %{name}-php7.patch | |
0139cfb7 | 47 | Patch4: gcc11.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 | |
0139cfb7 | 224 | %patch4 -p1 |
457093df | 225 | |
fa987e4c ER |
226 | %if %{with java} |
227 | # we nuke it only when we build new class later, as ice build system expects the file being around | |
e51f3d58 | 228 | %{__rm} cpp/src/ca/ImportKey.class |
fa987e4c | 229 | %endif |
11130741 | 230 | |
6cff1ec8 | 231 | # update path to our install |
ad948676 JB |
232 | %{__sed} -i -e 's,/usr/share/Ice-[0-9.]\+,%{_datadir}/Ice,' Ice-rpmbuild-*/icegridregistry.conf |
233 | %{__sed} -i -e 's,ln -s Ice-\$(VERSION)/slice,ln -s Ice/slice,' config/Make.common.rules | |
234 | %{__sed} -i -e 's,ln -s \.\./Ice-\$(VERSION)/slice,ln -s ../Ice/slice,' config/Make.common.rules | |
6cff1ec8 | 235 | |
ad948676 | 236 | %{__sed} -i -e '1s,/usr/bin/env python,%{__python},' cpp/config/upgradeicegrid36.py |
85bc9249 | 237 | |
6cff1ec8 | 238 | %build |
9a1d0e0d ER |
239 | %if %{with java} |
240 | # Rebuild the Java ImportKey class - need it early for main cpp build | |
241 | javac cpp/src/ca/ImportKey.java | |
242 | %endif | |
243 | ||
70caea28 | 244 | %{__make} -C cpp \ |
ad948676 JB |
245 | CC="%{__cc}" \ |
246 | CXX="%{__cxx}" \ | |
11130741 | 247 | CFLAGS="%{rpmcflags} -fPIC" \ |
aed21784 | 248 | CXXFLAGS="%{rpmcxxflags} -fPIC -pthread" \ |
ad948676 | 249 | GCC_COMPILER=yes \ |
e51f3d58 JR |
250 | %ifarch x32 |
251 | lp64suffix=x32 \ | |
252 | %endif | |
253 | embedded_runpath=no | |
11130741 | 254 | |
9a1d0e0d ER |
255 | %if %{with gui} |
256 | # Create the IceGrid icon | |
257 | convert java/resources/icons/icegrid.ico temp.png | |
ad948676 JB |
258 | %{__mv} temp-8.png java/resources/icons/icegrid.png |
259 | %{__rm} temp*.png | |
9a1d0e0d ER |
260 | %endif |
261 | ||
11130741 ER |
262 | %if %{with java} |
263 | # Set the CLASSPATH correctly for the Java compile | |
264 | export CLASSPATH=$(build-classpath db jgoodies-forms jgoodies-looks) | |
265 | ||
70caea28 | 266 | %{__make} -C java \ |
ad948676 JB |
267 | CC="%{__cc}" \ |
268 | CXX="%{__cxx}" \ | |
11130741 | 269 | CFLAGS="%{rpmcflags} -fPIC" \ |
aed21784 | 270 | CXXFLAGS="%{rpmcxxflags} -fPIC -pthread" \ |
e51f3d58 JR |
271 | %ifarch x32 |
272 | lp64suffix=x32 \ | |
273 | %endif | |
274 | embedded_runpath=no | |
11130741 ER |
275 | %endif |
276 | ||
277 | %if %{with dotnet} | |
70caea28 | 278 | %{__make} -C csharp \ |
cf258da1 | 279 | MCS=dmcs \ |
e51f3d58 JR |
280 | %ifarch x32 |
281 | lp64suffix=x32 \ | |
282 | %endif | |
283 | embedded_runpath=no | |
11130741 ER |
284 | %endif |
285 | ||
286 | %if %{with python} | |
70caea28 | 287 | %{__make} -C python \ |
ad948676 JB |
288 | CC="%{__cc}" \ |
289 | CXX="%{__cxx}" \ | |
11130741 | 290 | CFLAGS="%{rpmcflags} -fPIC" \ |
aed21784 | 291 | CXXFLAGS="%{rpmcxxflags} -fPIC -pthread" \ |
e51f3d58 JR |
292 | %ifarch x32 |
293 | lp64suffix=x32 \ | |
294 | %endif | |
295 | embedded_runpath=no | |
11130741 ER |
296 | %endif |
297 | ||
298 | %if %{with ruby} | |
70caea28 | 299 | %{__make} -C ruby \ |
ad948676 JB |
300 | CC="%{__cc}" \ |
301 | CXX="%{__cxx}" \ | |
11130741 | 302 | CFLAGS="%{rpmcflags} -fPIC" \ |
aed21784 | 303 | CXXFLAGS="%{rpmcxxflags} -fPIC -pthread" \ |
e51f3d58 JR |
304 | %ifarch x32 |
305 | lp64suffix=x32 \ | |
306 | %endif | |
307 | embedded_runpath=no | |
11130741 ER |
308 | %endif |
309 | ||
310 | %if %{with php} | |
70caea28 | 311 | %{__make} -C php \ |
11130741 ER |
312 | PHP_HOME=%{_prefix} \ |
313 | CFLAGS="%{rpmcflags} -fPIC" \ | |
aed21784 | 314 | CXXFLAGS="%{rpmcxxflags} -fPIC -pthread" \ |
e51f3d58 JR |
315 | %ifarch x32 |
316 | lp64suffix=x32 \ | |
317 | %endif | |
318 | embedded_runpath=no | |
11130741 | 319 | %endif |
85d0fae0 | 320 | |
321 | %install | |
322 | rm -rf $RPM_BUILD_ROOT | |
85d0fae0 | 323 | |
6cff1ec8 | 324 | %{__make} -C cpp install \ |
e51f3d58 JR |
325 | %ifarch x32 |
326 | lp64suffix=x32 \ | |
327 | %endif | |
ad948676 JB |
328 | SLICE_DIR_SYMLINK=yes \ |
329 | DESTDIR=$RPM_BUILD_ROOT \ | |
330 | prefix=%{_prefix} \ | |
331 | install_configdir=%{_datadir}/Ice \ | |
332 | install_docdir=%{_datadir}/Ice \ | |
333 | install_slicedir=%{_datadir}/Ice/slice | |
85bc9249 | 334 | |
11130741 ER |
335 | %if %{with java} |
336 | %{__make} -C java install \ | |
e51f3d58 JR |
337 | %ifarch x32 |
338 | lp64suffix=x32 \ | |
339 | %endif | |
ad948676 JB |
340 | DESTDIR=$RPM_BUILD_ROOT \ |
341 | prefix=%{_prefix} \ | |
342 | install_docdir=%{_datadir}/Ice \ | |
343 | install_slicedir=%{_datadir}/Ice/slice | |
6cff1ec8 | 344 | |
11130741 ER |
345 | # Move Java stuff where it should be |
346 | install -d $RPM_BUILD_ROOT%{_javadir} | |
ad948676 | 347 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/lib/Ice.jar $RPM_BUILD_ROOT%{_javadir}/Ice-%{version}.jar |
11130741 | 348 | ln -s Ice-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/Ice.jar |
ad948676 | 349 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/lib/Freeze.jar $RPM_BUILD_ROOT%{_javadir}/Freeze-%{version}.jar |
11130741 | 350 | ln -s Freeze-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/Freeze.jar |
d815748a | 351 | |
352 | # Register ant target | |
353 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ant.d,%{_javadir}/ant} | |
ad948676 | 354 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/lib/ant-ice.jar $RPM_BUILD_ROOT%{_javadir}/ant/ant-ice-%{version}.jar |
d815748a | 355 | ln -s ant-ice-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/ant/ant-ice.jar |
356 | echo 'ice ant/ant-ice' > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/ice | |
11130741 ER |
357 | %endif |
358 | ||
359 | %if %{with gui} | |
360 | # Install the IceGrid GUI | |
fa987e4c | 361 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} |
ad948676 | 362 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/lib/IceGridGUI.jar $RPM_BUILD_ROOT%{_datadir}/Ice |
85bc9249 ER |
363 | cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir} |
364 | install -p %{SOURCE3} $RPM_BUILD_ROOT%{_bindir} | |
9a1d0e0d | 365 | cp -a java/resources/icons/icegrid.png $RPM_BUILD_ROOT%{_pixmapsdir} |
ad948676 | 366 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/help/IceGridAdmin $RPM_BUILD_ROOT%{_docdir}/Ice-%{version} |
6cff1ec8 | 367 | %endif |
11130741 ER |
368 | |
369 | %if %{with dotnet} | |
6cff1ec8 | 370 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
e51f3d58 JR |
371 | %{__make} -C csharp install \ |
372 | %ifarch x32 | |
373 | lp64suffix=x32 \ | |
374 | %endif | |
6cff1ec8 | 375 | GACINSTALL=yes \ |
ad948676 JB |
376 | DESTDIR=$RPM_BUILD_ROOT \ |
377 | prefix=%{_prefix} \ | |
378 | install_pkgconfigdir=%{_pkgconfigdir} \ | |
379 | install_docdir=%{_datadir}/Ice \ | |
380 | install_slicedir=%{_datadir}/Ice/slice | |
11130741 ER |
381 | %endif |
382 | ||
383 | %if %{with python} | |
e51f3d58 JR |
384 | %{__make} -C python install \ |
385 | %ifarch x32 | |
386 | lp64suffix=x32 \ | |
387 | %endif | |
ad948676 JB |
388 | DESTDIR=$RPM_BUILD_ROOT \ |
389 | prefix=%{_prefix} \ | |
390 | install_pythondir=%{py_sitedir} \ | |
391 | install_docdir=%{_datadir}/Ice \ | |
392 | install_slicedir=%{_datadir}/Ice/slice | |
393 | ||
394 | %{__mv} $RPM_BUILD_ROOT%{py_sitedir}/IcePy.so{.%{version},} | |
395 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/IcePy.so.* | |
396 | ||
46b0ec3f ER |
397 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
398 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
399 | %py_postclean | |
11130741 ER |
400 | %endif |
401 | ||
402 | %if %{with ruby} | |
e51f3d58 JR |
403 | %{__make} -C ruby install \ |
404 | %ifarch x32 | |
405 | lp64suffix=x32 \ | |
406 | %endif | |
ad948676 JB |
407 | DESTDIR=$RPM_BUILD_ROOT \ |
408 | prefix=%{_prefix} \ | |
409 | install_rubydir=%{ruby_vendorlibdir} \ | |
410 | install_libdir=%{ruby_vendorarchdir} \ | |
411 | install_docdir=%{_datadir}/Ice \ | |
412 | install_slicedir=%{_datadir}/Ice/slice | |
413 | ||
414 | %{__mv} $RPM_BUILD_ROOT%{ruby_vendorarchdir}/IceRuby.so{.%{version},} | |
415 | %{__rm} $RPM_BUILD_ROOT%{ruby_vendorarchdir}/IceRuby.so.* | |
11130741 ER |
416 | %endif |
417 | ||
418 | %if %{with php} | |
6cff1ec8 | 419 | %{__make} -C php install \ |
e51f3d58 JR |
420 | %ifarch x32 |
421 | lp64suffix=x32 \ | |
422 | %endif | |
ad948676 JB |
423 | DESTDIR=$RPM_BUILD_ROOT \ |
424 | prefix=%{_prefix} \ | |
425 | install_docdir=%{_datadir}/Ice \ | |
426 | install_slicedir=%{_datadir}/Ice/slice | |
427 | ||
428 | install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d | |
eef55816 | 429 | cp -a Ice-rpmbuild-*/ice.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d |
11130741 ER |
430 | %endif |
431 | ||
ad948676 JB |
432 | # packaged as %doc |
433 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/Ice/{ICE_LICENSE,LICENSE} | |
d66964c1 | 434 | |
6cff1ec8 ER |
435 | # Install the servers |
436 | install -d $RPM_BUILD_ROOT%{_sysconfdir} | |
eef55816 | 437 | cp -a Ice-rpmbuild-*/*.conf $RPM_BUILD_ROOT%{_sysconfdir} |
ad948676 | 438 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
6cff1ec8 | 439 | for i in icegridregistry icegridnode glacier2router; do |
ad948676 | 440 | cp -a Ice-rpmbuild-*/$i.redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/$i |
6cff1ec8 ER |
441 | done |
442 | install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/icegrid | |
443 | ||
85d0fae0 | 444 | %clean |
445 | rm -rf $RPM_BUILD_ROOT | |
446 | ||
447 | %post -p /sbin/ldconfig | |
448 | %postun -p /sbin/ldconfig | |
449 | ||
aa5bb803 | 450 | %post -n %{php_name}-%{name} |
46b0ec3f ER |
451 | %php_webserver_restart |
452 | ||
aa5bb803 | 453 | %postun -n %{php_name}-%{name} |
46b0ec3f ER |
454 | if [ "$1" = 0 ]; then |
455 | %php_webserver_restart | |
456 | fi | |
457 | ||
85d0fae0 | 458 | %files |
459 | %defattr(644,root,root,755) | |
ad948676 | 460 | %doc ICE_LICENSE CHANGELOG*.md README.md |
85d0fae0 | 461 | %attr(755,root,root) %{_bindir}/dumpdb |
462 | %attr(755,root,root) %{_bindir}/glacier2router | |
463 | %attr(755,root,root) %{_bindir}/icebox | |
464 | %attr(755,root,root) %{_bindir}/iceboxadmin | |
85d0fae0 | 465 | %attr(755,root,root) %{_bindir}/icegridadmin |
ad948676 | 466 | %attr(755,root,root) %{_bindir}/icegriddb |
85d0fae0 | 467 | %attr(755,root,root) %{_bindir}/icegridnode |
468 | %attr(755,root,root) %{_bindir}/icegridregistry | |
469 | %attr(755,root,root) %{_bindir}/icepatch2calc | |
470 | %attr(755,root,root) %{_bindir}/icepatch2client | |
471 | %attr(755,root,root) %{_bindir}/icepatch2server | |
472 | %attr(755,root,root) %{_bindir}/icestormadmin | |
ad948676 | 473 | %attr(755,root,root) %{_bindir}/icestormdb |
85d0fae0 | 474 | %attr(755,root,root) %{_bindir}/icestormmigrate |
f905d0db | 475 | %attr(755,root,root) %{_bindir}/slice2html |
9a1d0e0d | 476 | %attr(755,root,root) %{_bindir}/transformdb |
85bc9249 ER |
477 | %{_mandir}/man1/dumpdb.1* |
478 | %{_mandir}/man1/glacier2router.1* | |
479 | %{_mandir}/man1/icebox.1* | |
480 | %{_mandir}/man1/iceboxadmin.1* | |
481 | %{_mandir}/man1/icegridadmin.1* | |
ad948676 | 482 | %{_mandir}/man1/icegriddb.1* |
85bc9249 ER |
483 | %{_mandir}/man1/icegridnode.1* |
484 | %{_mandir}/man1/icegridregistry.1* | |
485 | %{_mandir}/man1/icepatch2calc.1* | |
486 | %{_mandir}/man1/icepatch2client.1* | |
487 | %{_mandir}/man1/icepatch2server.1* | |
488 | %{_mandir}/man1/icestormadmin.1* | |
ad948676 | 489 | %{_mandir}/man1/icestormdb.1* |
c7be5671 | 490 | %{_mandir}/man1/icestormmigrate.1* |
85bc9249 ER |
491 | %{_mandir}/man1/slice2html.1* |
492 | %{_mandir}/man1/transformdb.1* | |
46b0ec3f ER |
493 | %attr(755,root,root) %{_libdir}/libFreeze.so.*.*.* |
494 | %attr(755,root,root) %ghost %{_libdir}/libFreeze.so.%{soversion} | |
495 | %attr(755,root,root) %{_libdir}/libGlacier2.so.*.*.* | |
496 | %attr(755,root,root) %ghost %{_libdir}/libGlacier2.so.%{soversion} | |
e51f3d58 JR |
497 | %attr(755,root,root) %{_libdir}/libGlacier2CryptPermissionsVerifier.so.*.*.* |
498 | %attr(755,root,root) %ghost %{_libdir}/libGlacier2CryptPermissionsVerifier.so.%{soversion} | |
46b0ec3f ER |
499 | %attr(755,root,root) %{_libdir}/libIce.so.*.*.* |
500 | %attr(755,root,root) %ghost %{_libdir}/libIce.so.%{soversion} | |
501 | %attr(755,root,root) %{_libdir}/libIceBox.so.*.*.* | |
502 | %attr(755,root,root) %ghost %{_libdir}/libIceBox.so.%{soversion} | |
e51f3d58 JR |
503 | %attr(755,root,root) %{_libdir}/libIceDiscovery.so.*.*.* |
504 | %attr(755,root,root) %ghost %{_libdir}/libIceDiscovery.so.%{soversion} | |
46b0ec3f ER |
505 | %attr(755,root,root) %{_libdir}/libIceGrid.so.*.*.* |
506 | %attr(755,root,root) %ghost %{_libdir}/libIceGrid.so.%{soversion} | |
e51f3d58 JR |
507 | %attr(755,root,root) %{_libdir}/libIceLocatorDiscovery.so.*.*.* |
508 | %attr(755,root,root) %ghost %{_libdir}/libIceLocatorDiscovery.so.%{soversion} | |
46b0ec3f ER |
509 | %attr(755,root,root) %{_libdir}/libIcePatch2.so.*.*.* |
510 | %attr(755,root,root) %ghost %{_libdir}/libIcePatch2.so.%{soversion} | |
511 | %attr(755,root,root) %{_libdir}/libIceSSL.so.*.*.* | |
512 | %attr(755,root,root) %ghost %{_libdir}/libIceSSL.so.%{soversion} | |
513 | %attr(755,root,root) %{_libdir}/libIceStorm.so.*.*.* | |
514 | %attr(755,root,root) %ghost %{_libdir}/libIceStorm.so.%{soversion} | |
46b0ec3f ER |
515 | %attr(755,root,root) %{_libdir}/libIceStormService.so.*.*.* |
516 | %attr(755,root,root) %ghost %{_libdir}/libIceStormService.so.%{soversion} | |
517 | %attr(755,root,root) %{_libdir}/libIceUtil.so.*.*.* | |
518 | %attr(755,root,root) %ghost %{_libdir}/libIceUtil.so.%{soversion} | |
519 | %attr(755,root,root) %{_libdir}/libIceXML.so.*.*.* | |
520 | %attr(755,root,root) %ghost %{_libdir}/libIceXML.so.%{soversion} | |
521 | %attr(755,root,root) %{_libdir}/libSlice.so.*.*.* | |
522 | %attr(755,root,root) %ghost %{_libdir}/libSlice.so.%{soversion} | |
ad948676 JB |
523 | %dir %{_datadir}/Ice |
524 | %{_datadir}/Ice/slice | |
525 | %{_datadir}/Ice/icegrid-slice.*.ice.gz | |
526 | %{_datadir}/Ice/templates.xml | |
527 | %attr(755,root,root) %{_datadir}/Ice/upgradeicegrid36.py | |
528 | %{_datadir}/slice | |
85d0fae0 | 529 | |
401734e9 | 530 | %if %{with gui} |
fa987e4c ER |
531 | %files -n icegrid-gui |
532 | %defattr(644,root,root,755) | |
46b0ec3f | 533 | %attr(755,root,root) %{_bindir}/icegridgui |
fa987e4c | 534 | %{_datadir}/Ice/IceGridGUI.jar |
85bc9249 | 535 | %{_mandir}/man1/icegridgui.1* |
46b0ec3f | 536 | %{_desktopdir}/IceGridAdmin.desktop |
fa987e4c | 537 | %{_pixmapsdir}/icegrid.png |
6cff1ec8 | 538 | %endif |
46b0ec3f | 539 | |
85d0fae0 | 540 | %files devel |
541 | %defattr(644,root,root,755) | |
f905d0db ER |
542 | %attr(755,root,root) %{_bindir}/slice2cpp |
543 | %attr(755,root,root) %{_bindir}/slice2freeze | |
85d0fae0 | 544 | %attr(755,root,root) %{_libdir}/libFreeze.so |
e51f3d58 | 545 | %attr(755,root,root) %{_libdir}/libGlacier2CryptPermissionsVerifier.so |
85d0fae0 | 546 | %attr(755,root,root) %{_libdir}/libGlacier2.so |
85d0fae0 | 547 | %attr(755,root,root) %{_libdir}/libIceBox.so |
e51f3d58 | 548 | %attr(755,root,root) %{_libdir}/libIceDiscovery.so |
85d0fae0 | 549 | %attr(755,root,root) %{_libdir}/libIceGrid.so |
e51f3d58 | 550 | %attr(755,root,root) %{_libdir}/libIceLocatorDiscovery.so |
85d0fae0 | 551 | %attr(755,root,root) %{_libdir}/libIcePatch2.so |
e51f3d58 | 552 | %attr(755,root,root) %{_libdir}/libIce.so |
85d0fae0 | 553 | %attr(755,root,root) %{_libdir}/libIceSSL.so |
85d0fae0 | 554 | %attr(755,root,root) %{_libdir}/libIceStormService.so |
e51f3d58 | 555 | %attr(755,root,root) %{_libdir}/libIceStorm.so |
85d0fae0 | 556 | %attr(755,root,root) %{_libdir}/libIceUtil.so |
557 | %attr(755,root,root) %{_libdir}/libIceXML.so | |
558 | %attr(755,root,root) %{_libdir}/libSlice.so | |
559 | %{_includedir}/Freeze | |
560 | %{_includedir}/Glacier2 | |
561 | %{_includedir}/Ice | |
562 | %{_includedir}/IceBox | |
563 | %{_includedir}/IceGrid | |
564 | %{_includedir}/IcePatch2 | |
565 | %{_includedir}/IceSSL | |
566 | %{_includedir}/IceStorm | |
567 | %{_includedir}/IceUtil | |
85d0fae0 | 568 | %{_includedir}/Slice |
85bc9249 ER |
569 | %{_mandir}/man1/slice2cpp.1* |
570 | %{_mandir}/man1/slice2freeze.1* | |
d815748a | 571 | %if %{with java} |
fe559ddb | 572 | %{_sysconfdir}/ant.d/ice |
d815748a | 573 | %{_javadir}/ant/ant-ice-%{version}.jar |
574 | %{_javadir}/ant/ant-ice.jar | |
575 | %endif | |
f905d0db | 576 | |
6cff1ec8 | 577 | %if %{with dotnet} |
46b0ec3f ER |
578 | %{_pkgconfigdir}/Glacier2.pc |
579 | %{_pkgconfigdir}/Ice.pc | |
580 | %{_pkgconfigdir}/IceBox.pc | |
70caea28 | 581 | %{_pkgconfigdir}/IceDiscovery.pc |
46b0ec3f | 582 | %{_pkgconfigdir}/IceGrid.pc |
70caea28 | 583 | %{_pkgconfigdir}/IceLocatorDiscovery.pc |
46b0ec3f | 584 | %{_pkgconfigdir}/IcePatch2.pc |
70caea28 | 585 | %{_pkgconfigdir}/IceSSL.pc |
46b0ec3f | 586 | %{_pkgconfigdir}/IceStorm.pc |
6cff1ec8 | 587 | %endif |
f905d0db ER |
588 | |
589 | # as we do not have -devel for each binding, these are in main -devel | |
590 | # -csharp | |
591 | %attr(755,root,root) %{_bindir}/slice2cs | |
85bc9249 | 592 | %{_mandir}/man1/slice2cs.1* |
f905d0db ER |
593 | # -java |
594 | %attr(755,root,root) %{_bindir}/slice2freezej | |
595 | %attr(755,root,root) %{_bindir}/slice2java | |
85bc9249 ER |
596 | %{_mandir}/man1/slice2freezej.1* |
597 | %{_mandir}/man1/slice2java.1* | |
e51f3d58 JR |
598 | # -js |
599 | %attr(755,root,root) %{_bindir}/slice2js | |
600 | %{_mandir}/man1/slice2js.1* | |
f905d0db ER |
601 | # -php |
602 | %attr(755,root,root) %{_bindir}/slice2php | |
c7be5671 | 603 | %{_mandir}/man1/slice2php.1* |
f905d0db | 604 | # -python |
ad948676 | 605 | %attr(755,root,root) %{_bindir}/slice2py |
85bc9249 | 606 | %{_mandir}/man1/slice2py.1* |
f905d0db | 607 | |
46b0ec3f ER |
608 | %files servers |
609 | %defattr(644,root,root,755) | |
610 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/glacier2router.conf | |
611 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/icegridnode.conf | |
612 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/icegridregistry.conf | |
613 | %attr(754,root,root) /etc/rc.d/init.d/glacier2router | |
614 | %attr(754,root,root) /etc/rc.d/init.d/icegridnode | |
615 | %attr(754,root,root) /etc/rc.d/init.d/icegridregistry | |
616 | ||
6cff1ec8 | 617 | %if %{with dotnet} |
a33c5a13 | 618 | %files -n csharp-%{name} |
46b0ec3f ER |
619 | %defattr(644,root,root,755) |
620 | %attr(755,root,root) %{_bindir}/iceboxnet.exe | |
f7e92609 | 621 | %{_mandir}/man1/iceboxnet.1* |
d933ee2e | 622 | %{_prefix}/lib/mono/Glacier2 |
623 | %{_prefix}/lib/mono/Ice | |
624 | %{_prefix}/lib/mono/IceBox | |
70caea28 | 625 | %{_prefix}/lib/mono/IceDiscovery |
d933ee2e | 626 | %{_prefix}/lib/mono/IceGrid |
70caea28 | 627 | %{_prefix}/lib/mono/IceLocatorDiscovery |
d933ee2e | 628 | %{_prefix}/lib/mono/IcePatch2 |
70caea28 | 629 | %{_prefix}/lib/mono/IceSSL |
d933ee2e | 630 | %{_prefix}/lib/mono/IceStorm |
eef55816 | 631 | |
d933ee2e | 632 | %{_prefix}/lib/mono/gac/Glacier2 |
633 | %{_prefix}/lib/mono/gac/Ice | |
634 | %{_prefix}/lib/mono/gac/IceBox | |
70caea28 | 635 | %{_prefix}/lib/mono/gac/IceDiscovery |
d933ee2e | 636 | %{_prefix}/lib/mono/gac/IceGrid |
70caea28 | 637 | %{_prefix}/lib/mono/gac/IceLocatorDiscovery |
d933ee2e | 638 | %{_prefix}/lib/mono/gac/IcePatch2 |
70caea28 | 639 | %{_prefix}/lib/mono/gac/IceSSL |
d933ee2e | 640 | %{_prefix}/lib/mono/gac/IceStorm |
ad948676 JB |
641 | |
642 | %{_prefix}/lib/mono/gac/policy.3.6.Glacier2 | |
643 | %{_prefix}/lib/mono/gac/policy.3.6.Ice | |
644 | %{_prefix}/lib/mono/gac/policy.3.6.IceBox | |
645 | %{_prefix}/lib/mono/gac/policy.3.6.IceDiscovery | |
646 | %{_prefix}/lib/mono/gac/policy.3.6.IceGrid | |
647 | %{_prefix}/lib/mono/gac/policy.3.6.IceLocatorDiscovery | |
648 | %{_prefix}/lib/mono/gac/policy.3.6.IcePatch2 | |
649 | %{_prefix}/lib/mono/gac/policy.3.6.IceSSL | |
650 | %{_prefix}/lib/mono/gac/policy.3.6.IceStorm | |
6cff1ec8 | 651 | %endif |
46b0ec3f | 652 | |
6cff1ec8 | 653 | %if %{with python} |
a33c5a13 | 654 | %files -n python-%{name} |
46b0ec3f | 655 | %defattr(644,root,root,755) |
ad948676 JB |
656 | %attr(755,root,root) %{py_sitedir}/IcePy.so |
657 | %{py_sitedir}/IceBox | |
658 | %{py_sitedir}/IceGrid | |
659 | %{py_sitedir}/IceMX | |
660 | %{py_sitedir}/IcePatch2 | |
661 | %{py_sitedir}/IceStorm | |
662 | %{py_sitedir}/Glacier2*.py[co] | |
663 | %{py_sitedir}/Ice.py[co] | |
664 | %{py_sitedir}/IceBox*.py[co] | |
665 | %{py_sitedir}/IceGrid*.py[co] | |
666 | %{py_sitedir}/IcePatch2*.py[co] | |
667 | %{py_sitedir}/IceStorm*.py[co] | |
668 | %{py_sitedir}/Ice_*.py[co] | |
6cff1ec8 | 669 | %endif |
46b0ec3f | 670 | |
6cff1ec8 | 671 | %if %{with ruby} |
a33c5a13 | 672 | %files -n ruby-%{name} |
46b0ec3f | 673 | %defattr(644,root,root,755) |
ad948676 JB |
674 | %{ruby_vendorlibdir}/Glacier2.rb |
675 | %{ruby_vendorlibdir}/Glacier2 | |
676 | %{ruby_vendorlibdir}/Ice.rb | |
677 | %{ruby_vendorlibdir}/Ice | |
678 | %{ruby_vendorlibdir}/IceBox.rb | |
679 | %{ruby_vendorlibdir}/IceBox | |
680 | %{ruby_vendorlibdir}/IceGrid.rb | |
681 | %{ruby_vendorlibdir}/IceGrid | |
682 | %{ruby_vendorlibdir}/IcePatch2.rb | |
683 | %{ruby_vendorlibdir}/IcePatch2 | |
684 | %{ruby_vendorlibdir}/IceStorm.rb | |
685 | %dir %{ruby_vendorlibdir}/IceStorm | |
686 | %{ruby_vendorlibdir}/IceStorm/IceStorm.rb | |
687 | %{ruby_vendorlibdir}/IceStorm/Metrics.rb | |
1b7259a4 | 688 | %attr(755,root,root) %{ruby_vendorarchdir}/IceRuby.so |
6cff1ec8 | 689 | %endif |
46b0ec3f | 690 | |
6cff1ec8 | 691 | %if %{with java} |
a33c5a13 | 692 | %files -n java-%{name} |
46b0ec3f ER |
693 | %defattr(644,root,root,755) |
694 | %{_javadir}/Freeze-%{version}.jar | |
695 | %{_javadir}/Freeze.jar | |
696 | %{_javadir}/Ice-%{version}.jar | |
697 | %{_javadir}/Ice.jar | |
6cff1ec8 | 698 | %endif |
46b0ec3f | 699 | |
6cff1ec8 | 700 | %if %{with php} |
aa5bb803 | 701 | %files -n %{php_name}-%{name} |
46b0ec3f ER |
702 | %defattr(644,root,root,755) |
703 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/ice.ini | |
704 | %attr(755,root,root) %{php_extensiondir}/IcePHP.so | |
705 | %{php_data_dir}/Glacier2.php | |
706 | %{php_data_dir}/Glacier2 | |
707 | %{php_data_dir}/Ice.php | |
708 | %{php_data_dir}/Ice | |
709 | %{php_data_dir}/IceBox.php | |
710 | %{php_data_dir}/IceBox | |
711 | %{php_data_dir}/IceGrid.php | |
712 | %{php_data_dir}/IceGrid | |
713 | %{php_data_dir}/IcePatch2.php | |
714 | %{php_data_dir}/IcePatch2 | |
715 | %{php_data_dir}/IceStorm.php | |
716 | %{php_data_dir}/IceStorm | |
6cff1ec8 | 717 | %endif |