File libbonobo.spec of Package libbonobo

#
# spec file for package libbonobo (Version 2.24.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           libbonobo
BuildRequires:  bison
BuildRequires:  dbus-1-glib-devel
BuildRequires:  fdupes
BuildRequires:  flex
BuildRequires:  glib2-devel
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  libidl
BuildRequires:  libxml2-devel
BuildRequires:  orbit2-devel
BuildRequires:  popt-devel
BuildRequires:  translation-update-upstream
Summary:        The Bonobo Component System for the GNOME 2.x Desktop Platform
Version:        2.24.2
Release:        1
License:        GPL v2 or later ; LGPL v2.1 or later
# Obsolete for >=9.1:
Obsoletes:      bonobo-activation
Provides:       bonobo-activation
# bug437293
%ifarch ppc64
Obsoletes:      libbonobo-64bit
%endif
#
Group:          Development/Libraries/GNOME
Source:         %{name}-%{version}.tar.bz2
Url:            http://www.gnome.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch2:         bonobo-activation-config.patch
Patch3:         libbonobo-2.20.0-quit-with-dbus.patch
# PATCH-FEATURE-OPENSUSE libbonobo-fate300461-server-gettext.patch fate300461 vuntz@novell.com -- Look for translation of .server files via gettext
Patch4:         libbonobo-fate300461-server-gettext.patch
Requires:       %{name}-lang = %{version}

%description
Bonobo is a component system for the GNOME platform. Libbonobo is the
new version for the GNOME 2.x Desktop platform.

%package devel
License:        GPL v2 or later ; LGPL v2.1 or later
Summary:        Include Files and Libraries mandatory for Development.
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version} glib2-devel orbit2-devel popt-devel
# Obsolete for >=9.1:
Obsoletes:      bonobo-activation-devel
Provides:       bonobo-activation-devel
# bug437293
%ifarch ppc64
Obsoletes:      libbonobo-devel-64bit
%endif
#

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

%package doc
License:        GPL v2 or later ; LGPL v2.1 or later
Summary:        Additional Package Documentation.
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}
# Obsolete for >=9.1:
Obsoletes:      bonobo-activation-doc
Provides:       bonobo-activation-doc

%description doc
Bonobo is a component system for the GNOME platform. Libbonobo is the
new version for the GNOME 2.x platform.

%lang_package
%prep
%setup -q
translation-update-upstream
%patch2
%patch3 -p1
%patch4 -p1
%if "%{_lib}" == "lib64"
sed -i s:/lib/:/lib64/:g utils/bonobo-slay.in
sed '\:<item>/usr/local/lib/bonobo/servers</item>:i<item>/usr/local/lib64/bonobo/servers</item>' bonobo-activation-config.xml
%endif

%build
autoreconf -f -i
%configure --with-pic\
	--libexecdir=%{_prefix}/lib/bonobo\
	--disable-static
make %{?jobs:-j%jobs}

%install
%makeinstall
%find_lang libbonobo-2.0
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} + 
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{_libdir}/*.so.*
%{_libdir}/bonobo
%if "%{_libdir}" != "%{_prefix}/lib"
%{_prefix}/lib/bonobo
%endif
%{_libdir}/orbit-2.0/*.so
%doc %{_mandir}/man?/*.*
%{_sbindir}/*
%dir %{_sysconfdir}/bonobo-activation
%config %{_sysconfdir}/bonobo-activation/bonobo-activation-config.xml

%files lang -f libbonobo-2.0.lang

%files devel
%defattr(-,root,root)
%{_datadir}/idl/*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%files doc
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/*
%dir %{_libdir}/bonobo-2.0
%{_libdir}/bonobo-2.0/samples

%changelog
openSUSE Build Service is sponsored by