Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37403729
en ru br
ALT Linux repos
5.0: 2.26.1-alt1
4.1: 2.22.2-alt0.M41.1
4.0: 2.16.3-alt1
3.0: 2.10.1-alt1

Group :: Graphical desktop/GNOME
RPM: gnome-desktop

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define ver_major 2.10
%define gnome_distributor "%vendor"
%define gnome_date "%(date "+%B %e %Y"), Moscow"
%def_disable static

Name: gnome-desktop
Version: %ver_major.1
Release: alt1

Summary: The gnome desktop programs for the GNOME GUI desktop environment
License: LGPL
Group: Graphical desktop/GNOME
Url: ftp://ftp.gnome.org

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Source1: gnome-about.png
Icon: gnome-desktop-icon.xpm

%define gtk_ver 2.6.4
%define libgnomeui_ver 2.10.0
%define gnome_vfs_ver 2.10.0
%define libgnomecanvas_ver 2.10.0
%define yelp_ver 2.9.3
%define startup_notification_ver 0.8
%define gnome_common_ver 2.8.0

Requires: lib%name = %version-%release
Requires: libgtk+2 >= %gtk_ver
Requires: libgnomeui >= %libgnomeui_ver
Requires: gnome-vfs2 >= %gnome_vfs_ver
Requires: libgnomecanvas >= %libgnomecanvas_ver
Requires: libstartup-notification >= %startup_notification_ver
Requires: yelp >= %yelp_ver
Requires: menu gnome2-user-docs icon-theme-hicolor

Conflicts: gnome-core
BuildPreReq: menu-devel
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libgnomeui-devel >= %libgnomeui_ver
BuildPreReq: gnome-vfs2-devel >= %gnome_vfs_ver
BuildPreReq: libgnomecanvas-devel >= %libgnomecanvas_ver
BuildPreReq: libstartup-notification-devel >= %startup_notification_ver
BuildPreReq: gnome-common >= %gnome_common_ver

# Automatically added by buildreq on Sun Feb 06 2005

BuildRequires: ORBit2-devel XFree86-devel XFree86-libs esound fontconfig freetype2 gcc-c++ gcc-g77 glib2-devel gnome-vfs2-devel libGConf2-devel libart_lgpl-devel libatk-devel libbonobo2-devel libbonoboui-devel libgnome-devel libgnome-keyring libgnomecanvas-devel libgnomeui-devel libgtk+2-devel libpango-devel libpopt-devel libstartup-notification-devel libstdc++-devel libxml2-devel perl-XML-Parser pkgconfig scrollkeeper

%description
GNOME (GNU Network Object Model Environment) is a user-friendly
set of applications and desktop tools to be used in conjunction with a
window manager for the X Window System.  GNOME is similar in purpose and
scope to CDE and KDE, but GNOME is based completely on free
software.  The %name package includes the basic programs and
libraries that are needed to install GNOME.

GNOME Desktop provides the core icons and libraries for the gnome
desktop.

%package -n lib%name
Summary: GNOME desktop core libraries
Group: Graphical desktop/GNOME

Icon: gnome-desktop-icon-l.xpm

Requires: libgtk+2 >= %gtk_ver
Requires: libgnomeui >= %libgnomeui_ver
Requires: gnome-vfs2 >= %gnome_vfs_ver
Requires: libgnomecanvas >= %libgnomecanvas_ver

%description -n lib%name
Gnome 2 desktop libraries.

%package -n lib%name-devel
Summary: GNOME desktop develop libraries and includes
Group: Development/GNOME and GTK+

Icon: gnome-desktop-icon-d.xpm

Requires: lib%name = %version-%release
Requires: libgtk+2-devel >= %gtk_ver
Requires: libgnomeui-devel >= %libgnomeui_ver
Requires: gnome-vfs2-devel >= %gnome_vfs_ver
Requires: libgnomecanvas-devel >= %libgnomecanvas_ver
Requires: libstartup-notification-devel >= %startup_notification_ver

%description -n lib%name-devel
Gnome 2 desktop libraries and header files for creating GNOME panels.

%package -n lib%name-devel-static
Summary: GNOME desktop develop libraries and includes
Group: Development/GNOME and GTK+
Requires: lib%name-devel = %version-%release

Icon: gnome-desktop-icon-ds.xpm

%description -n lib%name-devel-static
Gnome 2 desktop static libraries for creating GNOME panels.

%prep
%setup -q

# do not install broken fdl-eu.omf

%__subst 's,\(SUBDIRS = .* \)eu\(.*\),\1\2,' desktop-docs/fdl/Makefile.in

%build
%configure \
   %{subst_enable static} \
   --with-gnome-distributor=%gnome_distributor \
   --with-gnome-date=%gnome_date

%make_build

%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%makeinstall
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL

# Menu

%__install -p -m644 %SOURCE1 %buildroot%_datadir/pixmaps/


# gnome-about menu

%__mkdir_p %buildroot%_menudir
freedesktop2menu.pl %name "Documentation" \
   %buildroot%_datadir/applications/gnome-about.desktop \
   %buildroot%_menudir/gnome-about

#%__mkdir_p %buildroot%_datadir/gnome/distribution-menus/ALTLinux

#%__mkdir_p %buildroot%_datadir/application-registry

# remove non-packaged files

%__rm -rf %buildroot/var

%find_lang --with-gnome --output=%name.lang %name %name-2.0 fdl gnome-feedback gpl lgpl

%post
%update_menus
%postun
%clean_menus

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %post_ldconfig

%files
%_bindir/*
%_datadir/applications/*
%dir %_datadir/gnome
%dir %_datadir/gnome/help
%_datadir/gnome-about
%_datadir/pixmaps/*
%_menudir/*
%_man1dir/*
%doc AUTHORS ChangeLog NEWS README

%files -n lib%name -f %name.lang
%_libdir/*.so.*

%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif

%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