File libgnome.spec of Package libgnome

#
# spec file for package libgnome
#
# 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:           libgnome
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gnome-common
BuildRequires:  gnome-vfs2-devel
BuildRequires:  gtk-doc
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libbonobo-devel
BuildRequires:  libcanberra-devel
BuildRequires:  pkg-config
BuildRequires:  translation-update-upstream
Version:        2.32.1
Release:        0
Summary:        The GNOME 2.x Desktop Base Libraries
License:        LGPL-2.1+
Group:          Development/Libraries/GNOME
Url:            http://www.gnome.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.32/%{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
# PATCH-FIX-OPENSUSE
Patch9:         libgnome-help-bundles.patch
# bug437293
%ifarch ppc64
Obsoletes:      libgnome-64bit
%endif
#
# A bunch of legacy gnome apps relies more or less on yelp for a working help system (it can be reconfigured). Thus we recommend yelp from here, as low in the stack as it makes sense.
Recommends:     yelp
Recommends:     %{name}-lang = %{version}
%gconf_schemas_prereq

%description
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
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}
Requires:       audiofile-devel
Requires:       gconf2-devel
Requires:       glib2-devel
Requires:       glibc-devel
Requires:       gnome-vfs2-devel
Requires:       libbonobo-devel
Requires:       libesd-devel
Requires:       orbit2-devel
Requires:       popt-devel
# bug437293
%ifarch ppc64
Obsoletes:      libgnome-devel-64bit
%endif
#

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



%lang_package
%prep
%setup -q
translation-update-upstream
%patch4
%patch6
%patch8 -p1
%patch9 -p1

%build
gtkdocize --copy
autoreconf -f -i
%configure --with-pic\
        --disable-esd\
	--disable-static
echo "#undef G_DISABLE_DEPRECATED" >> config.h
make %{?jobs:-j%jobs}

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

%clean
rm -rf $RPM_BUILD_ROOT

%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)
%doc AUTHORS COPYING.LIB ChangeLog NEWS README
%{_bindir}/*
%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
%{_datadir}/gnome-background-properties/*.xml
%{_datadir}/pixmaps/backgrounds/gnome/*.*
%{_libdir}/*.*so.*
%{_libdir}/bonobo/monikers/*.so
%{_libdir}/bonobo/servers/*
%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)
%{_includedir}/libgnome-2.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/libgnome-2.0.pc
%{_datadir}/gtk-doc/html/libgnome

%changelog
openSUSE Build Service is sponsored by