File gnome-libs.spec of Package gnome-libs

#
# spec file for package gnome-libs (Version 1.4.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:           gnome-libs
BuildRequires:  db-devel esound-devel giflib-devel gnome-common gtk-devel imlib-devel jpeg libpng-devel libtiff-devel orbit-devel popt-devel
# For directory ownership:
BuildRequires:  gtk-doc
License:        GPL v2 or later ; LGPL v2.1 or later
Group:          System/Libraries
Obsoletes:      gnlibs
Provides:       gnlibs
Requires:       libgnomeui
AutoReqProv:    on
# bug437293
%ifarch ppc64
Obsoletes:      gnome-libs-64bit
%endif
#
Summary:        The GNOME Base Libraries
Version:        1.4.2
Release:        14
Source0:        ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-libs/gnome-libs-%{version}.tar.bz2
Source1:        gnome.sh
Source2:        gnome.csh
Patch0:         gnome-libs-%{version}.dif
Patch2:         susemenu.dif
Patch3:         gnome-scores.dif
Patch4:         gnome-libs-intl.dif
Patch5:         i18nfix.dif
Patch8:         gnome-libs-1.4.2-use-call-browser.diff
Patch9:         gnome-libs-m4_quote_fix.dif
Patch10:        gnome-libs-gcc4.patch
Patch11:        gnome-libs-gettext.patch
Patch12:        gnome-libs-system-popt.patch
Patch13:        gnome-libs.umode_t.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.gnome.org/

%description
This package contains the basic GNOME libraries.

GNOME itself contains no specific window manager. Many GNOME users like
Sawfish, Enlightenment, or IceWM as a window manager for GNOME (see
those packages).



