3 %bcond_without apidocs # disable gtk-doc
4 %bcond_without static_libs # don't build static library
6 Summary: High-performance CORBA Object Request Broker
7 Summary(fr.UTF-8): Requète d'Objects CORBA
8 Summary(pl.UTF-8): Wysoko wydajny CORBA Object Request Broker
13 License: GPL v2+/LGPL v2+
15 Source0: http://ftp.gnome.org/pub/GNOME/sources/ORBit2/2.14/%{name}-%{version}.tar.bz2
16 # Source0-md5: 7082d317a9573ab338302243082d10d1
17 Patch0: %{name}-pthread.patch
18 Patch1: %{name}-build-fix.patch
19 URL: https://projects-old.gnome.org/ORBit2/
20 BuildRequires: autoconf >= 2.54
21 BuildRequires: automake >= 1:1.9
22 BuildRequires: docbook-dtd412-xml
24 BuildRequires: glib2-devel >= 1:2.14.1
25 %{?with_apidocs:BuildRequires: gtk-doc >= 1.8}
27 BuildRequires: libIDL-devel >= 0.8.10
28 BuildRequires: libtool
29 BuildRequires: pkgconfig >= 1:0.18
30 BuildRequires: rpmbuild(macros) >= 1.197
31 Requires: glib2 >= 1:2.14.1
32 Requires: libIDL >= 0.8.10
33 Provides: linc = 1.1.1
34 Obsoletes: ORBit2-automake
35 Obsoletes: libORBit2_0
37 Conflicts: libbonobo < 2.3.2
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 ORBit is a high-performance CORBA (Common Object Request Broker
42 Architecture) ORB (object request broker). It allows programs to send
43 requests and receive replies from other programs, regardless of the
44 locations of the two programs. CORBA is an architecture that enables
45 communication between program objects, regardless of the programming
46 language they're written in or the operating system they run on.
48 %description -l fr.UTF-8
49 ORBit est un ORB CORBA avec support pour le language C. Il permet a
50 des programmes d'envoyer des requètes et recevoir de réponses d'autres
51 programmes, indépendement de l'endroit ou sont les deux programmes.
53 %description -l pl.UTF-8
54 ORBit to wysokiej wydajności CORBA (Common Object Request Broker
55 Architecture) ORB (object request broker). Pozwala na wysyłanie próśb
56 i otrzymywanie odpowiedzi od innych programów bez znajomości położenia
60 Summary: ORBit API documentation
61 Summary(pl.UTF-8): Dokumentacja API ORBit
63 Requires: gtk-doc-common
64 %if "%{_rpmversion}" >= "5"
69 ORBit API documentation.
71 %description apidocs -l pl.UTF-8
72 Dokumentacja API ORBit.
75 Summary: Header files, and utilities for ORBit
76 Summary(fr.UTF-8): Librairies statiques et fichiers entête pour ORBit
77 Summary(pl.UTF-8): Pliki nagłówkowe i użytki dla ORBit
78 Group: Development/Libraries
79 Requires: %{name} = %{epoch}:%{version}-%{release}
80 Requires: glib2-devel >= 1:2.14.1
82 Requires: libIDL-devel >= 0.8.10
83 Provides: linc-devel = 1.1.1
84 Obsoletes: libORBit2_0-devel
88 devel ORBit is a high-performance CORBA ORB with support for the C
89 language. It allows programs to send requests and receive replies from
90 other programs, regardless of the locations of the two programs.
92 This package includes the header files and utilities neecessary to
93 write programs that use CORBA technology.
95 %description devel -l fr.UTF-8
96 Librairies statiques et fichiers entête requis pour le development ou
97 la compilation de programmes utilisant ORBit.
99 %description devel -l pl.UTF-8
100 ORBit to wysokiej wydajności CORBA ORB ze wsparciem dla języka C.
101 Pozwala na wysyłanie próśb i otrzymywanie odpowiedzi od innych
102 programów bez znajomości położenia tych dwóch programów.
104 Ten pakiet zawiera pliki nagłówkowe oraz użytki potrzebne do pisania
105 programów używających technologi CORBA.
108 Summary: Static libraries for ORBit
109 Summary(pl.UTF-8): Biblioteki statyczne dla ORBit
110 Group: Development/Libraries
111 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
112 Provides: linc-static = 1.1.1
113 Obsoletes: linc-static
116 ORBit is a high-performance CORBA ORB with support for the C language.
117 It allows programs to send requests and receive replies from other
118 programs, regardless of the locations of the two programs.
120 This package includes static libraries neecessary to write programs
121 statically linked that use CORBA technology.
123 %description static -l pl.UTF-8
124 ORBit to wysokiej wydajności CORBA ORB ze wsparciem dla języka C.
125 Pozwala na wysyłanie próśb i otrzymywanie odpowiedzi od innych
126 programów bez znajomości położenia tych dwóch programów.
128 Ten pakiet zawiera biblioteki statyczne potrzebne do pisania programów
129 skonsolidowanych statycznie używających technologii CORBA.
137 echo 'EXTRA_DIST=' > gtk-doc.make
138 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
142 %{?with_apidocs:%{__gtkdocize}}
149 --with-html-dir=%{_gtkdocdir} \
150 %{!?with_static_libs:--disable-static} \
151 %{?with_apidocs:--enable-gtk-doc}
155 rm -rf $RPM_BUILD_ROOT
157 %{__make} -j1 install \
158 DESTDIR=$RPM_BUILD_ROOT
160 # obsoleted by pkg-config
161 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
162 # no static module - shut up check-files
163 %{__rm} $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/Everything_module.{la,a}
166 rm -rf $RPM_BUILD_ROOT
168 %post -p /sbin/ldconfig
169 %postun -p /sbin/ldconfig
172 %defattr(644,root,root,755)
173 %doc AUTHORS NEWS README
174 %attr(755,root,root) %{_bindir}/ior-decode-2
175 %attr(755,root,root) %{_bindir}/linc-cleanup-sockets
176 %attr(755,root,root) %{_bindir}/orbit-idl-2
177 %attr(755,root,root) %{_bindir}/typelib-dump
178 %attr(755,root,root) %{_libdir}/libORBit-2.so.*.*.*
179 %attr(755,root,root) %ghost %{_libdir}/libORBit-2.so.0
180 %attr(755,root,root) %{_libdir}/libORBit-imodule-2.so.*.*.*
181 %attr(755,root,root) %ghost %{_libdir}/libORBit-imodule-2.so.0
182 %attr(755,root,root) %{_libdir}/libORBitCosNaming-2.so.*.*.*
183 %attr(755,root,root) %ghost %{_libdir}/libORBitCosNaming-2.so.0
184 %dir %{_libdir}/orbit-2.0
185 %attr(755,root,root) %{_libdir}/orbit-2.0/Everything_module.so
186 %{_datadir}/idl/orbit-2.0
190 %defattr(644,root,root,755)
191 %{_gtkdocdir}/%{name}
195 %defattr(644,root,root,755)
197 %attr(755,root,root) %{_bindir}/orbit2-config
198 %attr(755,root,root) %{_libdir}/libORBit-2.so
199 %attr(755,root,root) %{_libdir}/libORBit-imodule-2.so
200 %attr(755,root,root) %{_libdir}/libORBitCosNaming-2.so
201 # static-only library
202 %{_libdir}/libname-server-2.a
203 %{_includedir}/orbit-2.0
204 %{_pkgconfigdir}/ORBit-2.0.pc
205 %{_pkgconfigdir}/ORBit-CosNaming-2.0.pc
206 %{_pkgconfigdir}/ORBit-idl-2.0.pc
207 %{_pkgconfigdir}/ORBit-imodule-2.0.pc
208 %{_aclocaldir}/ORBit2.m4
210 %if %{with static_libs}
212 %defattr(644,root,root,755)
213 %{_libdir}/libORBit-2.a
214 %{_libdir}/libORBit-imodule-2.a
215 %{_libdir}/libORBitCosNaming-2.a