Sisyphus repository
Last update: 18 september 2019 | SRPMs: 17444 | Visits: 15120595
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.16
%def_disable static

Name: libgnome
Version: %ver_major.0
Release: alt1

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

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Source1: gnome-menu.svg
Source2: gnome-button.png

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

# 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

# From configure.in

BuildPreReq: esound-devel >= %esound_ver
BuildPreReq: audiofile-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: 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: audiofile-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

%build
%__autoreconf
%configure \
   %{subst_enable static} \
   --disable-esd \
   --disable-schemas-install \
   --enable-gtk-doc

%make_build

%install
%makeinstall

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

%__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_browser desktop_gnome_applications_help_viewer 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
for s in %schemas; do
   echo "%%config %_sysconfdir/gconf/schemas/$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
%_libdir/bonobo/servers/*.server
%dir %_sysconfdir/sound
%dir %_sysconfdir/sound/events
%_datadir/pixmaps/*
%_man7dir/*
%config %_sysconfdir/sound/events/*
%config %_sysconfdir/gconf/schemas/*

%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