Authors:
--------
    Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
    Anders Carlsson <andersca@gnu.org>
    Andreas Hyden <a.hyden@cyberpoint.se>
    Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
    Andrew T. Veliath <andrewtv@usa.net>
    ape@spacetec.no (Asbjorn Pettersen)
    Arturo Espinosa Aldama <arturo@nuclecu.unam.mx>
    Augusto Cesar Radtke <bishop@sekure.org>
    Bertrand Guiheneuf <Bertrand.Guiheneuf@inria.fr>
    Birger Langkjer <birger.langkjer@image.dk>
    Carsten Schaar <nhadcasc@fs-maphy.uni-hannover.de>
    Cesar Miquel <miquel@df.uba.ar>
    Changwoo RYU <cwryu@adam.kaist.ac.kr>
    Chris Lahey <clahey@umich.edu>
    Christopher Blizzard <blizzard@redhat.com>
    Christopher James Lahey <clahey@helixcode.com>
    Christopher R. Gabriel <cgabriel@firenze.linux.it>
    Christoph Toshok <toshok@hungry.com>
    Cody Russell <bratsche@dfw.net>
    Daniel M. German <dmg@csg.uwaterloo.ca>
    Daniel Veillard <Daniel.Veillard@w3.org>
    Dave Camp <campd@oit.edu>
    David Abilleira <odaf@nexo.es>
    David KAELBLING <drk@sgi.com>
    Dick Porter <dick@acm.org>
    Dietmar Maurer <dm@vlsivie.tuwien.ac.at>
    Eckehard Berns <eb@berns.i-s-o.net>
    Eckeherad Berns <eb@berns.prima.de>
    Elliot Lee <sopwith@redhat.com>
    ERDI Gergo <cactus@cactus.rulez.org>
    Eric Backus <ericb@lsid.hp.com>
    Erik Troan <ewt@redhat.com>
    Ettore Perazzoli <ettore@helixcode.com>
    Evan Lawrence <evan@worldpath.net>
    Federico Mena Quintero <federico@helixcode.com>
    Felix Bellaby <felix@pooh.u-net.com>
    Francisco Bustamante <pancho@nuclecu.unam.mx>
    Francois Pinard <pinard@iro.umontreal.ca>
    Frank Belew <frb@umr.edu>
    George Lebl <jirka@5z.com>
    Gregory McLean <gregm@comstar.net>
    Havoc Pennington <hp@pobox.com>
    Herbert Valerio Riedel <hvr@hvrlab.dhs.org>
    Horacio J. Peqa <horape@compendium.com.ar>
    Howard Gayle <howard@hal.com>
    Iain Holmes <ih@csd.abdn.ac.uk>
    Ian Peters <itp@gnu.org>
    Jacob Berkman <jacob@helixcode.com>
    Jaka Mocnik <jaka.mocnik@kiss.uni-lj.si>
    James Henstridge <james@daa.com.au>
    Jason Leach <leach@wam.umd.edu>
    Jay Cox <jaycox@earthlink.net>
    Jay Painter <jpaint@serv.net>
    Jeff Garzik <jgarzik@pobox.com>
    Jesus Bravo Alvarez <jba@pobox.com>
    Jim Pick <jim@jimpick.com>
    Jody Goldberg <jgoldberg@home.com>
    Joe Shaw <joe@helixcode.com>
    John Ellis <johne@bellatlantic.net>
    John Sullivan <sullivan@eazel.com>
    Jonathan Blandford <jrb@redhat.com>
    JP Rosevear <jpr@arcavia.com>
    Justin Maurer <justin@openprojects.net>
    Karl Eichwalder <ke@suse.de>
    Karsten Weiss <karsten@addx.au.s.shuttle.de>
    Kjartan Maraas <kmaraas@online.no>
    Larry Ewing <lewing@gimp.org>
    Larry Schwimmer <rosebud@cyclone.stanford.edu>
    Lauris Kaplinski <lauris@ariman.ee>
    Luca Lizzeri <ll@niche.it>
    Maciej Stachowiak <mstachow@alum.mit.edu>
    Mandrake <mandrake@mandrake.net>
    Manish Singh <yosh@gimp.org>
    Manish Vachharajani <mvachhar@vger.rutgers.edu>
    Marc Ewing <marc@germ.labs.redhat.com>
    Marcus Daniels <marcus@sysc.pdx.edu>
    Marius Vollmer <mvo@zagadka.ping.de>
    Mark Crichton <crichton@expert.cc.purdue.edu>
    Mark Galassi <rosalia@cygnus.com>
    Martijn van Beers <martijn@earthling.net>
    Martin Baulig <martin@home-of-linux.org>
    Martin Norbdck <d95mback@dtek.chalmers.se>
    Martin Wahlen <mva@sbbs.se>
    Matthias Warkus <mawa@iname.com>
    Matt Loper <matt@gnome-support.com>
    Matt Wilson <msw@redhat.com>
    Michael Fulbright <msf@majestic.labs.redhat.com>
    Michael Lausch <mla@gams.at>
    Michael Meeks <michael@nuclecu.unam.mx>
    Michael Zucchi <zucchi@zedzone.mmc.com.au>
    Miguel de Icaza <miguel@helixcode.com>
    Mikko Rauhala <mjr@iki.fi>
    Miroslav Silovic <silovic@zesoi.fer.hr>
    Morten Welinder <terra@diku.dk>
    Nat Friedman <nat@gnome-support.com>
    Nathan Summers <rock@gimp.org>
    Nelson H. F. Beebe <beebe@math.utah.edu>
    Nick Fetchak <nuke@bayside.net>
    Norbert Warmuth <nwarmuth@privat.circular.de>
    NotZed <NotZed@HelixCode.com>
    Nuno Ferreira <nmrf@rnl.ist.utl.pt>
    Owen Taylor <otaylor@redhat.com>
    Pablo Saratxaga <pablo@mandrakesoft.com>
    Paolo Molaro <lupus@debian.org>
    Paul Sheer <psheer@obsidian.co.za>
    Pavel Machek <pavel@ucw.cz>
    Peter Teichman <pat4@acpub.duke.edu>
    Radek Doulik <rodo@aquarius>
    Raffaele Sena <raff@aromatic.com>
    Raja R Harinath <harinath@cs.umn.edu>
    Ramiro Estrugo <ramiro@eazel.com>
    Raph Levien <raph@acm.org>
    Richard Hestilow <hestgray@ionet.net>
    Richard Hult <rhult@hem2.passagen.se>
    Robert Brady <rwb197@ecs.soton.ac.uk>
    Roberto Zunino <zunino@cli.di.unipi.it>
    Rodrigo Stulzer Lopes <rodrigo@conectiva.com.br>
    Ronald de Man <deman@win.tue.nl>
    Russell Steinthal <rms39@columbia.edu>
    Rusty Conover <rconover@zootweb.com>
    Scott D. Heavner <sdh@po.cwru.edu>
    Sebastian Wilhelmi <wilhelmi@ira.uka.de>
    Sergey Panov <sipan@mit.edu>
    Seth Alves <alves@hungry.com>
    Shooby Ban <bansz@szif.hu>
    Simon Kagedal <simon@sdf.se>
    Spiros Papadimitriou <spapadim+@cs.cmu.edu>
    Stephen Rust <steve@tp.org>
    Stuart Parmenter <pavlov@pavlov.net>
    Sven Neumanns <sven@gimp.org>
    Szekeres Istvan <szekeres@cyberspace.mht.bme.hu>
    Ted Lemon <mellon@hoffman.vix.com>
    The Rasterman <raster@redhat.com>
    Tim Janik <timj@gtk.org>
    Tim P. Gerla <timg@means.net>
    Timur I. Bakeyev <timur@gnu.org>
    Tomas Ogren <stric@ing.umu.se>
    Tomislav Vujec <tvujec@carnet.hr>
    Tom Tromey <tromey@cygnus.com>
    Tristan Tarrant <ttarrant@etnoteam.it>
    Tuomas J. Lukka <lukka@iki.fi>
    Tuomas Kuosmanen <tigert@gimp.org>
    Tuomas Lukka <lukka@iki.fi>
    Ulrich Drepper <drepper@cygnus.com>
    Valek Filippov <frob@df.ru>
    Ville <villeh@cs.joensuu.fi>
    Vincent Renardias <vincent@ldsol.com>
    Walter Mueller <walt@pi4.informatik.uni-mannheim.de>
    Yukihiro Nakai <nakai@gnome.gr.jp>
    Zbigniew Chyla <chyla@buy.pl>

%package devel
License:        GPL v2 or later ; LGPL v2.1 or later
Requires:       gnome-libs = %{version} gxmhtml = %{version}
Requires:       db-devel esound-devel gtk-devel orbit-devel imlib-devel libjpeg-devel libpng-devel popt-devel
Obsoletes:      gnlibsd
Provides:       gnlibsd
# bug437293
%ifarch ppc64
Obsoletes:      gnome-libs-devel-64bit
%endif
#
Summary:        Libraries, etc. to Develop GNOME Applications
Group:          Development/Libraries/GNOME

%description devel
Libraries, includes, and more for developing your own GNOME
applications or to compile other GNOME packages.



Authors:
--------
    cf. package "gnlibs"

%package doc
License:        GPL v2 or later ; LGPL v2.1 or later
Requires:       gnome-libs = %{version} gxmhtml = %{version}
Summary:        Libraries, etc. to Develop GNOME Applications
Group:          Development/Libraries/GNOME

%description doc
Libraries, includes, and more for developing your own GNOME
applications or to compile other GNOME packages.



Authors:
--------
    cf. package "gnlibs"

%package -n gxmhtml
License:        LGPL v2.1 or later
Summary:        Gtk-XMHTML
Group:          System/Libraries
AutoReqProv:    on
PreReq:         /bin/rmdir

%description -n gxmhtml
Gtk-XMHTML is a GTK component for visualizing HTML.



Authors:
--------
    Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
    ape@spacetec.no (Asbjorn Pettersen)
    Changwoo Ryu <cwryu@adam.kaist.ac.kr>
    Federico Mena Quintero <federico@nuclecu.unam.mx>
    Havoc Pennington <hp@pobox.com>
    Jay Cox <jaycox@earthlink.net>
    Kjartan Maraas <kmaraas@fib.hl.no>
    Manish Singh <yosh@gimp.org>
    Miguel de Icaza <miguel@nuclecu.unam.mx>
    Nuno Ferreira <nmrf@rnl.ist.utl.pt>
    Owen Taylor <otaylor@redhat.com>
    Raffaele Sena <raff@aromatic.com>
    Raja R Harinath <harinath@cs.umn.edu>
    Ronald de Man <deman@win.tue.nl>
    Tim Janik <timj@gtk.org>
    Ulrich Drepper <drepper@cygnus.com>

%prep
%setup -q
%patch0 -p 1
%patch2 -p 1
%patch3 -p 1
%patch4 -p 1
%patch5 -p 1
%patch8
%patch9
%patch10 -p1
%patch11
%patch12
%patch13 -p1
cp -a %{S:1} %{S:2} .
rename no nb po/no.*
sed -i "s/\(ALL_LINGUAS.*\) no /\1 nb /" configure.in

