#
-# TODO: some unpackaged files
-#
# Conditional build:
%bcond_without aalib # without aa plugin (which requires aalib)
%bcond_without python # without python plugins
%bcond_without webkit # without webkit-based help browser
%bcond_with posix_shm # with POSIX SHM (default is SysV SHM)
-#
+
%define mver 2.0
Summary: The GNU Image Manipulation Program
Summary(de.UTF-8): Das GNU-Bildbearbeitungs-Programm
Summary(zh_CN.UTF-8): [图像]GNU图象处理工具
Summary(zh_TW.UTF-8): [圖像]GNU圖象處理工具
Name: gimp
-Version: 2.8.0
+Version: 2.8.18
Release: 1
Epoch: 1
License: GPL v3+
Group: X11/Applications/Graphics
-Source0: ftp://ftp.gimp.org/pub/gimp/v2.8/%{name}-%{version}.tar.bz2
-# Source0-md5: 28997d14055f15db063eb92e1c8a7ebb
+Source0: http://ftp.gimp.org/pub/gimp/v2.8/%{name}-%{version}.tar.bz2
+# Source0-md5: 5adaa11a68bc8a42bb2c778fee4d389c
Patch0: %{name}-home_etc.patch
Patch1: %{name}-desktop.patch
Patch2: %{name}-gcc4.patch
+Patch3: bump_Babl-GEGL_versions.patch
URL: http://www.gimp.org/
%{?with_aalib:BuildRequires: aalib-devel}
BuildRequires: alsa-lib-devel >= 1.0.11
BuildRequires: autoconf >= 2.54
BuildRequires: automake
BuildRequires: babl-devel >= 0.1.10
-BuildRequires: curl-devel >= 7.15.1
BuildRequires: cairo-devel >= 1.10.2
+BuildRequires: curl-devel >= 7.15.1
BuildRequires: dbus-glib-devel >= 0.70
BuildRequires: docbook-dtd412-xml
BuildRequires: fontconfig-devel >= 2.2.0
BuildRequires: gdk-pixbuf2-devel >= 2.24.1
-BuildRequires: gegl-devel >= 0.2.0
-BuildRequires: gettext-devel
+BuildRequires: gegl-devel >= 0.3.0
+BuildRequires: gettext-tools
BuildRequires: ghostscript-devel
BuildRequires: giflib-devel
BuildRequires: glib2-devel >= 1:2.30.2
BuildRequires: intltool >= 0.40.1
BuildRequires: iso-codes
BuildRequires: jasper-devel
-BuildRequires: lcms-devel >= 1.16
+BuildRequires: lcms2-devel >= 2.2
BuildRequires: libexif-devel >= 0.6.15
BuildRequires: libjpeg-devel
BuildRequires: libmng-devel
Requires: curl >= 7.15.1
Requires: dbus-glib >= 0.70
Requires: fontconfig-libs >= 2.2.0
-Requires: gegl >= 0.2.0
+Requires: gegl >= 0.3.0
Requires: hicolor-icon-theme
-Requires: lcms >= 1.16
+Requires: lcms2 >= 2.2
Requires: libexif >= 0.6.15
%{?with_python:Requires: python-pygtk-gtk >= 1:2.10.4}
Obsoletes: gimp-data-min
Summary(pl.UTF-8): Dokumentacja API GIMPa
Group: Documentation
Requires: gtk-doc-common
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description apidocs
GIMP API documentation.
%patch0 -p1
%patch1 -p1
%patch2 -p1
-#%patch3 -p1
+%patch3 -p1
%build
-rm acinclude.m4
+%{__rm} acinclude.m4
%{__gtkdocize}
%{__libtoolize}
%{__aclocal} -I m4macros
--enable-gtk-doc \
--enable-static \
--with-html-dir=%{_gtkdocdir} \
+ --with-lcms=2 \
%{?with_posix_shm:--with-shm=posix} \
%{!?with_webkit:--without-webkit}
%attr(755,root,root) %{_bindir}/gimp
%attr(755,root,root) %{_bindir}/gimp-console-2.8
%attr(755,root,root) %{_bindir}/gimp-console
+%{_datadir}/appdata/gimp.appdata.xml
%{_desktopdir}/gimp.desktop
-%{_mandir}/man1/gimp[-.]*
-%{_mandir}/man1/gimp-console[-.]*
-%{_mandir}/man5/gimprc[-.]*
+%{_mandir}/man1/gimp-2.8.1*
+%{_mandir}/man1/gimp.1*
+%{_mandir}/man1/gimp-console-2.8.1*
+%{_mandir}/man1/gimp-console.1*
+%{_mandir}/man5/gimprc-2.8.5*
+%{_mandir}/man5/gimprc.5*
%dir %{_libdir}/gimp
%dir %{_libdir}/gimp/%{mver}