File libbonoboui.spec of Package libbonoboui

#
# spec file for package libbonoboui (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:           libbonoboui
BuildRequires:  fdupes
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  libglade2-devel
BuildRequires:  libgnome-devel
BuildRequires:  libgnomecanvas-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
License:        GPL v2 or later ; LGPL v2.1 or later
Group:          Development/Libraries/GNOME
# bug437293
%ifarch ppc64
Obsoletes:      libbonoboui-64bit
%endif
#
Version:        2.24.2
Release:        1
Summary:        The Bonobo Part of the GNOME User Interface Libraries
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}

%description
This library contains the Bonobo-related part of the GNOME UI
libraries. It belongs to 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 with libbonoboui
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version} libbonobo-devel orbit2-devel libxml2-devel glib2-devel libgnomecanvas-devel libgnome-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
License:        GPL v2 or later ; LGPL v2.1 or later
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
%suse_update_desktop_file bonobo-browser System Monitor
%find_lang libbonoboui-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 README NEWS ChangeLog 
%{_bindir}/*
%{_datadir}/applications/bonobo-browser.desktop
# generic directory for UI files
%dir %{_datadir}/gnome-2.0
%dir %{_datadir}/gnome-2.0/ui
%{_datadir}/gnome-2.0/ui/*.xml
%{_libdir}/*.so.*
%{_libdir}/bonobo/servers/*.server
%{_libdir}/libglade/2.0/*.so*

%files lang -f libbonoboui-2.0.lang

%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-2.0/samples

%changelog
openSUSE Build Service is sponsored by