%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just comment out the export.
export SUSE_ASNEEDED=0
%if 0
libtoolize --force
aclocal -I macros
automake -a --copy
autoconf
sed -i -e "s|m4exit(1)| |g" configure
pushd libart_lgpl
libtoolize --force
aclocal  
automake -a --copy
autoconf
popd
sed -i -e "s@/lib@/%_lib@" gnome-config.in
%ifarch ppc64
export ac_cv_type_umode_t=yes
%endif
%else
autoreconf -fi
pushd libart_lgpl
autoreconf -fi
popd
%endif
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing --save-temps"
#make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
# FIXME: gtk-doc recompilation fails
%configure --disable-static	\
	--with-pic		\
	--disable-gtk-doc

%install
make install DESTDIR=$RPM_BUILD_ROOT
# installing profiles for GNOME
mkdir -p $RPM_BUILD_ROOT/etc/profile.d/
install -m644 gnome.sh $RPM_BUILD_ROOT/etc/profile.d/gnome.sh
install -m644 gnome.csh $RPM_BUILD_ROOT/etc/profile.d/gnome.csh
#mv -f $RPM_BUILD_ROOT%{prefix}/html \
#      $RPM_BUILD_ROOT%{_datadir}/gnome/help/gnome-libs
mkdir to-doc
mv -f $RPM_BUILD_ROOT%{_prefix}/doc/* to-doc
mv -f $RPM_BUILD_ROOT%{_datadir}/doc/* to-doc
gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man?/*.?
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/CORBA/servers
# There files are used from libgnomeui
rm $RPM_BUILD_ROOT%{_datadir}/pixmaps/{gnome-default-dlg.png,gnome-error.png,gnome-info.png,gnome-question.png,gnome-warning.png}
rm devel-docs/*/Makefile*
%find_lang %{name}
%{__rm} -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%post -n gxmhtml -p /sbin/ldconfig

%postun -n gxmhtml -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-, root, root)
%doc ABOUT-NLS AUTHORS COPYING* HACKING NEWS README
%doc to-doc/*
/etc/profile.d/gnome.sh
/etc/profile.d/gnome.csh
%{_bindir}/dns-helper
%{_bindir}/gconfigger
%{_bindir}/gnome-bug
%{_bindir}/gnome-dump-metadata
%{_bindir}/gnome-gen-mimedb
%{_bindir}/gnome-moz-remote
%{_bindir}/gnome-name-service
%{_bindir}/gnome_segv
%{_bindir}/goad-browser
%{_bindir}/loadshlib
%{_bindir}/new-object
%{_datadir}/idl/*
%{_datadir}/pixmaps/*
%{_datadir}/gtkrc*
# This directory is also owned by libgnome for GNOME2 applications.
%dir %{_datadir}/gnome
%{_datadir}/gnome/html
%doc %{_datadir}/gnome/help
# generic directory for GNOME MIME Info.
# We do not support it any more and no other files should be installed there.
# FIXME: If gnome-libs can work without this directory, delete it.
%dir %{_datadir}/mime-info
%{_datadir}/mime-info/*
%{_datadir}/type-convert
%{_libdir}/libart*.so.*
%{_libdir}/libgno*.so.*
%{_libdir}/libzvt*.so.*
%doc %{_mandir}/man?/*.*
%attr(775, root, tty) %{_sbindir}/gnome-pty-helper
%{_sysconfdir}/profile.d/*
%config %{_sysconfdir}/mime-magic*
%config %{_sysconfdir}/mime-magic.dat
%config %{_sysconfdir}/paper.config
# These directories are also owned by libgnome for GNOME2 applications.
%dir %{_sysconfdir}/sound
%dir %{_sysconfdir}/sound/events
%config %{_sysconfdir}/sound/events/*.soundlist

%files devel
%defattr(-, root, root)
%{_bindir}/gnome-config
%{_bindir}/libart-config
%{_libdir}/*.so
%{_libdir}/*.sh
%{_libdir}/gnome-libs
%{_includedir}/*
%{_datadir}/aclocal/*

%files doc
%defattr(-, root, root)
%doc devel-docs
%{_datadir}/gtk-doc/html/*

%files -n gxmhtml
%defattr(-, root, root)
%{_libdir}/libgtkxmhtml*.so.*

%changelog
openSUSE Build Service is sponsored by