Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37599064
en ru br
ALT Linux repos
5.0: 1.4.2-alt8
4.1: 1.4.2-alt7
4.0: 1.4.2-alt7
3.0: 1.4.2-alt6

Other repositories
Upstream:1.4.2

Group :: System/Libraries
RPM: gnome-libs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: gnome-libs
Version: 1.4.2
Release: alt6

Summary: Main GNOME libraries
License: LGPL
Group: System/Libraries
Url: http://www.gnome.org/
Packager: Mikhail Zabaluev <mhz at altlinux.ru>

Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/%name/%name-%version.tar.bz2
Source1: conv_deskfiles.pl

%def_disable static
%define preferdb --enable-prefer-db1

# Red Hat patches

Patch1: RH-%name-rhsnddefs.patch
# rawhide - Enable setting canvas into a "bghack" mode with gtk_object_set_data
Patch2: %name-1.2.13-bghack.patch
# allow reading UTF-8 encoded .desktop
Patch3: %name-1.4.2-utf8menu.patch

# Mandrake patches

# (fc) search icons first in /usr/share/icons/large, normal and small
Patch5: %name-1.4.2-iconspath.patch
# (fc) 1.2.13-2mdk fix bug 3730 (nautilus should not draw desktop when called as help browser)
Patch7: %name-1.2.13-nautilus.patch
# (fc) 1.4.1.2-10mdk fix missing prototypes
Patch18: %name-1.4.1.3-prototypes.patch
# (fc) 1.4.1.4-2mdk fix font size in gtk-xmhtml
Patch19: %name-1.4.1.4-fonts.patch
# (fc) 1.4.1.4-3mdk fix parsing of escape sequence (beep when launching vim) (Debian)
#Patch20: %name-1.4.1.4-zvtescape.patch
# (fc) 1.4.1.4-3mdk fix numeric keypad switching (fix keypad in vim) (Debian)
Patch21: %name-1.4.1.4-keypad.patch
# (pablo) 1.4.1.4-4mdk patch to have gnome-terminal switch automatically
# to utf-8 mode if the locale is utf-8
Patch22: http://noa.tm/utf-8/patches/%name-zvt-utf8-autodetect.patch
# (fc) 1.4.1.7-2mdk don't add -L/usr/lib to ldflags
#Patch23: %name-1.4.1.7-libdir.patch
# (fc) 1.4.2-1mdk remove -I/usr/include from cflags
Patch24: %name-1.4.2-includedir.patch

# ALT patches

# fix cyrillic font specifications
Patch30: %name-1.4.2-alt-fonts.patch
# add belarussian translation and gtkrc
Patch31: %name-1.4.2-be.patch
# correct font in the about dialog
Patch32: %name-1.4.2-gtkrc.patch
Patch33: %name-1.2.8-ypcat.patch
Patch34: %name-1.4.2-autoconf2.5x.patch
# filter out -I/usr/include from output of gnome-config --cflags
Patch35: %name-1.4.2-gnome-config-cflags.patch

Requires: gtk+ >= 1.2.8, ORBit, imlib, esound

# Hand-edited by mhz on the same date

BuildRequires: ORBit-devel XFree86-devel docbook-dtds docbook-style-dsssl esound-devel glib-devel gtk+-devel gtk-doc imlib-devel indent libaudiofile-devel libdb1-devel libjpeg-devel libpng-devel libtiff-devel libungif-devel openjade sgml-common xpm-devel zlib-devel
BuildRequires: automake < 1.5, autoconf_2.13
BuildRequires: libwrap-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 %name package
includes libraries that are needed to run GNOME.

%package devel
Summary: Include files for GNOME application development
Group: Development/GNOME and GTK+
Icon: %name-devel.xpm
Requires: %name = %version-%release
Requires: esound-devel glib-devel gtk+-devel imlib-devel libaudiofile-devel libdb1-devel libjpeg-devel libORBit-devel  libpng-devel libtiff-devel libungif-devel XFree86-devel xpm-devel zlib-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 %name-devel package
includes the libraries and include files that you will need to develop
GNOME applications.

