Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37404000
en ru br
ALT Linux repos
S:2.32.1-alt4
5.0: 2.26.0-alt1
4.1: 2.22.0-alt5.M41.2
4.0: 2.16.0-alt1
3.0: 2.10.1-alt1

Group :: System/Libraries
RPM: libgnome

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define ver_major 2.22
%def_disable static
%def_disable gtk_doc
# from gnome package
%define default_gnome_theme_name Glossy
%define default_gnome_mouse_cursor_theme jimmac

Name: libgnome
Version: %ver_major.0
Release: alt5.M41.2

Summary: GNOME base library
License: LGPLv2
Group: System/Libraries
Url: ftp://ftp.gnome.org

Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>

Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
Source1: gnome-menu.svg
Source2: gnome-button.png
Source3: desktop_gnome_peripherals_monitor.schemas

# Play system sounds by default

Patch: %name-2.22.0-alt-default_sound_settings.patch
# settings from package gnome-settings
Patch1: libgnome-alt-settings.patch

Patch2: libgnome-2.11.1-scoreloc.patch
# backport from upstream svn
Patch9: libgnome-im-setting.patch
# from gnome-minimal package
Patch10: libgnome-2.22.0-alt-default_gtk_theme.patch
# default browser -- Epiphany
Patch11: libgnome-2.22.0-alt-default_browser.patch
# default cursor -- jimmac
Patch12: libgnome-2.22.0-alt-default_cursor.patch

Obsoletes: %name-utils
Provides: %name-utils = %version-%release

Conflicts: gnome-settings
# bug in pre 2.21.90-alt1
Requires: GConf >= 2.21.90-alt1
Requires: gnome-audio
# depends on libgnome-2.22.0-alt-default_cursor.patch
# see altbug #17129
#Requires: x-cursor-theme-jimmac


# From configure.in

%define audiofile_ver 0.2.3
%define esound_ver 0.2.26
%define GConf_ver 1.1.11
%define glib_ver 2.8.0
%define gnome_vfs_ver 2.5.3
%define libbonobo_ver 2.13.0
%define gtk_doc_ver 1.0
%define intltool_ver 0.35
%define ORBit_ver 2.12.1
%define gnome_common_ver 2.8.0
%define gnome_settings_ver 2.6.0

PreReq: GConf2 >= %GConf_ver

BuildPreReq: rpm-build-gnome

# From configure.in

BuildPreReq: esound-devel >= %esound_ver
BuildPreReq: libaudiofile-devel >= %audiofile_ver
BuildPreReq: GConf2 >= %GConf_ver
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: gnome-vfs2-devel >= %gnome_vfs_ver
BuildPreReq: ORBit2-devel >= %ORBit_ver
BuildPreReq: libbonobo2-devel >= %libbonobo_ver
BuildPreReq: libGConf2-devel >= %GConf_ver
BuildPreReq: intltool >= %intltool_ver
BuildPreReq: gnome-common >= %gnome_common_ver
BuildPreReq: gtk-doc >= %gtk_doc_ver

BuildRequires: gcc-c++ libpopt-devel

%description
GNOME (GNU Network Object Model Environment) is a user-friendly set of
GUI applications and desktop tools to be used in conjunction with a
window manager for the X Window System. The libgnome package includes
non-GUI-related libraries that are needed to run GNOME. The libgnomeui
package contains X11-dependent GNOME library features.

%package devel
Summary: Libraries and headers for libgnome
Group: Development/GNOME and GTK+
Requires: %name = %version-%release
Requires: glib2-devel >= %glib_ver
Requires: gnome-vfs2-devel >= %gnome_vfs_ver
Requires: ORBit2-devel >= %ORBit_ver
Requires: libbonobo2-devel >= %libbonobo_ver
Requires: libGConf2-devel >= %GConf_ver
Requires: esound-devel >= %esound_ver
Requires: libaudiofile-devel >= %audiofile_ver
Requires: intltool >= %intltool_ver
Requires: libpopt-devel


%description devel
GNOME (GNU Network Object Model Environment) is a user-friendly set of
GUI applications and desktop tools to be used in conjunction with a
window manager for the X Window System. The libgnome-devel package
includes the libraries and include files that you will need to
use libgnome.

You should install the libgnome-devel package if you would like to
compile GNOME applications. You do not need to install libgnome-devel
if you just want to use the GNOME desktop environment.

%package devel-doc
Summary: Development documentation for %name
Group: Development/GNOME and GTK+
Conflicts: %name < %version-%release

%description devel-doc
GNOME (GNU Network Object Model Environment) is a user-friendly set of
GUI applications and desktop tools to be used in conjunction with a
window manager for the X Window System. The libgnome package includes
non-GUI-related libraries that are needed to run GNOME.

This package provides development documentation for %name.

%package devel-static
Summary: Static libraries and objects for gnome libs
Group: Development/GNOME and GTK+
Requires: %name-devel = %version-%release

%description devel-static
Static libraries and objects for gnome library infrastructure

%define _gtk_docdir %_datadir/gtk-doc/html
# This is for gnome-open to land in %_bindir
%define _libexecdir %_bindir

%prep
%setup -q
%patch
%patch1 -p1
%patch2 -p1 -b .scoreloc
%patch9 -p1 -b .im-setting
%patch10 -p1
%patch11 -p1
%patch12

%build
%autoreconf
%configure \
   %{subst_enable static} \
   --enable-esd \
   --disable-schemas-install \
   %{?_enable_gtk_doc:--enable-gtk-doc}

%make_build

%install

%make_install DESTDIR=%buildroot install

%__install -pD -m644 %SOURCE1 %buildroot%_datadir/pixmaps/gnome-menu.svg
%__install -m644 %SOURCE2 %buildroot%_datadir/pixmaps/gnome-menu.png
%__install -m644 %SOURCE3 %buildroot%_sysconfdir/gconf/schemas/

%__bzip2 -9fk ChangeLog

%find_lang --with-gnome --output=files_list %name-2.0

%define schemas desktop_gnome_accessibility_keyboard desktop_gnome_accessibility_startup desktop_gnome_applications_at_mobility  desktop_gnome_applications_at_visual desktop_gnome_applications_browser desktop_gnome_applications_terminal desktop_gnome_applications_window_manager desktop_gnome_background desktop_gnome_file_views desktop_gnome_interface desktop_gnome_lockdown desktop_gnome_peripherals_keyboard desktop_gnome_peripherals_mouse desktop_gnome_sound desktop_gnome_thumbnailers desktop_gnome_typing_break desktop_gnome_peripherals_monitor desktop_gnome_applications_office

for s in %schemas; do
   echo "%%config %gconf_schemasdir/$s.schemas"
done >>files_list

%post
%post_ldconfig
%gconf2_install %schemas

%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %schemas
fi

%postun -p %postun_ldconfig

%files -f files_list
%_bindir/*
%_libdir/*.so.*
%_libdir/bonobo/monikers/*.so
%bonobo_serversdir/*.server
%dir %_sysconfdir/sound
%dir %_sysconfdir/sound/events
%_datadir/pixmaps/*
%_datadir/gnome-background-properties/gnome-default.xml
%_man7dir/*
%config %_sysconfdir/sound/events/*

%files devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*
%doc NEWS ChangeLog*

%files devel-doc
%_gtk_docdir/*

%if_enabled static
%files devel-static
%_libdir/*.a
%_libdir/bonobo/*/*.a
%endif

%exclude %_libdir/bonobo/monikers/*.la

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin