File libgnomeui.spec of Package libgnomeui

#
# spec file for package libgnomeui (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:           libgnomeui
BuildRequires:  fdupes
BuildRequires:  gnome-keyring-devel
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  libbonoboui-devel
BuildRequires:  libglade2-devel
BuildRequires:  libjpeg-devel
BuildRequires:  translation-update-upstream
License:        GPL v2 or later ; LGPL v2.1 or later
Group:          Development/Libraries/GNOME
# bug437293
%ifarch ppc64
Obsoletes:      libgnomeui-64bit
%endif
#
Requires:       gnome-icon-theme shared-mime-info
Version:        2.24.2
Release:        1
Summary:        The GNOME User Interface Library
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM libgnomeui-bnc468821-do-not-steal-sm-connection.patch bnc468821 bgo573058 vuntz@novell.com -- Make libgnomeui only handle SM connection it has initiated
Patch0:         libgnomeui-bnc468821-do-not-steal-sm-connection.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}

%description
This library contains all the user interface-related functions for
GNOME-based software. You need the libgnomeui-devel package if you want
to develop GNOME 2.x Desktop software.



Authors:
--------
    jacob berkman  <jacob@ximian.com>
    Michael Meeks  <michael@ximian.com>
    Anders Carlsson  <andersca@gnu.org>

%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:       libgnomeui = %{version}
Requires:       libgnome-devel libgnomecanvas-devel libbonoboui-devel gtk2-devel libart_lgpl-devel gconf2-devel popt-devel gnome-keyring-devel libjpeg-devel gnome-vfs2-devel
# bug437293
%ifarch ppc64
Obsoletes:      libgnomeui-devel-64bit
%endif
#

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



Authors:
--------
    jacob berkman  <jacob@ximian.com>
    Michael Meeks  <michael@ximian.com>
    Anders Carlsson  <andersca@gnu.org>

%package doc
License:        GPL v2 or later ; LGPL v2.1 or later
Summary:        Additional Package Documentation.
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}

%description doc
This library contains all the User-Interface related functions for
GNOME-based Software. You need the libgnomeui-devel package too if you
want to develop GNOME 2.x Desktop-based Software.



Authors:
--------
    jacob berkman  <jacob@ximian.com>
    Michael Meeks  <michael@ximian.com>
    Anders Carlsson  <andersca@gnu.org>

%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p0

%build
%configure --with-pic\
	--libexecdir=%{_prefix}/lib/libgnomeui-2\
	--disable-static
make %{?jobs:-j%jobs}

%install
%makeinstall
%find_lang libgnomeui-2.0
find %{buildroot} -type f -name "*.la" -exec %{__rm} -vf {} +
%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.LIB README NEWS ChangeLog 
%{_datadir}/pixmaps/*.png
%{_libdir}/*.so.*
%{_libdir}/libglade/2.0/libgnome*.so

%files lang -f libgnomeui-2.0.lang
%if %suse_version <= 1110
# exclude locales which don't exist on old versions of openSUSE
%exclude %{_datadir}/locale/la/LC_MESSAGES/*
%endif

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

%files doc
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/libgnomeui

%changelog
openSUSE Build Service is sponsored by