File orbit2.spec of Package orbit2

#
# spec file for package orbit2
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%define _name ORBit2
Name:           orbit2
Version:        2.14.19
Release:        0
Summary:        CORBA Object Request Broker
License:        LGPL-2.1-or-later
Group:          System/Libraries
URL:            https://www.gnome.org/
Source:         ftp://ftp.gnome.org/pub/gnome/sources/ORBit2/2.14/%{_name}-%{version}.tar.bz2
Source99:       baselibs.conf
# PATCH-FIX-UPSTREAM libbonobo requires libname-server-2.a
Patch:          libname-server-2-shared.patch
# PATCH-FIX-UPSTREAM new autotools don't allow srcdir in tests
Patch1:         orbit2-no-srcdir-in-tests.patch
BuildRequires:  gtk-doc
BuildRequires:  libidl-devel
BuildRequires:  libtool
Provides:       ORBit2

%description
ORBit is a CORBA (Common Object Request Broker
Architecture) ORB (Object Request Broker). It allows programs to send
requests and receive replies from other programs, regardless of the
locations of the two programs. CORBA is an architecture that enables
communication between program objects, regardless of the programming
language they are written in or the operating system they run on.

You will need to install this package if you want to run programs that
use the CORBA technology ORBit implementation.

%package devel
Summary:        Development files for the orbit2 CORBA implementation
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       libidl-devel
Requires:       pkgconfig(glib-2.0)
Provides:       ORBit2-devel

%description devel
ORBit is a CORBA (Common Object Request Broker
Architecture) ORB (object request broker). It allows programs to send
requests and receive replies from other programs, regardless of the
locations of the two programs. CORBA is an architecture that enables
communication between program objects, regardless of the programming
language they are written in or the operating system they run on.

You will need to install this package if you want to run programs that
use the ORBit implementation of the CORBA technology.

%package doc
Summary:        Documentation for the orbit2 CORBA implementation
License:        GPL-2.0-or-later AND LGPL-2.1-or-later
Group:          Documentation/HTML
Requires:       %{name} = %{version}
Provides:       ORBit2-doc
BuildArch:      noarch

%description doc
ORBit is a CORBA (Common Object Request Broker Architecture) ORB
(Object Request Broker).

You will need to install this package if you want to run programs that
use the CORBA technology ORBit implementation.

%prep
%setup -q -n %{_name}-%{version}
%patch -p1
%patch1 -p1
autoreconf -fiv

%build
%if 0%{?suse_version} < 1550
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%endif
%configure \
	--disable-static
echo "#undef G_DISABLE_DEPRECATED" >> config.h
# Do not use parallel make since there is a .deps directory creation
# race in idl-compiler/orbit-idl-c-backend.c:out_for_pass
%make_build -j1

%install
%make_install
find %{buildroot} -type f -name "*.a" -delete -print
find %{buildroot} -type f -name "*.la" -delete -print

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%license COPYING
%doc AUTHORS NEWS README TODO
%{_bindir}/linc-cleanup-sockets
%{_libdir}/*.so.*
%{_libdir}/orbit-2.0/

%files devel
%{_bindir}/ior-decode-2
%{_bindir}/orbit-idl-2
%{_bindir}/orbit2-config
%{_bindir}/typelib-dump
%{_includedir}/orbit-2.0/
%{_libdir}/*.so
%{_libdir}/pkgconfig/ORBit-*.pc
%{_datadir}/aclocal/ORBit2.m4
%{_datadir}/idl/orbit-2.0/

%files doc
%doc %{_datadir}/gtk-doc/html/ORBit2/

%changelog
openSUSE Build Service is sponsored by