]>
Commit | Line | Data |
---|---|---|
31314da7 KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | %bcond_without static_libs # don't build static library | |
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 |
06a6b3da | 11 | Release: 9 |
15a7761f | 12 | Epoch: 1 |
06a0d95e | 13 | License: GPL v2+/LGPL v2+ |
15a7761f | 14 | Group: Libraries |
2e199856 | 15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/ORBit2/2.14/%{name}-%{version}.tar.bz2 |
11a2fe32 | 16 | # Source0-md5: 7082d317a9573ab338302243082d10d1 |
785034f7 | 17 | Patch0: %{name}-pthread.patch |
62ddc6e2 | 18 | Patch1: %{name}-build-fix.patch |
e2e0927d | 19 | URL: https://projects-old.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 |
014ff390 | 30 | BuildRequires: rpmbuild(macros) >= 1.197 |
2e199856 | 31 | Requires: glib2 >= 1:2.14.1 |
8cc9129b | 32 | Requires: libIDL >= 0.8.10 |
a675e2c3 | 33 | Provides: linc = 1.1.1 |
a1c33a58 | 34 | Obsoletes: ORBit2-automake |
2326f816 | 35 | Obsoletes: libORBit2_0 |
de4e31a9 | 36 | Obsoletes: linc |
d1163085 | 37 | Conflicts: libbonobo < 2.3.2 |
de4e31a9 | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15a7761f | 39 | |
15a7761f | 40 | %description |
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. | |
47 | ||
ebb4b598 | 48 | %description -l fr.UTF-8 |
15a7761f | 49 | ORBit est un ORB CORBA avec support pour le language C. Il permet a |
ebb4b598 JR |
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. | |
15a7761f | 52 | |
ebb4b598 JR |
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 | |
57 | tych dwóch programów. | |
15a7761f | 58 | |
e9c1c936 MB |
59 | %package apidocs |
60 | Summary: ORBit API documentation | |
2b606d5d | 61 | Summary(pl.UTF-8): Dokumentacja API ORBit |
e9c1c936 MB |
62 | Group: Documentation |
63 | Requires: gtk-doc-common | |
3a8e2512 ER |
64 | %if "%{_rpmversion}" >= "5" |
65 | BuildArch: noarch | |
66 | %endif | |
e9c1c936 MB |
67 | |
68 | %description apidocs | |
69 | ORBit API documentation. | |
70 | ||
ebb4b598 | 71 | %description apidocs -l pl.UTF-8 |
e9c1c936 MB |
72 | Dokumentacja API ORBit. |
73 | ||
15a7761f | 74 | %package devel |
75 | Summary: Header files, and utilities for ORBit | |
2b606d5d ER |
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 | |
15a7761f | 78 | Group: Development/Libraries |
aeec66f9 | 79 | Requires: %{name} = %{epoch}:%{version}-%{release} |
2e199856 | 80 | Requires: glib2-devel >= 1:2.14.1 |
15a7761f | 81 | Requires: indent |
8cc9129b | 82 | Requires: libIDL-devel >= 0.8.10 |
de4e31a9 | 83 | Provides: linc-devel = 1.1.1 |
2326f816 | 84 | Obsoletes: libORBit2_0-devel |
de4e31a9 | 85 | Obsoletes: linc-devel |
15a7761f | 86 | |
9a6f5c03 | 87 | %description devel |
15a7761f | 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. | |
91 | ||
92 | This package includes the header files and utilities neecessary to | |
93 | write programs that use CORBA technology. | |
94 | ||
ebb4b598 JR |
95 | %description devel -l fr.UTF-8 |
96 | Librairies statiques et fichiers entête requis pour le development ou | |
15a7761f | 97 | la compilation de programmes utilisant ORBit. |
98 | ||
ebb4b598 JR |
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. | |
15a7761f | 103 | |
ebb4b598 JR |
104 | Ten pakiet zawiera pliki nagłówkowe oraz użytki potrzebne do pisania |
105 | programów używających technologi CORBA. | |
15a7761f | 106 | |
107 | %package static | |
108 | Summary: Static libraries for ORBit | |
2b606d5d | 109 | Summary(pl.UTF-8): Biblioteki statyczne dla ORBit |
15a7761f | 110 | Group: Development/Libraries |
aeec66f9 | 111 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
de4e31a9 | 112 | Provides: linc-static = 1.1.1 |
113 | Obsoletes: linc-static | |
15a7761f | 114 | |
115 | %description 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. | |
119 | ||
120 | This package includes static libraries neecessary to write programs | |
121 | statically linked that use CORBA technology. | |
122 | ||
ebb4b598 JR |
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. | |
15a7761f | 127 | |
ebb4b598 JR |
128 | Ten pakiet zawiera biblioteki statyczne potrzebne do pisania programów |
129 | skonsolidowanych statycznie używających technologii CORBA. | |
15a7761f | 130 | |
131 | %prep | |
cf7133e9 | 132 | %setup -q |
785034f7 | 133 | %patch0 -p1 |
62ddc6e2 | 134 | %patch1 -p1 |
a7c9c2dc | 135 | |
31314da7 KK |
136 | %if !%{with apidocs} |
137 | echo 'EXTRA_DIST=' > gtk-doc.make | |
138 | echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4 | |
139 | %endif | |
140 | ||
15a7761f | 141 | %build |
31314da7 | 142 | %{?with_apidocs:%{__gtkdocize}} |
81281665 | 143 | %{__libtoolize} |
f0dfa4ac | 144 | %{__aclocal} |
c8ee50e8 | 145 | %{__autoconf} |
cf7133e9 | 146 | %{__autoheader} |
c8ee50e8 | 147 | %{__automake} |
6c9a755d | 148 | %configure \ |
505e786e | 149 | --with-html-dir=%{_gtkdocdir} \ |
31314da7 KK |
150 | %{!?with_static_libs:--disable-static} \ |
151 | %{?with_apidocs:--enable-gtk-doc} | |
5fd16c5e | 152 | %{__make} -j1 |
15a7761f | 153 | |
154 | %install | |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
5fd16c5e | 157 | %{__make} -j1 install \ |
1788660e | 158 | DESTDIR=$RPM_BUILD_ROOT |
15a7761f | 159 | |
e2e0927d JB |
160 | # obsoleted by pkg-config |
161 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
3be0f078 | 162 | # no static module - shut up check-files |
ec28b92b JP |
163 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/Everything_module.la |
164 | %if %{with static_libs} | |
165 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/Everything_module.a | |
166 | %endif | |
3be0f078 | 167 | |
15a7761f | 168 | %clean |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
9d802abb | 171 | %post -p /sbin/ldconfig |
172 | %postun -p /sbin/ldconfig | |
1298b9d9 | 173 | |
15a7761f | 174 | %files |
175 | %defattr(644,root,root,755) | |
8d7b77d9 | 176 | %doc AUTHORS NEWS README |
74405570 | 177 | %attr(755,root,root) %{_bindir}/ior-decode-2 |
de4e31a9 | 178 | %attr(755,root,root) %{_bindir}/linc-cleanup-sockets |
aa273dca | 179 | %attr(755,root,root) %{_bindir}/orbit-idl-2 |
74405570 | 180 | %attr(755,root,root) %{_bindir}/typelib-dump |
8cc9129b MB |
181 | %attr(755,root,root) %{_libdir}/libORBit-2.so.*.*.* |
182 | %attr(755,root,root) %ghost %{_libdir}/libORBit-2.so.0 | |
183 | %attr(755,root,root) %{_libdir}/libORBit-imodule-2.so.*.*.* | |
184 | %attr(755,root,root) %ghost %{_libdir}/libORBit-imodule-2.so.0 | |
185 | %attr(755,root,root) %{_libdir}/libORBitCosNaming-2.so.*.*.* | |
186 | %attr(755,root,root) %ghost %{_libdir}/libORBitCosNaming-2.so.0 | |
74405570 | 187 | %dir %{_libdir}/orbit-2.0 |
8cc9129b | 188 | %attr(755,root,root) %{_libdir}/orbit-2.0/Everything_module.so |
8344154c | 189 | %{_datadir}/idl/orbit-2.0 |
15a7761f | 190 | |
31314da7 | 191 | %if %{with apidocs} |
e9c1c936 MB |
192 | %files apidocs |
193 | %defattr(644,root,root,755) | |
194 | %{_gtkdocdir}/%{name} | |
31314da7 | 195 | %endif |
e9c1c936 | 196 | |
15a7761f | 197 | %files devel |
198 | %defattr(644,root,root,755) | |
8d7b77d9 | 199 | %doc ChangeLog |
aa273dca | 200 | %attr(755,root,root) %{_bindir}/orbit2-config |
8cc9129b MB |
201 | %attr(755,root,root) %{_libdir}/libORBit-2.so |
202 | %attr(755,root,root) %{_libdir}/libORBit-imodule-2.so | |
203 | %attr(755,root,root) %{_libdir}/libORBitCosNaming-2.so | |
06a6b3da JB |
204 | # static-only library |
205 | %{_libdir}/libname-server-2.a | |
8344154c | 206 | %{_includedir}/orbit-2.0 |
8cc9129b MB |
207 | %{_pkgconfigdir}/ORBit-2.0.pc |
208 | %{_pkgconfigdir}/ORBit-CosNaming-2.0.pc | |
209 | %{_pkgconfigdir}/ORBit-idl-2.0.pc | |
210 | %{_pkgconfigdir}/ORBit-imodule-2.0.pc | |
8344154c | 211 | %{_aclocaldir}/ORBit2.m4 |
15a7761f | 212 | |
31314da7 | 213 | %if %{with static_libs} |
15a7761f | 214 | %files static |
215 | %defattr(644,root,root,755) | |
d74166da | 216 | %{_libdir}/libORBit-2.a |
1958cac5 | 217 | %{_libdir}/libORBit-imodule-2.a |
d74166da | 218 | %{_libdir}/libORBitCosNaming-2.a |
31314da7 | 219 | %endif |