File libbonoboui.spec of Package libbonoboui
#
# spec file for package libbonoboui
#
# Copyright (c) 2013 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/
#
Name: libbonoboui
BuildRequires: fdupes
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: libglade2-devel
BuildRequires: libgnome-devel
BuildRequires: libgnomecanvas-devel
BuildRequires: pkg-config
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
# bug437293
%ifarch ppc64
Obsoletes: libbonoboui-64bit
%endif
#
Version: 2.24.5
Release: 0
Summary: The Bonobo Part of the GNOME User Interface Libraries
License: GPL-2.0+ and LGPL-2.1+
Group: Development/Libraries/GNOME
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.24/%{name}-%{version}.tar.bz2
Source99: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: %{name}-lang
%description
This library contains the Bonobo-related part of the GNOME UI
libraries.
%package tools
Summary: The Bonobo Part of the GNOME User Interface Libraries -- Tools
Group: Development/Libraries/GNOME
%description tools
This library contains the Bonobo-related part of the GNOME UI
libraries.
This package contains tools to play with Bonobo, including a
tool to browse Bonobo services that are available.
%package devel
Summary: Include files and libraries mandatory for development with libbonoboui
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
Requires: glib2-devel
Requires: libbonobo-devel
Requires: libgnome-devel
Requires: libgnomecanvas-devel
Requires: libxml2-devel
Requires: orbit2-devel
# bug437293
%ifarch ppc64
Obsoletes: libbonoboui-devel-64bit
%endif
#
%description devel
This package contains all necessary include files and libraries needed
to compile and link applications that use libbonoboui.
%package doc
Summary: Documentation for libbonoboui
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
%description doc
This package contains documentation for libbonoboui.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure --with-pic\
--disable-static
make %{?jobs:-j%jobs}
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%suse_update_desktop_file bonobo-browser System Monitor
%find_lang libbonoboui-2.0 %{?no_lang_C}
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
# The demo tools are not installed
rm %{buildroot}%{_libdir}/bonobo/servers/CanvDemo.server
rm %{buildroot}%{_datadir}/gnome-2.0/ui/Bonobo_Sample_Container-ui.xml
rm %{buildroot}%{_datadir}/gnome-2.0/ui/Bonobo_Sample_Hello.xml
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post tools
%desktop_database_post
%postun tools
%desktop_database_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README NEWS ChangeLog
# generic directory for UI files
%dir %{_datadir}/gnome-2.0
%dir %{_datadir}/gnome-2.0/ui
%{_libdir}/*.so.*
%{_libdir}/libglade/2.0/*.so*
%files tools
%defattr(-,root,root)
%{_bindir}/bonobo-browser
%{_bindir}/test-moniker
%{_datadir}/applications/bonobo-browser.desktop
%{_datadir}/gnome-2.0/ui/bonobo-browser.xml
%files devel
%defattr(-,root,root)
%{_includedir}/libbonoboui-2.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/libbonoboui-2.0.pc
%files doc
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/*
%dir %{_libdir}/bonobo-2.0
%{_libdir}/bonobo/servers/Bonobo_Sample_Controls.server
%dir %{_libdir}/bonobo-2.0/samples/
%{_libdir}/bonobo-2.0/samples/bonobo-sample-controls-2
%files lang -f libbonoboui-2.0.lang
%changelog