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