Summary(zh_CN.UTF-8): [图像]GNU图象处理工具
Summary(zh_TW.UTF-8): [圖像]GNU圖象處理工具
Name: gimp
-Version: 2.6.11
+Version: 2.6.12
Release: 3
Epoch: 1
License: GPL v2+
Group: X11/Applications/Graphics
Source0: ftp://ftp.gimp.org/pub/gimp/v2.6/%{name}-%{version}.tar.bz2
-# Source0-md5: bb2939fe13e54fc7255cef5d097bb5dd
+# Source0-md5: 9f876ee63a0c4a4c83f50f32fb3bbe63
Patch0: %{name}-home_etc.patch
Patch1: %{name}-desktop.patch
Patch2: %{name}-gcc4.patch
+Patch3: %{name}-udev.patch
URL: http://www.gimp.org/
%{?with_aalib:BuildRequires: aalib-devel}
BuildRequires: alsa-lib-devel >= 1.0.11
BuildRequires: automake
BuildRequires: babl-devel >= 0.0.22
BuildRequires: curl-devel >= 7.15.1
+BuildRequires: cairo-devel >= 1.4.10
BuildRequires: dbus-glib-devel >= 0.70
BuildRequires: docbook-dtd412-xml
+BuildRequires: fontconfig-devel >= 1:2.2.0
BuildRequires: gegl-devel >= 0.0.18
BuildRequires: gettext-devel
BuildRequires: giflib-devel
BuildRequires: glib2-devel >= 1:2.16.1
BuildRequires: gtk+2-devel >= 2:2.12.5
BuildRequires: gtk-doc >= 1.6
-%{?with_webkit:BuildRequires: gtk-webkit-devel >= 1.0}
-BuildRequires: hal-devel >= 0.5.7
+%{?with_webkit:BuildRequires: gtk-webkit-devel >= 1.1.0}
BuildRequires: intltool >= 0.36.3
BuildRequires: iso-codes
BuildRequires: lcms-devel >= 1.16
BuildRequires: libwmf-devel >= 2:0.2.8
BuildRequires: pango-devel >= 1:1.18.0
BuildRequires: pkgconfig >= 1:0.16
-BuildRequires: poppler-glib-devel >= 0.6
+BuildRequires: poppler-devel >= 0.17
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: udev-glib-devel >= 1:167
BuildRequires: xorg-lib-libXext-devel
BuildRequires: xorg-lib-libXfixes-devel
BuildRequires: xorg-lib-libXmu-devel
BuildRequires: python-devel >= 1:2.5
BuildRequires: python-pygtk-devel >= 2:2.10.4
%endif
-Requires(post,postun): gtk+2 >= 2:2.10.13
+Requires(post,postun): gtk-update-icon-cache
+Requires(post,postun): hicolor-icon-theme
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
Requires: curl >= 7.15.1
Requires: dbus-glib >= 0.70
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
+
+mv modules/gimpinputdevicestore-hal.c modules/gimpinputdevicestore-gudev.c
%build
rm acinclude.m4 m4macros/gtk-doc.m4
ln -s gimptool-2.0 $RPM_BUILD_ROOT%{_bindir}/gimptool
echo '.so gimptool-2.0.1' > $RPM_BUILD_ROOT%{_mandir}/man1/gimptool.1
-# Remove obsolete files
-rm -f $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/modules/*.{a,la}
-rm -f $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/python/*.{a,la,py}
-
-# error: gimp-2.4.6-1: req /usr/share/locale/ca@valencia/LC_MESSAGES not found
-rm -r $RPM_BUILD_ROOT%{_datadir}/locale/ca@valencia
+# remove unneeded files
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/modules/*.{a,la}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/python/*.{a,la,py}
%find_lang %{name} --all-name
%post
umask 022
[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
-gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
+%update_icon_cache hicolor
%postun
umask 022
[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
-gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
+%update_icon_cache hicolor
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig