Sisyphus
: 7 2020 | : 17566 | : 17843112
en ru br
ALT
S:3.9.1-alt1
5.1: 2.10.11-alt3
4.1: 2.10.10-alt1.M41.1
4.0: 2.9.3-alt1
3.0: 2.6.6-alt1
www.altlinux.org/Changes

Upstream:2.10.8..tar..gz

::
: gthumb

             Sources      Gear   Bugs and FR  Repocop 

%define ver_major 2.6
%def_with libexif
%def_with gphoto

Name: gthumb
Version: %ver_major.6
Release: alt1

Summary: An image viewer and browser for GNOME
Summary(ru_RU.UTF-8): Просмотрщик изображений и фотоальбом для GNOME
License: GPL
Group: Graphics
Url: http://gthumb.sourceforge.net/

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Source1: %name-2.3.3-ru.po.bz2

%define gphoto_ver 2.1.3
%define exif_ver 0.6.12
%define glib_ver 2.6.3
%define gtk_ver 2.6.4
%define libxml2_ver 2.6.17
%define libgnome_ver 2.10.0
%define libgnomeui_ver 2.10.0
%define gnome_vfs_ver 2.10.0
%define glade_ver 2.5.1
%define libgnomeprint_ver 2.10.0
%define libgnomeprintui_ver 2.10.0
%define libbonobo_ver 2.8.1
%define libbonoboui_ver 2.8.1
%define scrollkeeper_ver 0.3.14
%define GConf_ver 2.10.0
%define gnome_common_ver 2.8.0
%define desktop_file_utils_ver 0.8

Requires(post): GConf2 >= %GConf_ver
Requires(post,postun): scrollkeeper >= %scrollkeeper_ver
Requires(post,postun): desktop-file-utils >= %desktop_file_utils_ver

%if_with libexif
Requires: libexif >= %exif_ver
%endif

%if_with gphoto
Requires: libgphoto2 >= %gphoto_ver
%endif

Requires: glib2 >= %glib_ver
Requires: libgtk+2 >= %gtk_ver
Requires: libxml2 >= %libxml2_ver
Requires: libgnome >= %libgnome_ver
Requires: libgnomeui >= %libgnomeui_ver
Requires: gnome-vfs2 >= %gnome_vfs_ver
Requires: libglade2 >= %glade_ver
Requires: libgnomeprint2 >= %libgnomeprint_ver
Requires: libgnomeprintui >= %libgnomeprintui_ver
Requires: libbonobo2 >= %libbonobo_ver
Requires: libbonoboui >= %libbonoboui_ver

BuildPreReq: desktop-file-utils >= %desktop_file_utils_ver
BuildPreReq: GConf2 >= %GConf_ver
BuildPreReq: gnome-common >= %gnome_common_ver
BuildPreReq: menu-devel

%if_with libexif
BuildPreReq: libexif-devel >= %exif_ver
%endif

%if_with gphoto
BuildPreReq: libgphoto2-devel >= %gphoto_ver
%endif

BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libxml2-devel >= %libxml2_ver
BuildPreReq: libgnome-devel >= %libgnome_ver
BuildPreReq: libgnomeui-devel >= %libgnomeui_ver
BuildPreReq: gnome-vfs2-devel >= %gnome_vfs_ver
BuildPreReq: libglade2-devel >= %glade_ver
BuildPreReq: libgnomeprint2-devel >= %libgnomeprint_ver
BuildPreReq: libgnomeprintui-devel >= %libgnomeprintui_ver
BuildPreReq: libbonobo2-devel >= %libbonobo_ver
BuildPreReq: libbonoboui-devel >= %libbonoboui_ver

# Automatically added by buildreq on Mon Sep 13 2004

#BuildRequires: GConf2 ORBit2-devel XFree86-devel XFree86-libs esound flex fontconfig freetype2 gcc-c++ gcc-g77 glib2-devel gnome-vfs2-devel indent libGConf2-devel libart_lgpl-devel libatk-devel libbonobo2-devel libbonoboui-devel libexif-devel libglade2-devel libgnome-devel libgnome-keyring libgnomecanvas-devel libgnomeprint2-devel libgnomeprintui-devel libgnomeui-devel libgphoto2-devel libgtk+2-devel libjpeg-devel libpango-devel libpng-devel libpopt-devel libstdc++-devel libtiff-devel libxml2-devel perl-XML-Parser pkgconfig scrollkeeper zlib-devel

BuildRequires: GConf2 ORBit2-devel XFree86-devel XFree86-libs esound flex fontconfig freetype2 gcc-c++
BuildRequires: gcc-g77 glib2-devel gnome-vfs2-devel indent libGConf2-devel libart_lgpl-devel libatk-devel
BuildRequires: libbonobo2-devel libbonoboui-devel libglade2-devel libgnome-devel libgnome-keyring
BuildRequires: libgnomecanvas-devel libgnomeprint2-devel libgnomeprintui-devel libgnomeui-devel
BuildRequires: libgtk+2-devel libjpeg-devel libpango-devel libpng-devel libpopt-devel libstdc++-devel
BuildRequires: libtiff-devel libxml2-devel perl-XML-Parser pkgconfig scrollkeeper zlib-devel

%description
gThumb lets you browse your hard disk, showing thumbnails of image
files. It also lets view single files (including GIF animations),
add comments to images, organize images in catalogs, print images, view
slideshows, set desktop background, and more.

%description -l ru_RU.UTF-8
gThumb позволяет просматривать содержимое жёсткого диска, показывая
уменьшенные копии содержимого графических файлов. Также программа
позволяет просматривать отдельные изображения (включая мультфильмы в
формате GIF), добавлять комментарии к картинкам, раскладывать картинки
по каталогам, печатать, автоматически пролистывать серии картинок,
менять фон рабочего стола и многое другое.

%define _libexecdir %_libdir/%name
%add_findprov_lib_path %_libexecdir

%prep
%setup -q
bzcat %SOURCE1 > po/ru.po

%build
export LDFLAGS=-export-dynamic
%configure --disable-static \
--disable-schemas-install
%make_build

%install
%make_install DESTDIR=%buildroot install

# menu

%__mkdir_p %buildroot%_menudir
freedesktop2menu.pl "%name" "Multimedia/Graphics" \
   %buildroot%_datadir/applications/%name.desktop \
   %buildroot%_menudir/%name

# remove non-packaged files

%__rm -f %buildroot%_libexecdir/{modules/,}*.la

%find_lang --with-gnome %name

%post
%gconf2_install %name
%update_scrollkeeper
%update_desktopdb
%update_menus

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

%postun
%clean_scrollkeeper
%clean_desktopdb
%clean_menus

%files -f %name.lang
%_bindir/*
%dir %_libexecdir
%_libexecdir/*.so
%_libexecdir/%name-*
%dir %_libexecdir/modules
%_libexecdir/modules/*.so
%_libdir/bonobo/servers/*
%_datadir/applications/*
%_datadir/application-registry/*
%_datadir/gnome-2.0/ui/*
%_datadir/%name
%_datadir/pixmaps/*
%_man1dir/*
%_menudir/*
%config %_sysconfdir/gconf/schemas/*
%doc AUTHORS ChangeLog NEWS README

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin