Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1490002
 поиск   регистрация   авторизация 
 
Группа :: Графика
Пакет: gimp2

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

%define ver_major 2.2
%define _name gimp
%define oldver 2.0

Name: gimp2
Version: %ver_major.7
Release: alt0.M24.1

Summary: The GNU Image Manipulation Program
License: GPL, LGPL
Group: Graphics
Url: http://www.gimp.org/

Source: ftp://ftp.gimp.org/pub/gimp/v%ver_major/%_name-%version.tar.bz2
Source10: %_name.png

Obsoletes: gimp
Provides: gimp = %name-%version

%define gtk_ver 2.4.4
%define exif_ver 0.5.12

Requires: lib%name = %version-%release
Requires: libgtk+2 >= %gtk_ver, aalib

BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libexif-devel >= %exif_ver
BuildRequires: libgsf-devel
BuildRequires: XFree86-devel XFree86-libs aalib-devel fontconfig-devel freetype2-devel gcc-c++ glib2-devel gtk-doc libalsa-devel libart_lgpl-devel libatk-devel libcroco-devel libexif-devel libexpat-devel libgimp-print-devel libgtk+2-devel libgtkhtml2-devel libjpeg-devel liblcms-devel libmng-devel libpango-devel libpng-devel librsvg2-devel libstdc++-devel libtiff-devel libwmf-devel libxml2-devel pkgconfig xpm-devel zlib-devel intltool perl-XML-Parser

%description
The GIMP (GNU Image Manipulation Program) is a powerful image
composition and editing program, which can be extremely useful for
creating logos and other graphics for Web pages.  The GIMP has many of
the tools and filters you would expect to find in similar commercial
offerings, and some interesting extras as well. The GIMP provides a
large image manipulation toolbox, including channel operations and
layers, effects, sub-pixel imaging and anti-aliasing, and conversions,
all with multi-level undo.

This is stable version.

%package -n lib%name
Summary: GIMP libraries
Group: System/Libraries
License: LGPL
Obsoletes: libgimp

%package -n lib%name-devel
Summary: GIMP plugin and extension development kit
Group: Graphics
Requires: gtk2-devel >= 2.4.4, pkgconfig
Requires: lib%name = %version-%release
Obsoletes: libgimp-devel

%description -n lib%name
Libraries used to communicate between The GIMP and other programs which
may function as "GIMP plugins".

%description -n lib%name-devel
Development libraries and header files for writing GIMP plugins and extensions.

%prep
%setup -q -n %_name-%version

%build
%configure

%make_build

%install
%make_install DESTDIR=%buildroot install

# menu icon

%__install -pD -m644 %SOURCE10 %buildroot%_datadir/pixmaps/%_name.png

# menu file

%__mkdir_p %buildroot%_menudir
%__cat >%buildroot%_menudir/%_name-%ver_major <<__MENU__
?package(%name): command="gimp" icon="%_name.png" \
section="Multimedia/Graphics" title="The GIMP" \
longtitle="The GNU Image Manipulation Program" needs="x11" \
mimetypes="image/gif;image/jpeg;image/png;image/tiff;image/x-xbm;image/x-xpm;\
image/bmp;image/fits;image/pcx;image/pix;image/pnm;"
__MENU__

# remove non-packaged files

find %buildroot%_libdir -name "*.la" | xargs %__rm -f

# Execute find_lang for all components and merge the resulting lists

%find_lang --output=global.lang gimp20 gimp20-libgimp gimp20-std-plug-ins gimp20-script-fu

%post
%update_menus

%postun
%clean_menus

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

%files -f global.lang
%doc AUTHORS ChangeLog* COPYING NEWS README README.i18n
%doc docs/*
%dir %_sysconfdir/%_name/%oldver
%config %_sysconfdir/%_name/%oldver/*
%_bindir/*
%_libdir/%_name/%oldver/plug-ins
%_datadir/%_name
%_mandir/man1/*
%_datadir/pixmaps/%_name.png
%_menudir/%_name-%ver_major

%files -n lib%name
%_libdir/*.so.*
%dir %_libdir/%_name
%dir %_libdir/%_name/%oldver
%_libdir/%_name/%oldver/environ
%dir %_libdir/%_name/%oldver/modules
%_libdir/%_name/%oldver/modules/*.so

%files -n lib%name-devel
%doc %_datadir/gtk-doc/html/*
%_includedir/*
%_libdir/*.so
%dir %_libdir/%_name
%dir %_libdir/%_name/%oldver
%dir %_libdir/%_name/%oldver/modules
%_libdir/pkgconfig/*
%_datadir/aclocal/*
%_mandir/man5/*

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005