]>
Commit | Line | Data |
---|---|---|
31314da7 KK |
1 | # |
2 | # Conditional build: | |
b6e63ec9 JB |
3 | %bcond_without apidocs # gtk-doc based API documentation |
4 | %bcond_without static_libs # static libraries | |
3a8e2512 | 5 | |
15a7761f | 6 | Summary: High-performance CORBA Object Request Broker |
2b606d5d ER |
7 | Summary(fr.UTF-8): Requète d'Objects CORBA |
8 | Summary(pl.UTF-8): Wysoko wydajny CORBA Object Request Broker | |
15a7761f | 9 | Name: ORBit2 |
11a2fe32 | 10 | Version: 2.14.19 |
d23f252a | 11 | Release: 11 |
15a7761f | 12 | Epoch: 1 |
06a0d95e | 13 | License: GPL v2+/LGPL v2+ |
15a7761f | 14 | Group: Libraries |
b6e63ec9 | 15 | Source0: https://download.gnome.org/sources/ORBit2/2.14/%{name}-%{version}.tar.bz2 |
11a2fe32 | 16 | # Source0-md5: 7082d317a9573ab338302243082d10d1 |
62ddc6e2 | 17 | Patch1: %{name}-build-fix.patch |
b6e63ec9 JB |
18 | Patch2: %{name}-idl-gtk-doc.patch |
19 | URL: https://developer.gnome.org/ORBit2/ | |
f9509dda | 20 | BuildRequires: autoconf >= 2.54 |
8cc9129b | 21 | BuildRequires: automake >= 1:1.9 |
955f7131 | 22 | BuildRequires: docbook-dtd412-xml |
15a7761f | 23 | BuildRequires: flex |
2e199856 | 24 | BuildRequires: glib2-devel >= 1:2.14.1 |
31314da7 | 25 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.8} |
15a7761f | 26 | BuildRequires: indent |
8cc9129b | 27 | BuildRequires: libIDL-devel >= 0.8.10 |
15a7761f | 28 | BuildRequires: libtool |
084a15fe | 29 | BuildRequires: pkgconfig >= 1:0.18 |
b6e63ec9 | 30 | BuildRequires: rpm-build >= 4.6 |
014ff390 | 31 | BuildRequires: rpmbuild(macros) >= 1.197 |
2e199856 | 32 | Requires: glib2 >= 1:2.14.1 |
8cc9129b | 33 | Requires: libIDL >= 0.8.10 |
a675e2c3 | 34 | Provides: linc = 1.1.1 |
b6e63ec9 | 35 | Obsoletes: ORBit2-automake < 1:2.12.5 |
2326f816 | 36 | Obsoletes: libORBit2_0 |
de4e31a9 | 37 | Obsoletes: linc |
d1163085 | 38 | Conflicts: libbonobo < 2.3.2 |
de4e31a9 | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15a7761f | 40 | |
15a7761f | 41 | %description |
42 | ORBit is a high-performance CORBA (Common Object Request Broker | |
43 | Architecture) ORB (object request broker). It allows programs to send | |
44 | requests and receive replies from other programs, regardless of the | |
45 | locations of the two programs. CORBA is an architecture that enables | |
46 | communication between program objects, regardless of the programming | |
47 | language they're written in or the operating system they run on. | |
48 | ||
ebb4b598 | 49 | %description -l fr.UTF-8 |
15a7761f | 50 | ORBit est un ORB CORBA avec support pour le language C. Il permet a |
ebb4b598 JR |
51 | des programmes d'envoyer des requètes et recevoir de réponses d'autres |
52 | programmes, indépendement de l'endroit ou sont les deux programmes. | |
15a7761f | 53 | |
ebb4b598 JR |
54 | %description -l pl.UTF-8 |
55 | ORBit to wysokiej wydajności CORBA (Common Object Request Broker | |
56 | Architecture) ORB (object request broker). Pozwala na wysyłanie próśb | |
57 | i otrzymywanie odpowiedzi od innych programów bez znajomości położenia | |
58 | tych dwóch programów. | |
15a7761f | 59 | |
e9c1c936 MB |
60 | %package apidocs |
61 | Summary: ORBit API documentation | |
2b606d5d | 62 | Summary(pl.UTF-8): Dokumentacja API ORBit |
e9c1c936 MB |
63 | Group: Documentation |
64 | Requires: gtk-doc-common | |
3a8e2512 | 65 | BuildArch: noarch |
e9c1c936 MB |
66 | |
67 | %description apidocs | |
68 | ORBit API documentation. | |
69 | ||
ebb4b598 | 70 | %description apidocs -l pl.UTF-8 |
e9c1c936 MB |
71 | Dokumentacja API ORBit. |
72 | ||
15a7761f | 73 | %package devel |
74 | Summary: Header files, and utilities for ORBit | |
2b606d5d ER |
75 | Summary(fr.UTF-8): Librairies statiques et fichiers entête pour ORBit |
76 | Summary(pl.UTF-8): Pliki nagłówkowe i użytki dla ORBit | |
15a7761f | 77 | Group: Development/Libraries |
aeec66f9 | 78 | Requires: %{name} = %{epoch}:%{version}-%{release} |
2e199856 | 79 | Requires: glib2-devel >= 1:2.14.1 |
15a7761f | 80 | Requires: indent |
8cc9129b | 81 | Requires: libIDL-devel >= 0.8.10 |
de4e31a9 | 82 | Provides: linc-devel = 1.1.1 |
2326f816 | 83 | Obsoletes: libORBit2_0-devel |
de4e31a9 | 84 | Obsoletes: linc-devel |
15a7761f | 85 | |
9a6f5c03 | 86 | %description devel |
15a7761f | 87 | devel ORBit is a high-performance CORBA ORB with support for the C |
88 | language. It allows programs to send requests and receive replies from | |
89 | other programs, regardless of the locations of the two programs. | |
90 | ||
91 | This package includes the header files and utilities neecessary to | |
92 | write programs that use CORBA technology. | |
93 | ||
ebb4b598 JR |
94 | %description devel -l fr.UTF-8 |
95 | Librairies statiques et fichiers entête requis pour le development ou | |
15a7761f | 96 | la compilation de programmes utilisant ORBit. |
97 | ||
ebb4b598 JR |
98 | %description devel -l pl.UTF-8 |
99 | ORBit to wysokiej wydajności CORBA ORB ze wsparciem dla języka C. | |
100 | Pozwala na wysyłanie próśb i otrzymywanie odpowiedzi od innych | |
101 | programów bez znajomości położenia tych dwóch programów. | |
15a7761f | 102 | |
ebb4b598 JR |
103 | Ten pakiet zawiera pliki nagłówkowe oraz użytki potrzebne do pisania |
104 | programów używających technologi CORBA. | |
15a7761f | 105 | |
106 | %package static | |
107 | Summary: Static libraries for ORBit | |
2b606d5d | 108 | Summary(pl.UTF-8): Biblioteki statyczne dla ORBit |
15a7761f | 109 | Group: Development/Libraries |
aeec66f9 | 110 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
de4e31a9 | 111 | Provides: linc-static = 1.1.1 |
112 | Obsoletes: linc-static | |
15a7761f | 113 | |
114 | %description static | |
115 | ORBit is a high-performance CORBA ORB with support for the C language. | |
116 | It allows programs to send requests and receive replies from other | |
117 | programs, regardless of the locations of the two programs. | |
118 | ||
119 | This package includes static libraries neecessary to write programs | |
120 | statically linked that use CORBA technology. | |
121 | ||
ebb4b598 JR |
122 | %description static -l pl.UTF-8 |
123 | ORBit to wysokiej wydajności CORBA ORB ze wsparciem dla języka C. | |
124 | Pozwala na wysyłanie próśb i otrzymywanie odpowiedzi od innych | |
125 | programów bez znajomości położenia tych dwóch programów. | |
15a7761f | 126 | |
ebb4b598 JR |
127 | Ten pakiet zawiera biblioteki statyczne potrzebne do pisania programów |
128 | skonsolidowanych statycznie używających technologii CORBA. | |
15a7761f | 129 | |
130 | %prep | |
cf7133e9 | 131 | %setup -q |
62ddc6e2 | 132 | %patch1 -p1 |
b6e63ec9 | 133 | %patch2 -p1 |
a7c9c2dc | 134 | |
b6e63ec9 | 135 | %if %{without apidocs} |
31314da7 KK |
136 | echo 'EXTRA_DIST=' > gtk-doc.make |
137 | echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4 | |
138 | %endif | |
139 | ||
15a7761f | 140 | %build |
31314da7 | 141 | %{?with_apidocs:%{__gtkdocize}} |
81281665 | 142 | %{__libtoolize} |
f0dfa4ac | 143 | %{__aclocal} |
c8ee50e8 | 144 | %{__autoconf} |
cf7133e9 | 145 | %{__autoheader} |
c8ee50e8 | 146 | %{__automake} |
6c9a755d | 147 | %configure \ |
505e786e | 148 | --with-html-dir=%{_gtkdocdir} \ |
31314da7 KK |
149 | %{!?with_static_libs:--disable-static} \ |
150 | %{?with_apidocs:--enable-gtk-doc} | |
5fd16c5e | 151 | %{__make} -j1 |
15a7761f | 152 | |
153 | %install | |
154 | rm -rf $RPM_BUILD_ROOT | |
155 | ||
5fd16c5e | 156 | %{__make} -j1 install \ |
1788660e | 157 | DESTDIR=$RPM_BUILD_ROOT |
15a7761f | 158 | |
e2e0927d JB |
159 | # obsoleted by pkg-config |
160 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
3be0f078 | 161 | # no static module - shut up check-files |
ec28b92b JP |
162 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/Everything_module.la |
163 | %if %{with static_libs} | |
164 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/Everything_module.a | |
165 | %endif | |
3be0f078 | 166 | |
15a7761f | 167 | %clean |
168 | rm -rf $RPM_BUILD_ROOT | |
169 | ||
9d802abb | 170 | %post -p /sbin/ldconfig |
171 | %postun -p /sbin/ldconfig | |
1298b9d9 | 172 | |
15a7761f | 173 | %files |
174 | %defattr(644,root,root,755) | |
8d7b77d9 | 175 | %doc AUTHORS NEWS README |
74405570 | 176 | %attr(755,root,root) %{_bindir}/ior-decode-2 |
de4e31a9 | 177 | %attr(755,root,root) %{_bindir}/linc-cleanup-sockets |
aa273dca | 178 | %attr(755,root,root) %{_bindir}/orbit-idl-2 |
74405570 | 179 | %attr(755,root,root) %{_bindir}/typelib-dump |
8cc9129b MB |
180 | %attr(755,root,root) %{_libdir}/libORBit-2.so.*.*.* |
181 | %attr(755,root,root) %ghost %{_libdir}/libORBit-2.so.0 | |
182 | %attr(755,root,root) %{_libdir}/libORBit-imodule-2.so.*.*.* | |
183 | %attr(755,root,root) %ghost %{_libdir}/libORBit-imodule-2.so.0 | |
184 | %attr(755,root,root) %{_libdir}/libORBitCosNaming-2.so.*.*.* | |
185 | %attr(755,root,root) %ghost %{_libdir}/libORBitCosNaming-2.so.0 | |
74405570 | 186 | %dir %{_libdir}/orbit-2.0 |
8cc9129b | 187 | %attr(755,root,root) %{_libdir}/orbit-2.0/Everything_module.so |
8344154c | 188 | %{_datadir}/idl/orbit-2.0 |
15a7761f | 189 | |
31314da7 | 190 | %if %{with apidocs} |
e9c1c936 MB |
191 | %files apidocs |
192 | %defattr(644,root,root,755) | |
193 | %{_gtkdocdir}/%{name} | |
31314da7 | 194 | %endif |
e9c1c936 | 195 | |
15a7761f | 196 | %files devel |
197 | %defattr(644,root,root,755) | |
8d7b77d9 | 198 | %doc ChangeLog |
aa273dca | 199 | %attr(755,root,root) %{_bindir}/orbit2-config |
8cc9129b MB |
200 | %attr(755,root,root) %{_libdir}/libORBit-2.so |
201 | %attr(755,root,root) %{_libdir}/libORBit-imodule-2.so | |
202 | %attr(755,root,root) %{_libdir}/libORBitCosNaming-2.so | |
06a6b3da JB |
203 | # static-only library |
204 | %{_libdir}/libname-server-2.a | |
8344154c | 205 | %{_includedir}/orbit-2.0 |
8cc9129b MB |
206 | %{_pkgconfigdir}/ORBit-2.0.pc |
207 | %{_pkgconfigdir}/ORBit-CosNaming-2.0.pc | |
208 | %{_pkgconfigdir}/ORBit-idl-2.0.pc | |
209 | %{_pkgconfigdir}/ORBit-imodule-2.0.pc | |
8344154c | 210 | %{_aclocaldir}/ORBit2.m4 |
15a7761f | 211 | |
31314da7 | 212 | %if %{with static_libs} |
15a7761f | 213 | %files static |
214 | %defattr(644,root,root,755) | |
d74166da | 215 | %{_libdir}/libORBit-2.a |
1958cac5 | 216 | %{_libdir}/libORBit-imodule-2.a |
d74166da | 217 | %{_libdir}/libORBitCosNaming-2.a |
31314da7 | 218 | %endif |