File libgnome.spec of Package libgnome

# spec file for package libgnome (Version 2.32.0)
# Copyright (c) 2010 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

# norootforbuild

Name:           libgnome
BuildRequires:  fdupes
BuildRequires:  gnome-common
BuildRequires:  gtk-doc
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  gconf2-devel
BuildRequires:  gnome-vfs2-devel
BuildRequires:  libbonobo-devel
BuildRequires:  libcanberra-devel
BuildRequires:  translation-update-upstream
BuildRequires:  pkg-config
License:        GPLv2+ ; LGPLv2.1+
Group:          Development/Libraries/GNOME
Version:        2.32.0
Release:        1
Summary:        The GNOME 2.x Desktop Base Libraries
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %{name}-%{version}.tar.bz2
Source99:       baselibs.conf
# PATCH-FIX-OPENSUSE libgnome-sounds-default.diff -- Set default sounds for events
Patch4:         libgnome-sounds-default.patch
# PATCH-FIX-UPSTREAM libgnome-uninitialized-vars.patch bgo543570
Patch6:         libgnome-uninitialized-vars.patch
# PATCH-FIX-UPSTREAM libgnome-va_list-empty.patch bgo543570 -- This fixes the same as libgnome-uninitialized-vars.patch, so both can go away when upstream accepts patc
Patch8:         libgnome-va_list-empty.patch
Patch9:         libgnome-help-bundles.patch
# bug437293
%ifarch ppc64
Obsoletes:      libgnome-64bit
Recommends:     %{name}-lang = %{version}

This package contains the basic libraries for the GNOME 2.x Desktop
platform. GNOME has no specific window manager. You are totally free in
your choice. Many GNOME users like Sawfish, Enlightenment, or IceWM as
a window manager for GNOME (see those packages).

%package devel
License:        GPLv2+ ; LGPLv2.1+
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/GNOME
Provides:       libgnome-doc = %{version}
Obsoletes:      libgnome-doc < %{version}
#FIXME: major bloat, should be only
#Requires: libbonobo-devel
Requires:       %{name} = %{version} gconf2-devel orbit2-devel glib2-devel libbonobo-devel gnome-vfs2-devel popt-devel libesd-devel audiofile-devel glibc-devel
# bug437293
%ifarch ppc64
Obsoletes:      libgnome-devel-64bit

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

%setup -q
%patch8 -p1
%patch9 -p1

gtkdocize --copy
autoreconf -f -i
%configure --with-pic\
make %{?jobs:-j%jobs}

%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome/help $RPM_BUILD_ROOT%{_datadir}/gnome/autostart
%find_lang %{name}-2.0
cat %{name}.schemas_list >%{name}.lst
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +


%pre -f %{name}.schemas_pre

%post -p /sbin/ldconfig

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun -p /sbin/ldconfig

%files -f %{name}.lst
%defattr(-, root, root)
%dir %{_datadir}/gnome
# generic directory for help files
%dir %{_datadir}/gnome/help
# generic directory for autostart desktop files
# NOTE: This directory is referenced by (and technically belongs to)
# gnome-session. But libgnome provides complete support for such
# binaries so these binaries don't need gnome-session.
%dir %{_datadir}/gnome/autostart
%doc %{_mandir}/man7/gnome-options.7.gz
# generic directory for sound events
%dir %{_sysconfdir}/sound
%dir %{_sysconfdir}/sound/events
%config %{_sysconfdir}/sound/events/*.soundlist
# own directory to break build loop libgnome->gnome-themes->librsvg->libgnomeprintui->...->libgnome:
%dir %{_datadir}/gnome-background-properties
%dir %{_datadir}/pixmaps/backgrounds
%dir %{_datadir}/pixmaps/backgrounds/gnome

%files lang -f %{name}-2.0.lang

%files devel
%defattr(-, root, root)

openSUSE Build Service is sponsored by