You should install the %name-devel package if you would like to
develop GNOME applications. You don't need to install %name-devel
if you just want to use the GNOME desktop environment.

%if_enabled static
%package devel-static
Summary: Static libraries for GNOME application development
Group: Development/GNOME and GTK+
Requires: %name-devel = %version-%release
Requires: libdb1-devel-static libORBit-devel-static libpng-devel-static XFree86-static-libs zlib-devel-static

%description devel-static
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 %name-devel package
includes the libraries and include files that you will need to develop
GNOME applications.

You should install the %name-devel-static package if you would like to
develop statically linked GNOME applications. You don't need to install
%name-devel-static if you just want to use the GNOME desktop environment.
%endif # enabled static

%prep
%setup -q

# Applying RH patches.

%patch1 -p1 -b .rhsnddefs
%patch2 -p1 -b .bghack
%patch3 -p1 -b .utf8

# Applying Mandrake patches.

%patch5 -p1 -b .icons
%patch7 -p1 -b .nodesktop
%patch18 -p1 -b .prototypes
%patch19 -p1 -b .fonts
#%patch20 -p1 -b .zvtescape
%patch21 -p1 -b .keypad
%patch22 -p1 -b .zvtutf8
#%patch23 -p1 -b .libdir
%patch24 -p1 -b .includedir

# Applying ALT patches.

%patch30 -p1 -b .alt-fonts
%patch31 -p1 -b .belo
%patch32 -p1 -b .gtkrc
%patch33 -p1 -b .ypcat
%patch35 -p1 -b .gcflags

perl -pi -e 's/az /az be /g' configure.in
perl -pi -e 's/gtkrc\.el/gtkrc\.be gtkrc\.el/g' libgnomeui/Makefile.am

ac_version=`%__autoconf -V | awk '{print $NF; exit}'`
ac_version_major="${ac_version%%.*}"
ac_version_minor="${ac_version#*.}"
if [ "$ac_version_major" -gt 2 -o \
    "$ac_version_major" -eq 2 -a "$ac_version_minor" -ge 50 ]; then
%patch34 -p1
fi

%set_automake_version 1.4
%set_autoconf_version 2.13
#needed by patch 24 and Makefile.am edit
%__automake

#needed by patches 22 & 23, configure.in edit,

# and the autoconf 2.5x fixes (patch 34)
%__autoconf
cd libart_lgpl
%__autoconf
cd ..

%build

DOCDIR=$RPM_BUILD_ROOT%_docdir %configure \
%if_enabled static
   --enable-static \
%else
   --disable-static \
%endif
   --with-kde-datadir=%_datadir %preferdb --disable-alsa --disable-gtk-doc
%make_build
%if_with test
%make check
%endif

%install
%makeinstall

cp %{SOURCE1} $RPM_BUILD_ROOT%_bindir

%find_lang %name

# TODO: pick up gnome-doc and mkstub tools and their manuals


%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files -f %name.lang
%doc AUTHORS ChangeLog NEWS README
%_libdir/libgnome*.so.*
%_libdir/libgnorba*.so.*
%_libdir/libzvt*.so.*
%_libdir/libart*.so.*
%_libdir/libgtkxmhtml*.so.*
%_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
#%attr(2711,root,utmp) %_sbindir/gnome-pty-helper
%_sbindir/gnome-pty-helper
%_datadir/idl/*
%_datadir/pixmaps/*
%config(noreplace) %_datadir/gtkrc*
%_datadir/mime-info/*
%_datadir/type-convert/type.convert
%config(noreplace) %_sysconfdir/*
%_man1dir/*
%_man5dir/*

%files devel
%doc devel-docs/README*
%doc devel-docs/*.txt
%doc devel-docs/ChangeLog
%_bindir/*-config
%_bindir/conv_deskfiles.pl
%_libdir/lib*.so
#%_libdir/lib*.la
%_libdir/*.sh
%_libdir/%name
%_includedir/*
%_datadir/aclocal/*
%_datadir/gnome/help/*
%_datadir/gnome/html/*
%_datadir/gtk-doc/html/*

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

%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