Sisyphus
: 27 2020 | : 17749 | : 19707775
en ru br
ALT
S:3.10.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.9
%def_enable exif
%def_enable gphoto2

Name: gthumb
Version: %ver_major.3
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/

Packager: Vitaly Lipatov <lav at altlinux.ru>

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

# From configure.in

%define glib_ver 2.6.0
%define gtk_ver 2.8.0
%define libxml2_ver 2.4.0
%define libgnomeui_ver 2.6.0
%define gnomecanvas_ver 2.6.0
%define gnome_vfs_ver 2.6.0
%define glade_ver 2.4.0
%define libgnomeprint_ver 2.6.0
%define libbonoboui_ver 2.6.0
%define exif_ver 0.6.9
%define gphoto_ver 2.1.3

%define gnome_common_ver 2.8.0
%define desktop_file_utils_ver 0.8

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

# From configure.in

BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libxml2-devel >= %libxml2_ver
BuildPreReq: libgnomeui-devel >= %libgnomeui_ver
BuildPreReq: libgnomecanvas-devel >= %gnomecanvas_ver
BuildPreReq: gnome-vfs-devel >= %gnome_vfs_ver
BuildPreReq: libglade2-devel >= %glade_ver
BuildPreReq: libgnomeprintui-devel >= %libgnomeprint_ver
BuildPreReq: libbonoboui-devel >= %libbonoboui_ver
%if_enabled exif
BuildPreReq: libexif-devel >= %exif_ver
%endif
%if_enabled gphoto2
BuildPreReq: libgphoto2-devel >= %gphoto_ver
%endif
BuildPreReq: libjpeg-devel libtiff-devel libXrender-devel libXext-devel libX11-devel libXtst-devel libXxf86vm-devel gnome-doc-utils

BuildRequires: desktop-file-utils >= %desktop_file_utils_ver
BuildRequires: GConf2 scrollkeeper
BuildRequires: gnome-common >= %gnome_common_ver

%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), добавлять комментарии к картинкам, раскладывать картинки
по каталогам, печатать, автоматически пролистывать серии картинок,
менять фон рабочего стола и многое другое.

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

%build
%configure \
   --enable-jpeg \
   --enable-tiff \
   --enable-render \
   %{subst_enable exif} \
   %{subst_enable gphoto2} \
   --disable-static \
   --disable-scrollkeeper \
--disable-schemas-install \

%make_build

%install
%make_install DESTDIR=%buildroot install

%find_lang --with-gnome %name

%post
%gconf2_install %name
%update_scrollkeeper
%update_desktopdb

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

%postun
%clean_scrollkeeper
%clean_desktopdb

%files -f %name.lang
%_bindir/*
%dir %_libdir/%name/
%_libdir/lib%name.so
#%_libdir/%name/lib%name.so
#%_libexecdir/%name-catalog-view
#%_libexecdir/%name-image-viewer
%dir %_libdir/%name/modules
%_libdir/%name/modules/*.so
#%_libdir/bonobo/servers/*
%_desktopdir/*
%_datadir/application-registry/*
#%_datadir/gnome-2.0/ui/*
%_datadir/%name
%_liconsdir/*
%_man1dir/*
%config %_sysconfdir/gconf/schemas/%name.schemas
%doc AUTHORS ChangeLog.bz2 NEWS README

#%exclude %_localstatedir/scrollkeeper


#%exclude %_libdir/%name/*.la

%exclude %_libdir/%name/modules/*.la

%changelog

changelog

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