File libgnome.spec of Package libgnome

#
# spec file for package libgnome (Version 2.20.0)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           libgnome
BuildRequires:  fdupes gnome-common gnome-vfs2-devel gtk-doc gtk2-devel intltool audiofile-devel esound-devel
License:        GPL v2 or later, LGPL v2 or later
Group:          Development/Libraries/GNOME
Version:        2.20.0
Release:        5
Summary:        The GNOME 2.x Desktop Base Libraries
Url:            http://www.gnome.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %{name}-%{version}.tar.bz2
Patch:          pixmaps.diff
Patch2:         libgnome-default-handlers.patch
Patch3:         libgnome_preconf.diff
Patch4:         libgnome-sounds-default.diff
Patch6:         libgnome-uninitialized-vars.patch
Patch7:         libgnome-sentinel.patch
Patch8:         libgnome-va_list-empty.patch
Patch9:         libgnome-help-bundles.patch
AutoReqProv:    on
Requires:       %{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
Requires:       %{name} = %{version} gconf2-devel orbit2-devel glib2-devel libbonobo-devel gnome-vfs2-devel popt-devel audiofile-devel glibc-devel esound-devel

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



%package doc
Summary:        Additional Package Documentation.
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}

%description doc
This package contains the basic libraries for the GNOME 2.x platform.
GNOME itself contains no specific window manager thus you are totally
free in your choice of one. Many GNOME users like Sawfish,
Enlightenment, or IceWM as window manager for GNOME (see those
packages).



%lang_package
%debug_package
%prep
%setup -q 
%patch -p1
%patch2 -p1
%patch3
%patch4
%patch6
%patch7 -p1
%patch8 -p1
%patch9 -p1

%build
autoreconf -f -i
# needed for libgnome-2.16.0:
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure\
	--disable-static
