author | yippi |
Thu, 05 Apr 2007 10:58:47 +0000 | |
branch | gnome-2-16 |
changeset 19052 | 95a83f0fb372 |
parent 8529 | ace8e9b8a2b7 |
permissions | -rw-r--r-- |
5528
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
1 |
|
5518 | 2 |
# spec file for package ORBit2 |
3 |
# |
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
|
5 |
# This file and all modifications and additions to the pristine |
|
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
8529 | 8 |
# Owner:gheet |
9 |
# |
|
16 | 10 |
Name: ORBit2 |
11 |
License: LGPL |
|
12 |
Group: System/Libraries |
|
13 |
Provides: ORBit2 |
|
14 |
Summary: High-performance CORBA Object Request Broker |
|
7743 | 15 |
Version: 2.14.2 |
5912 | 16 |
Release: 3 |
5518 | 17 |
Distribution: Java Desktop System |
575 | 18 |
Vendor: Sun Microsystems, Inc. |
6941 | 19 |
Source: http://ftp.gnome.org/pub/GNOME/sources/ORBit2/2.14/ORBit2-%{version}.tar.bz2 |
1432 | 20 |
Source1: orbit-idl-2.1.gz |
21 |
Source2: orbit2-config.1.gz |
|
22 |
Source3: libORBit-2.3.gz |
|
23 |
Source4: libORBitCosNaming-2.3.gz |
|
3131 | 24 |
Source5: orbitrc |
1622 | 25 |
Patch1: ORBit-01-no-static.diff |
26 |
Patch2: ORBit-02-uninstalled_pc.diff |
|
8152 | 27 |
Patch3: ORBit-03-gcc-Werror.diff |
28 |
Patch4: ORBit-04-localonly.diff |
|
8173 | 29 |
Patch5: ORBit-05-fixhypen.diff |
19052 | 30 |
Patch6: ORBit-06-secureports.diff |
16 | 31 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
1197 | 32 |
URL: http://www.gnome.org/projects/ORBit2 |
152 | 33 |
DocDir: %{_defaultdocdir}/doc |
34 |
Autoreqprov: on |
|
1080 | 35 |
Prereq: /sbin/ldconfig |
152 | 36 |
|
1197 | 37 |
%define libIDL_version 0.8.2 |
187 | 38 |
%define popt_version 1.6.4 |
1198 | 39 |
%define gtk_doc_version 1.1 |
4788 | 40 |
%define linc_version 1.1.1 |
179 | 41 |
|
187 | 42 |
Requires: libIDL >= %{libIDL_version} |
43 |
Requires: popt >= %{popt_version} |
|
179 | 44 |
BuildRequires: libIDL-devel >= %{libIDL_version} |
187 | 45 |
BuildRequires: popt-devel >= %{popt_version} |
1198 | 46 |
BuildRequires: gtk-doc >= %{gtk_doc_version} |
16 | 47 |
|
4788 | 48 |
Obsoletes: linc < %{linc_version} |
49 |
Provides: linc = %{linc_version} |
|
50 |
Obsoletes: linc-devel < %{linc_version} |
|
51 |
Provides: linc-devel = %{linc_version} |
|
52 |
||
16 | 53 |
%description |
54 |
ORBit is a high-performance CORBA (Common Object Request Broker |
|
55 |
Architecture) ORB (object request broker). It allows programs to |
|
56 |
send requests and receive replies from other programs, regardless |
|
57 |
of the locations of the two programs. CORBA is an architecture that |
|
58 |
enables communication between program objects, regardless of the |
|
59 |
programming language they're written in or the operating system they |
|
60 |
run on. |
|
61 |
||
62 |
%package devel |
|
63 |
Summary: High-performance CORBA Object Request Broker |
|
152 | 64 |
Group: Development/Libraries |
16 | 65 |
Provides: ORBit2-devel |
66 |
Autoreqprov: on |
|
67 |
Requires: %name = %version |
|
1197 | 68 |
Requires: libIDL-devel >= %{libIDL_version} |
16 | 69 |
|
70 |
%description devel |
|
71 |
ORBit is a high-performance CORBA (Common Object Request Broker |
|
72 |
Architecture) ORB (object request broker). It allows programs to |
|
73 |
send requests and receive replies from other programs, regardless |
|
74 |
of the locations of the two programs. CORBA is an architecture that |
|
75 |
enables communication between program objects, regardless of the |
|
76 |
programming language they're written in or the operating system they |
|
77 |
run on. |
|
78 |
||
79 |
%prep |
|
5626 | 80 |
%setup -q |
1551 | 81 |
%patch1 -p1 |
1622 | 82 |
%patch2 -p1 |
83 |
%patch3 -p1 |
|
6429 | 84 |
%patch4 -p1 |
8173 | 85 |
%patch5 -p1 |
19052 | 86 |
%patch6 -p1 |
16 | 87 |
|
4121 | 88 |
%ifos solaris |
4271 | 89 |
%ifarch amd64 sparcv9 |
4121 | 90 |
cd .. |
91 |
cp -rp ORBit2-%{version} ORBit2-%{version}-64 |
|
6613 | 92 |
cd ORBit2-%{version} |
4121 | 93 |
%endif |
4127 | 94 |
%endif |
4121 | 95 |
|
16 | 96 |
%build |
3263 | 97 |
%ifos linux |
98 |
if [ -x /usr/bin/getconf ]; then |
|
99 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
100 |
fi |
|
101 |
%else |
|
3846 | 102 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 103 |
%endif |
104 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
105 |
CPUS=1 |
|
106 |
fi |
|
107 |
||
4121 | 108 |
CONFLAGS="--prefix=%{_prefix}" |
109 |
||
110 |
%ifos solaris |
|
4271 | 111 |
%ifarch amd64 sparcv9 |
4121 | 112 |
CPUS=$(($CPUS*4)) |
113 |
||
114 |
cd ../ORBit2-%version-64 |
|
115 |
||
116 |
export CFLAGS="$CFLAGS64" |
|
117 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" |
|
4365 | 118 |
export CC=${CC64:-$CC} |
119 |
save_PATH="$PATH" |
|
120 |
ccdir=`dirname $CC` |
|
121 |
export PATH=$ccdir:$PATH |
|
4121 | 122 |
|
123 |
libtoolize --copy --force |
|
6070
e086b0dbdb62
* ORBit2.spec: Add gtkdocize call to 64 bit section.
dc144907
parents:
6034
diff
changeset
|
124 |
gtkdocize |
5518 | 125 |
aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal |
126 |
automake -a -c -f |
|
4121 | 127 |
autoconf |
128 |
||
129 |
./configure $CONFLAGS \ |
|
130 |
--bindir=%{_bindir}/%{_arch64} \ |
|
131 |
--libdir=%{_libdir}/%{_arch64} \ |
|
132 |
--libexecdir=%{_libexecdir}/%{_arch64} \ |
|
133 |
--sysconfdir=%{_sysconfdir}/%{_arch64} \ |
|
134 |
--disable-gtk-doc |
|
135 |
||
136 |
make -j $CPUS |
|
137 |
||
138 |
cd ../ORBit2-%version |
|
139 |
||
140 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" |
|
4365 | 141 |
export CFLAGS="$CFLAGS32" |
142 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
143 |
export CC=${CC32:-$CC} |
|
144 |
export PATH="$save_PATH" |
|
4121 | 145 |
|
146 |
%endif |
|
4127 | 147 |
%endif |
4121 | 148 |
|
149 |
||
1551 | 150 |
libtoolize --copy --force |
6034 | 151 |
gtkdocize |
5518 | 152 |
aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal |
153 |
automake -a -c -f |
|
1551 | 154 |
autoconf |
152 | 155 |
CFLAGS="$RPM_OPT_FLAGS" \ |
4121 | 156 |
./configure $CONFLAGS \ |
157 |
--sysconfdir=%{_sysconfdir} \ |
|
8501 | 158 |
%{gtk_doc_option} |
159 |
||
3263 | 160 |
make -j $CPUS |
16 | 161 |
|
162 |
%install |
|
4121 | 163 |
|
164 |
%ifos solaris |
|
4271 | 165 |
%ifarch amd64 sparcv9 |
4121 | 166 |
cd ../ORBit2-%version-64 |
167 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
6215 | 168 |
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/orbit2-config |
4121 | 169 |
cd ../ORBit2-%version |
170 |
%endif |
|
4127 | 171 |
%endif |
4121 | 172 |
|
16 | 173 |
make DESTDIR=$RPM_BUILD_ROOT install |
1522 | 174 |
install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
175 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
|
2707 | 176 |
install -d $RPM_BUILD_ROOT%{_sysconfdir} |
1522 | 177 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1 |
178 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
179 |
install --mode=0644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
180 |
install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
3131 | 181 |
install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_sysconfdir}/orbitrc |
3628 | 182 |
AFILES=" libORBit-2 libORBit-imodule-2 libORBitCosNaming-2 orbit-2.0/Everything_module" |
183 |
pushd $RPM_BUILD_ROOT%{_libdir} |
|
184 |
for i in $AFILES; do |
|
185 |
rm $i.a |
|
186 |
rm $i.la |
|
187 |
done |
|
188 |
popd |
|
189 |
||
16 | 190 |
|
191 |
%clean |
|
192 |
rm -rf $RPM_BUILD_ROOT |
|
193 |
||
152 | 194 |
%post |
195 |
/sbin/ldconfig |
|
196 |
||
197 |
%postun |
|
198 |
/sbin/ldconfig |
|
199 |
||
16 | 200 |
%files |
201 |
%defattr(-, root, root) |
|
1058 | 202 |
%{_libdir}/libORBit*.so.* |
179 | 203 |
%{_libdir}/orbit-2.0/Every*so* |
204 |
%{_bindir}/ior-decode-2 |
|
205 |
%{_bindir}/typelib-dump |
|
1197 | 206 |
%{_bindir}/linc-cleanup-sockets |
3131 | 207 |
%{_sysconfdir}/orbitrc |
16 | 208 |
|
209 |
%files devel |
|
210 |
%defattr(-, root, root) |
|
179 | 211 |
%{_includedir}/orbit-2.0 |
212 |
%{_bindir}/orbit-idl-2 |
|
213 |
%{_bindir}/orbit2-config |
|
1058 | 214 |
%{_libdir}/libname-server-2.a |
215 |
%{_libdir}/libORBit*.so |
|
179 | 216 |
%{_libdir}/pkgconfig/*.pc |
3628 | 217 |
%{_datadir}/idl/orbit-2.0/*.idl |
179 | 218 |
%{_datadir}/aclocal/*.m4 |
1197 | 219 |
%{_datadir}/gtk-doc/html/ORBit2 |
1432 | 220 |
%{_mandir}/man1/* |
221 |
%{_mandir}/man3/* |
|
16 | 222 |
|
223 |
%changelog |
|
19052 | 224 |
* Thu Apr 05 2007 - [email protected] |
225 |
- Add patch ORBit-06-secureports.diff so that ports are opened more |
|
226 |
securely. This makes sure to bind the socket when using IPv4 and |
|
227 |
IPv6 since this is needed for Secure-By-Default requirements to be |
|
228 |
met. Without this when you run "netstat -a" you see that all the |
|
229 |
GNOME sockets are listening wide open on the internet even when |
|
230 |
ORBLocalOnly=1 in /etc/orbitrc. After this change, you see that |
|
231 |
the ports are listed properly with "localhost.####" in the "Local |
|
232 |
Address" column. This indicates Secure By Default is working. |
|
8501 | 233 |
* Fri Nov 3 2006 - [email protected] |
234 |
- use %gtk_doc_option in configure so that it can be disabled using |
|
235 |
--without-gtk-doc |
|
8173 | 236 |
* Wed Sep 20 2006 - [email protected] |
237 |
- Add patch ORBit-06-fixhyphen.diff to resolve escalation #1-19359745 |
|
238 |
and bug 6466464. GNOME Bugzilla bug #152659. |
|
8152 | 239 |
* Fri Sep 15 2006 - [email protected] |
240 |
- Remove patch ORBit-03-dhcp-hostname.diff after reviewing with the |
|
241 |
maintainer, Michael Meeks, andt he patch writer Arvind |
|
242 |
Samptur we all agreed that this is the wrong approach to fix any |
|
243 |
issues with ORBit haveing problems with the hostname changing due to |
|
244 |
DHCP reallocation. |
|
7847 | 245 |
* Tue Aug 1 2006 - [email protected] |
246 |
- Add patch 5 so LocalOnly mode works on Solaris. This patch causes |
|
247 |
the linc library to not use getaddrinfo() and getaddrname(), which |
|
248 |
do not seem to work on Solaris. The fallback code that uses |
|
249 |
gethostbyname() and gethostbyaddr() seem to work better. Might be |
|
250 |
good to fix the getaddrinfo(), getaddrname() code to work on |
|
251 |
Solaris, though not sure if this is really necessary. |
|
7743 | 252 |
* Mon Jul 24 2006 - [email protected] |
253 |
- Bump to 2.14.2. |
|
254 |
* Tue Jun 2 2006 - [email protected] |
|
7361 | 255 |
- Add patch, ORBIT-05-signal-broadcast.diff. |
6941 | 256 |
* Tue Mar 14 2006 - [email protected] |
257 |
- Bump to 2.14.0. |
|
6726 | 258 |
* Thu Feb 9 2006 - [email protected] |
259 |
- Remove upstream patch, ORBit-05-illegal_cast.diff. |
|
6725 | 260 |
* Wed Feb 8 2006 - [email protected] |
261 |
- Bump to 2.13.3. |
|
6443
7d58eda5e2cd
* ORBit2.spec: Add patch to remove unnecessary cast that breaks build.
dc144907
parents:
6429
diff
changeset
|
262 |
* Wed Dec 21 2005 - [email protected] |
7d58eda5e2cd
* ORBit2.spec: Add patch to remove unnecessary cast that breaks build.
dc144907
parents:
6429
diff
changeset
|
263 |
- Add patch, 05-illegal_cast.diff, to remove unnecessary cast that breaks the |
7d58eda5e2cd
* ORBit2.spec: Add patch to remove unnecessary cast that breaks build.
dc144907
parents:
6429
diff
changeset
|
264 |
build. Bugzilla #324686. |
6413 | 265 |
* Tue Dec 20 2005 - [email protected] |
6425
1508101ffefc
* ORBit2.spec: Remove upstream patch, 04-ipv4-port-hosed.
dc144907
parents:
6413
diff
changeset
|
266 |
- Bump to 2.13.2. Remove upstream patch, 04-ipv4-port-hosed. |
6429 | 267 |
- Add ORBit-04-gcc-Werror.diff so gcc option is only set when using gcc. |
6070
e086b0dbdb62
* ORBit2.spec: Add gtkdocize call to 64 bit section.
dc144907
parents:
6034
diff
changeset
|
268 |
* Thu Oct 06 2005 - [email protected] |
e086b0dbdb62
* ORBit2.spec: Add gtkdocize call to 64 bit section.
dc144907
parents:
6034
diff
changeset
|
269 |
- Add gtkdocize call to 64 bit section. |
6034 | 270 |
* Wed Sep 29 2005 - [email protected] |
271 |
- Add gtkdocize call for automake. |
|
6016
b54189f766bc
*.spec: Bump versions. Fix Source url in some files without bumping.
dc144907
parents:
5914
diff
changeset
|
272 |
* Tue Sep 27 2005 - [email protected] |
b54189f766bc
*.spec: Bump versions. Fix Source url in some files without bumping.
dc144907
parents:
5914
diff
changeset
|
273 |
- Bump to 2.12.4. |
5912 | 274 |
* Sun Sep 18 2005 - [email protected] |
5914
6573255d1f9a
s/FIXME/patch so that it doesn't turn up in a grep ;)
gman
parents:
5912
diff
changeset
|
275 |
- Remove some patches. |
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
276 |
* Wed Aug 17 2005 - [email protected] |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
277 |
- Bump to 2.12.3. |
5518 | 278 |
* Wed Jun 15 2005 - [email protected] |
279 |
- Add patch new-pkgconfig.diff taken from GNOME CVS to make ORBit2 build |
|
280 |
with pkg-config > 0.15.0 |
|
281 |
* Fri May 06 2005 - [email protected] |
|
282 |
- Bump to 2.12.2 |
|
5348 | 283 |
* Tue Apr 19 2005 - [email protected] |
284 |
- fix login failure when ipv4 port in the IOR |
|
285 |
is taken to be valid on login after reboot |
|
286 |
Fixes #6238754 |
|
5219 | 287 |
* Fri Mar 11 2005 - [email protected] |
288 |
- fix a bogus linc_protocol_destroy assertion |
|
289 |
coming up at install time |
|
5171 | 290 |
* Wed Mar 02 2005 - [email protected] |
291 |
- another attempt to fix dhcp bug safely. |
|
5091 | 292 |
* Tue Feb 15 2005 - [email protected] |
293 |
- Add patch to fix dhcp hostname change blocking |
|
294 |
the login |
|
4788 | 295 |
* Tue Dec 21 2004 - [email protected] |
296 |
- Obsoletes linc for upgrade purposes. Fix bug 6211773. |
|
4365 | 297 |
* Fri Oct 29 2004 - [email protected] |
298 |
- use $CC64 for the 64-bit build if defined |
|
4121 | 299 |
* Sat Oct 2 2004 - [email protected] |
300 |
- Create 64bit libraries for Solaris |
|
3692 | 301 |
* Wed Aug 18 2004 - [email protected] |
302 |
- added --enable-gtk-doc. |
|
3628 | 303 |
* Thu Jul 08 2004 - [email protected] |
304 |
- ported to rpm4 |
|
3263 | 305 |
* Wed Jul 07 2004 - [email protected] |
306 |
- added "-j $CPUS" to make to speed up builds |
|
3131 | 307 |
* Fri Jun 11 2004 - <[email protected]> |
308 |
- Put back /etc/orbitrc which is required by A11y login. Bug 5059822. |
|
3045 | 309 |
* Tue Jun 08 2004 - <[email protected]> |
310 |
- removed /etc/orbitrc at the moment as this is a feature for Cinnabar not |
|
311 |
metro. |
|
1864 | 312 |
* Mon Feb 23 2004 - <[email protected]> |
313 |
- Bump to 2.9.8 |
|
1622 | 314 |
* Wed Feb 11 2004 - <[email protected]> |
315 |
- Bump to 2.9.7, gtk-doc.make hack patch 03 |
|
1432 | 316 |
* Mon Dec 15 2003 - <[email protected]> |
317 |
- Bump to 2.9.2 |
|
1198 | 318 |
* Mon Oct 02 2003 - <[email protected]> 2.8.1-2 |
319 |
- Require gtk-doc. |
|
1197 | 320 |
* Mon Oct 02 2003 - <[email protected]> 2.8.1-1 |
321 |
- Update to 2.8.1. |
|
1058 | 322 |
* Thu Aug 14 2003 - <[email protected]> |
323 |
- add patch to disable static linking of test programs |
|
324 |
- remove lib*.a and .la, except libname-server-2.a which is |
|
325 |
apparently needed by bonobo-activation |
|
326 |
- move *.so to -devel |
|
909 | 327 |
* Fri Aug 01 2003 - <[email protected]> 2.6.3-1 |
328 |
- Upgrade to 2.6.3. |
|
329 |
* Wed Apr 30 2003 - <[email protected]> |
|
152 | 330 |
- Create new spec file for ORBit2 |