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