make %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT
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
rm $RPM_BUILD_ROOT%{_libdir}/*/*/*.*a
%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}/*.*a
%{_libdir}/*.so
%{_libdir}/pkgconfig/libgnome-2.0.pc

%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/libgnome
%changelog
* Wed Sep 26 2007 - sbrabec@suse.cz
- Do not patch autogenerated file (#328562).
* Mon Sep 17 2007 - sbrabec@suse.cz
- Updated to version 2.20.0:
  * Build fixes
  * Set new background
  * Fix module loading
  * Only depend on esd when esd is compiled in
  * Updated translations
* Sat Sep 15 2007 - hpj@suse.de
- Update libgnome-help-bundles.patch to handle more cases.
* Fri Sep 14 2007 - hpj@suse.de
- Add libgnome-help-bundles.patch to make apps able to locate help
  files that live in help-bundle/ instead of help/.
* Fri Aug 24 2007 - cgaisford@novell.com
- updated the libgnome-preconf.dif file to disable accessibility
  by default.  This is in reference to Novell Bug #302316.
* Tue Aug 07 2007 - maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage
- s#%%run_ldconfig#/sbin/ldconfig/ in %%post and %%postun.
* Tue Jul 31 2007 - maw@suse.de
- Update to version 2.19.1:
  * Don't initialise ALSA when sound is disabled (449249; Christian Persch)
  * Translation updates: Runa Bhattacharjee (bn_IN), Hendrik Richter (de),
  Iñaki Larrañaga Murgoitio (eu), Ilkka Tuohela (fi), Ankit Patel (gu),
  Takeshi AIHANA (ja), Leonardo Fereira Fontenelle (pt_BR), Clytie Siddall (vi).
* Thu Jul 05 2007 - maw@suse.de
- Update to version 2.19.0
  * Rebuild the type builtins when the Makefile changes (Christian Persch)
  * Make bug-buddy work with applets again (Matthias Clasen, #424949)
  * Fix problems when building static libraries (Kjartan Maraas, #405352)
  * Fix typos (Kenneth Nielsen, Kjartan Maraas, #429751)
  * Add more information to docs for gnome_program_init () (Christian Persch,
  [#82943])
  * Updated translations
- mg: Thierry Randrianiriana
- nb: Kjartan Maraas
- sv: Daniel Nylander
- cy: Rhys Jones
- ar: Kjartan Maraas
- th: Theppitak Karoonboonyanan
- eu: Inaki Larranaga Murgoitio
- et: Priit Laes
- ca: Josep Puigdemont i Casamaj�
- gl: Ignacio Casal Quinteiro
- or: Subhransu Behera
- en_GB: David Lodge
- he: Yair Hershkovitz
* Mon Apr 16 2007 - sbrabec@suse.cz
- Do not patch autogenerated files. Fixes default theme and default
  soundlist.
* Wed Mar 21 2007 - maw@suse.de
- Update to version 2.18.0
- Duplicated #includes removed from several files
- Update to the MAINTAINERS file.
* Tue Feb 27 2007 - sbrabec@suse.cz
- Reduced BuildRequires.
* Fri Feb 16 2007 - maw@suse.de
- Update to version 2.17.91
* Tue Feb 13 2007 - sbrabec@suse.cz
- Do not build unusable static libraries (#238552#c17).
* Fri Feb 09 2007 - sbrabec@suse.cz
- Own %%{_datadir}/gnome/autostart.
* Sat Jan 06 2007 - sbrabec@suse.cz
- Added %%{_sysconfdir}/sound to file list.
* Thu Dec 14 2006 - sbrabec@suse.cz
- Added %%{_datadir}/gnome/help to file list.
* Wed Dec 13 2006 - sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Wed Dec 13 2006 - maw@suse.de
- Nuke second, redundant %%postun.
* Sat Sep 30 2006 - olh@suse.de
- use some portable way to clear a va_list
- build with make -j (#199805)
* Mon Sep 18 2006 - jhargadon@suse.de
- reapplied libgnome_preconf.dif which was mistakenly removed.
* Wed Sep 13 2006 - jhargadon@suse.de
- update to version 2.16.0
- Fix a small leak in a moniker.
- Revert the theme name again
- New and updated translations
* Thu Aug 17 2006 - jhargadon@suse.de
- update to version 2.15.2
- Use the right gtk+ theme name in the schema.
- updated translations
* Sat Jul 22 2006 - gekker@suse.de
- Update to version 2.15.1
- Remove upstreamed patches
  * Bug fixes:
    - Cleanups and related (Kjartan, Christian Persch)
    - Win32 portability (Tor)
    - Input method gconf schema defaults adjusted for Gtk+ 2.9.x
  (Christian)
    - API docs updates (Kjartan, Christian, Kristof Vansant)
    - po/LINGUAS handling (Przemysaw Grzegorczyk)
    - Constify some data (Beno� Dejean)
  * New and updated translations.
- update to libgnome 2.14.1
  * Bug fixes:
    - Fix memory leaks in gnome-program (Christian Persch)
    - Fixes for locating help files (Stefan Kost, Christian Persch)
    - Add --enable-esd switch (Leonardo Boshell)
    - Fix --espeaker option (Michael H. Schimek)
    - General cleanups (Kjartan)
    - Fix for 'run in terminal' launchers with gnome-terminal as
  the preferred terminal. (Vincent Vuntz)
  * Updated and new translations.
- update to libgnome 2.14.0
  * Updated and new translations.
- update to libgnome 2.13.90
  * Bug fixes
    - Initialize all the members of GnomeModuleInfo
  (Christian Perch)
    - Use GOption instead of popt as default (Christian Perch)
    - Add handling of GNOME_VFS_ERROR_INVALID_URI
  (Claudio Saavedra)
- update to libgnome 2.13.7
  * Bug fixes
   - Fix compilation issues due to the missing inclusion
  of popt.h (Emmanuele Bassi)
- update to libgnome 2.13.6
  * Bug fixes
    - Make popt usage deprecated and move to a full GOption
  support (Christian)
- update to libgnome 2.13.5
  * Bug fixes
    - Fix leaks in GOption code (Christian)
    - Don't make toolbars detachable by default (Sebastien)
    - Build related cleanups (Mark, Kjartan)
  * Docs
    - Improve docs for GOption handling in GnomeProgram
  * Translations
- update to libgnome 2.13.4
  * Bug fixes
    - Fix the broken fix for GnomeProgram. (Gustavo)
  (It broke gnome-python)
- update to libgnome 2.13.3
  * Bug fixes
    - Give feedback from gnome-url if the host can't be found
  (Christian Neumair)
    - Fix some warnings (Kjartan)
  * Translations
- update to libgnome 2.13.2
  * Features
    - New show_input_method_menu gconf key (Matthias Clasen)
    - Update of the cursors descriptions for the new GTK (Sebastien Bacher)
    - New remember_numlock_state gconf key (Jrg Billeter)
    - Add GNOME_URL_ERROR_CANCELLED and return it
  in gnome_url_show_with_env (Christian Neumair)
  * Bug fixes
    - Use G_SEARCHPATH_SEPARATOR_S instead of hardcoded ":"(Tor Lillqvist)
    - Add support for GOption argument parsing (Pawel Sliwowski, chpe) [#307312]
    - Use gnome-vfs on Win32, too (Tor Lillqvist)
  * Translation updates.
* Sat Jun 10 2006 - sreeves@suse.de
- Fix for 165711 - new "siren" sound
* Wed May 31 2006 - jpr@suse.de
- Make the wallpaper for nld9 upgrades the correct file (#177859)
* Sun Mar 05 2006 - dobey@suse.de
- Switch default theme to Gilouche
* Thu Feb 23 2006 - mfabian@suse.de
- Bugzilla #54176: remove libgnome-default-monospace-font.diff,
  the upstream default "monospace" guarantees an acceptable
  result for the language set in the locale environment.
  Using "Bitstream Vera Sans Mono" as the default monospace font
  cause problems for example for Greek because the fallback
  glyphs used for Greek don't look nice together with
  "Bitstream Vera Sans Mono".
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 17 2006 - dobey@suse.de
- Default to new Chlorophyll theme
* Tue Jan 10 2006 - ro@suse.de
- create empty va_list instead of using NULL (not portable)
* Thu Nov 24 2005 - meissner@suse.de
- mark gnome_program_init() with sentinel.
* Tue Sep 13 2005 - sbrabec@suse.cz
- Require libgnome by libgnome-devel (#116768).
* Wed Sep 07 2005 - sbrabec@suse.cz
- Updated to version 2.12.0.1.
* Tue Sep 06 2005 - sbrabec@suse.cz
- Updated to version 2.12.0.
* Fri Sep 02 2005 - jpr@suse.de
- Update patch so we have sounds by default (114726)
* Tue Aug 23 2005 - gekker@suse.de
- Update to version 2.11.3
* Sat Aug 13 2005 - aj@suse.de
- Fix last patch to build on all archs.
* Thu Aug 11 2005 - gekker@suse.de
- Update to version 2.11.2
- Fix use of uninitialized variable
* Thu Aug 04 2005 - gekker@suse.de
- Fix default sound patch to still work after autoreconf (74355).
* Thu Jul 21 2005 - gekker@suse.de
- Update to version 2.11.1
* Fri Jun 24 2005 - sbrabec@suse.cz
- Fixed devel requirements (#8283).
- Removed unneeded static modules and .la files for modules.
* Wed Jun 01 2005 - sbrabec@suse.cz
- Fixed devel requirements (#72282).
* Thu Apr 14 2005 - sbrabec@suse.cz
- Added audiofile-devel to neededforbuild.
* Mon Apr 11 2005 - sbrabec@suse.cz
- Fixed Requires of doc subpackage.
* Mon Apr 04 2005 - sbrabec@suse.cz
- Fixed incomplete array element type.
* Tue Mar 08 2005 - gekker@suse.de
- Update to version 2.10.0 (GNOME 2.10).
* Mon Mar 07 2005 - clahey@suse.de
- Apply all settings to both schemas and schemas.in.
* Fri Mar 04 2005 - gekker@suse.de
- Add libgnome-default-monospace-font.diff (54176).
* Wed Mar 02 2005 - gekker@suse.de
- update to 2.9.2
* Mon Feb 07 2005 - ro@suse.de
- added mDNSResponder to neededforbuild
* Thu Jan 27 2005 - hhetter@suse.de
- updated to version 2.9.1
- force gtk-doc generation
* Mon Nov 22 2004 - gekker@suse.de
- Update to version 2.8.0
* Fri Nov 19 2004 - ro@suse.de
- removed extra aclocal include directive
* Mon Oct 25 2004 - ro@suse.de
- locale rename: no -> nb
* Tue Oct 12 2004 - sbrabec@suse.cz
- Use gnutls instead of openssl (#44438).
* Tue Sep 07 2004 - shprasad@suse.de
- Fixes bug #64555 (Fix given by sdharmaveer@novell.com)
  Makes GNOME login/logout sounds play by default.
* Mon Aug 23 2004 - joeshaw@suse.de
- Set new background image.  (Ximian #62887)
* Wed Jul 14 2004 - clahey@suse.de
- Set new background image.
* Wed Jun 02 2004 - clahey@suse.de
- Switched to industrial theme and icon theme.  Set background image.
* Mon Apr 26 2004 - sbrabec@suse.cz
- Updated to version 2.6.1 (GNOME 2.6).
* Wed Mar 10 2004 - hhetter@suse.de
- default gtk theme to Industrial
- default Icon Theme to Gnome Crystal
* Wed Mar 10 2004 - sbrabec@suse.cz
- Fixed gconf schemas installation (#33114).
* Wed Feb 25 2004 - hhetter@suse.de
- apply patch: libgnome-default-handlers.patch
  default url handler shall be epiphany, not mozilla,
  and don't use netscape-remote
* Thu Feb 12 2004 - hhetter@suse.de
- gconf schema (de-)installation in %%post and %%postun
* Sat Jan 10 2004 - adrian@suse.de
- add %%run_ldconfig
* Wed Oct 22 2003 - sbrabec@suse.cz
- Fixed schemas installation.
* Tue Oct 07 2003 - sbrabec@suse.cz
- Updated to version 2.4.0 (GNOME 2.4).
* Mon Aug 18 2003 - sbrabec@suse.cz
- Updated to version 2.2.3.
* Mon Jul 14 2003 - sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Fri Jun 27 2003 - sbrabec@suse.cz
- Set localstatedir to /var (needed for gnome-scores).
* Tue Jun 24 2003 - sbrabec@suse.cz
- Updated to version 2.2.2.
- Prefix clash fix (gtk-doc).
* Tue May 27 2003 - ro@suse.de
- keep buildroot clean
* Mon May 26 2003 - sbrabec@suse.cz
- Do not provide gnvfs/gnvfsd (needed by new RPM).
* Wed May 14 2003 - sbrabec@suse.cz
- Sync -devel Requires with pkgconfig (bug #26875).
* Wed Apr 30 2003 - sf@suse.de
- use autoreconf for libtool working correctly
  (needed patch in Makefile.am)
* Tue Feb 18 2003 - hhetter@suse.de
- remove printf in pixmaps.dif
* Thu Feb 13 2003 - hhetter@suse.de
- look also in GNOME2_PATH without attr_rel addition, to be
  able to specify exact paths for pixmaps
* Wed Jan 29 2003 - hhetter@suse.de
- fix schema list
- updated to version 2.2.0.1
* Wed Jan 15 2003 - hhetter@suse.de
- updated to version 2.1.90
- recheck schema list
* Thu Nov 28 2002 - hhetter@suse.de
- updated to version 2.0.6 [GNOME 2.0.3]
* Tue Nov 05 2002 - sbrabec@suse.cz
- Updated %%files.
- Fixed --libexecdir for biarch.
* Thu Oct 31 2002 - hhetter@suse.de
- updated to version 2.0.5
* Tue Sep 24 2002 - sbrabec@suse.cz
- Added alsa-devel to neededforbuild, because esound-devel can require it.
- Updated %%files section.
* Fri Sep 20 2002 - sbrabec@suse.cz
- Added alsa to neededforbuild, because esound can depend on it.
* Tue Aug 20 2002 - hhetter@suse.de
- added PreReq: filesystem
* Thu Aug 15 2002 - hhetter@suse.de
- branch doc package
* Wed Aug 14 2002 - hhetter@suse.de
- reduce dependencies
* Fri Aug 09 2002 - hhetter@suse.de
- add openssl to neededforbuild
* Wed Aug 07 2002 - hhetter@suse.de
- updated to version 2.0.2
  * libexec movement
- fix filelist
* Fri Jul 26 2002 - adrian@suse.de
- fix neededforbuild
* Tue Jun 25 2002 - hhetter@suse.de
- fix schema-list
* Thu Jun 20 2002 - hhetter@suse.de
- don't install schemas while make install
* Thu Jun 20 2002 - hhetter@suse.de
- supply schema files
* Tue Jun 11 2002 - hhetter@suse.de
- updated to version 2.0.1
* Mon Jun 10 2002 - hhetter@suse.de
- updated to version 2.0.0
* Tue Jun 04 2002 - hhetter@suse.de
- updated to release 1.117.2
* Wed May 15 2002 - ro@suse.de
- use libdir
* Wed Apr 10 2002 - hhetter@suse.de
- update to 1.114.0 [gnome desktop beta3]
* Fri Feb 01 2002 - hhetter@suse.de
- updated to 1.110.0 [gnome desktop alpha2]
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Thu Jan 17 2002 - hhetter@suse.de
- prefix to /opt/gnome2
* Mon Jan 14 2002 - hhetter@suse.de
- updated to version 1.109.0
  * gconf2-schema updates
  * documentation updates
* Wed Jan 09 2002 - hhetter@suse.de
- initial SuSE package for GNOME 2.0 platform
openSUSE Build Service is sponsored by