]> git.pld-linux.org Git - packages/gimp.git/blobdiff - gimp.spec
- release 3
[packages/gimp.git] / gimp.spec
index 7b27901219aefec01fdcc896b436b71894ea8306..15e6a364911f0dba55b81ef0598982c1dd7e82c5 100644 (file)
--- a/gimp.spec
+++ b/gimp.spec
@@ -4,6 +4,7 @@
 %bcond_without gnomevfs        # without GNOME VFS support
 %bcond_without gnome           # convenient alias for gnomevfs
 %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)
 #
 %if %{without gnome}
@@ -22,34 +23,40 @@ Summary(uk.UTF-8):  The GNU Image Manipulation Program
 Summary(zh_CN.UTF-8):  [图像]GNU图象处理工具
 Summary(zh_TW.UTF-8):  [圖像]GNU圖象處理工具
 Name:          gimp
-Version:       2.4.6
+Version:       2.6.12
 Release:       3
 Epoch:         1
 License:       GPL v2+
 Group:         X11/Applications/Graphics
-Source0:       ftp://ftp.gimp.org/pub/gimp/v2.4/%{name}-%{version}.tar.bz2
-# Source0-md5: a0bd1560f81f15c23ed4c0c6cb9c4b59
+Source0:       ftp://ftp.gimp.org/pub/gimp/v2.6/%{name}-%{version}.tar.bz2
+# 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: autoconf >= 2.54
 BuildRequires: automake
+BuildRequires: babl-devel >= 0.0.22
 BuildRequires: curl-devel >= 7.15.1
-BuildRequires: dbus-devel >= 0.70
+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.12.3
-BuildRequires: gtk+2-devel >= 2:2.10.13
+BuildRequires: glib2-devel >= 1:2.16.1
+BuildRequires: gtk+2-devel >= 2:2.12.5
 BuildRequires: gtk-doc >= 1.6
-BuildRequires: hal-devel >= 0.5.7
-BuildRequires: intltool >= 0.35.0
-BuildRequires: lcms-devel
+%{?with_webkit:BuildRequires:  gtk-webkit-devel >= 1.1.0}
+BuildRequires: intltool >= 0.36.3
+BuildRequires: iso-codes
+BuildRequires: lcms-devel >= 1.16
 BuildRequires: libart_lgpl-devel
 BuildRequires: libexif-devel >= 0.6.15
-BuildRequires: libgtkhtml-devel >= 2.6.3
 BuildRequires: libjpeg-devel
 BuildRequires: libmng-devel
 BuildRequires: libpng-devel >= 1.2.12
@@ -57,24 +64,34 @@ BuildRequires:      librsvg-devel >= 1:2.15.0
 BuildRequires: libtiff-devel
 BuildRequires: libtool >= 1:1.4.2-9
 BuildRequires: libwmf-devel >= 2:0.2.8
-BuildRequires: pango-devel >= 1:1.12.2
-BuildRequires: pkgconfig
-BuildRequires: poppler-glib-devel >= 0.6
+BuildRequires: pango-devel >= 1:1.18.0
+BuildRequires: pkgconfig >= 1:0.16
+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: xorg-lib-libXpm-devel
-%{?with_python:BuildRequires:  python-pygtk-devel >= 1:2.10.4}
+BuildRequires: zlib-devel
 %if %{with gnomevfs}
-BuildRequires: gnome-keyring-devel >= 0.5.1
 BuildRequires: gnome-vfs2-devel >= 2.15.91
+BuildRequires: libgnome-keyring-devel >= 0.5.1
 BuildRequires: libgnomeui-devel >= 2.15.91
 %endif
-Requires(post,postun): gtk+2 >= 2:2.10.13
+%if %{with python}
+BuildRequires: python-devel >= 1:2.5
+BuildRequires: python-pygtk-devel >= 2:2.10.4
+%endif
+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:      glib2 >= 1:2.12.3
-Requires:      gtk+2 >= 2:2.10.13
+Requires:      dbus-glib >= 0.70
 Requires:      hicolor-icon-theme
-Requires:      pango >= 1:1.12.2
+Requires:      lcms >= 1.16
+Requires:      libexif >= 0.6.15
 %{?with_python:Requires:       python-pygtk-gtk >= 1:2.10.4}
 Obsoletes:     gimp-data-min
 Obsoletes:     gimp-libgimp
@@ -191,16 +208,18 @@ ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz. якщо хочете
 
 %package libs
 Summary:       GIMP libraries
-Summary(pl.UTF-8):     Biblioteki GIMPa
+Summary(pl.UTF-8):     Biblioteki GIMP-a
 License:       LGPL v2+
 Group:         Libraries
-Requires:      gtk+2 >= 2:2.10.6
+Requires:      glib2 >= 1:2.16.1
+Requires:      gtk+2 >= 2:2.12.5
+Requires:      pango >= 1:1.18.0
 
 %description libs
 This package contains GIMP libraries.
 
 %description libs -l pl.UTF-8
-Pakiet zawiera biblioteki GIMPa.
+Pakiet zawiera biblioteki GIMP-a.
 
 %package devel
 Summary:       GIMP plugin and extension development kit
@@ -217,7 +236,8 @@ Summary(zh_TW.UTF-8):       [開發]gimp的開發包
 License:       LGPL v2+
 Group:         X11/Development/Libraries
 Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
-Requires:      gtk+2-devel >= 2:2.10.0
+Requires:      glib2-devel >= 1:2.16.1
+Requires:      gtk+2-devel >= 2:2.12.5
 
 %description devel
 Header files for writing GIMP plugins and extensions.
@@ -291,7 +311,7 @@ Summary:    SVG plugin for GIMP
 Summary(pl.UTF-8):     Wtyczka SVG dla GIMPa
 Group:         X11/Applications/Graphics
 Requires:      %{name} = %{epoch}:%{version}-%{release}
-Requires:      librsvg >= 2.2.0
+Requires:      librsvg >= 2.15.0
 
 %description svg
 SVG plugin for GIMP.
@@ -304,25 +324,30 @@ Wtyczka SVG dla GIMPa.
 %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
+%{__gtkdocize}
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4macros
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
        %{!?with_gnomevfs:--disable-gnomevfs} \
-       --disable-rpath \
-       %{!?with_python: --disable-python} \
-       --enable-mp \
-       --with-html-dir=%{_gtkdocdir} \
+       %{!?with_python:--disable-python} \
        --enable-default-binary \
-       --enable-static \
+       --enable-gimp-remote \
        --enable-gtk-doc \
-       %{?with_posix_shm:--with-shm=posix}
-       
-%{__make} -j1
+       --enable-static \
+       --with-html-dir=%{_gtkdocdir} \
+       %{?with_posix_shm:--with-shm=posix} \
+       %{!?with_webkit:--without-webkit}
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -330,25 +355,13 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-# Link gimptool to gimptool-2.0
-ln -s gimptool-%{mver} $RPM_BUILD_ROOT%{_bindir}/gimptool
-echo '.so gimptool-%{mver}' > $RPM_BUILD_ROOT%{_mandir}/man1/gimptool.1
-# replace symlinks with .so links
-rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{gimp-console*,gimp-remote,gimp}.1 \
-       $RPM_BUILD_ROOT%{_mandir}/man5/gimprc.5
-echo '.so gimp-2.4' > $RPM_BUILD_ROOT%{_mandir}/man1/gimp.1
-echo '.so gimp-2.4' > $RPM_BUILD_ROOT%{_mandir}/man1/gimp-console-2.4.1
-echo '.so gimp-2.4' > $RPM_BUILD_ROOT%{_mandir}/man1/gimp-console.1
-echo '.so gimp-remote-2.4' > $RPM_BUILD_ROOT%{_mandir}/man1/gimp-remote.1
-echo '.so gimprc-2.4' > $RPM_BUILD_ROOT%{_mandir}/man5/gimprc.5
-
-# 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}
-rm -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
-
-# error: gimp-2.4.6-1: req /usr/share/locale/ca@valencia/LC_MESSAGES not found
-rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/ca@valencia
+# Link gimptool to gimptool-2.0.1
+ln -s gimptool-2.0 $RPM_BUILD_ROOT%{_bindir}/gimptool
+echo '.so gimptool-2.0.1' > $RPM_BUILD_ROOT%{_mandir}/man1/gimptool.1
+
+# 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
 
@@ -358,35 +371,35 @@ rm -rf $RPM_BUILD_ROOT
 %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
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
+%doc AUTHORS ChangeLog LICENSE NEWS README
 %doc docs/Wilber*
 
-%attr(755,root,root) %{_bindir}/gimp-2.4
+%attr(755,root,root) %{_bindir}/gimp-2.6
 %attr(755,root,root) %{_bindir}/gimp
-%attr(755,root,root) %{_bindir}/gimp-console-2.4
+%attr(755,root,root) %{_bindir}/gimp-console-2.6
 %attr(755,root,root) %{_bindir}/gimp-console
-%attr(755,root,root) %{_bindir}/gimp-remote-2.4
+%attr(755,root,root) %{_bindir}/gimp-remote-2.6
 %attr(755,root,root) %{_bindir}/gimp-remote
 %{_desktopdir}/gimp.desktop
-%{_mandir}/man1/gimp-2.4.1*
+%{_mandir}/man1/gimp-2.6.1*
 %{_mandir}/man1/gimp.1*
-%{_mandir}/man1/gimp-console-2.4.1*
+%{_mandir}/man1/gimp-console-2.6.1*
 %{_mandir}/man1/gimp-console.1*
-%{_mandir}/man1/gimp-remote-2.4.1*
+%{_mandir}/man1/gimp-remote-2.6.1*
 %{_mandir}/man1/gimp-remote.1*
-%{_mandir}/man5/gimprc-2.4.5*
+%{_mandir}/man5/gimprc-2.6.5*
 %{_mandir}/man5/gimprc.5*
 
 %dir %{_libdir}/gimp
@@ -394,8 +407,8 @@ gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
 %dir %{_libdir}/gimp/%{mver}/plug-ins
 %{_libdir}/gimp/%{mver}/interpreters
 %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/*
-%{?with_aalib:%exclude %{_libdir}/gimp/%{mver}/plug-ins/aa}
-%exclude %{_libdir}/gimp/%{mver}/plug-ins/svg
+%{?with_aalib:%exclude %{_libdir}/gimp/%{mver}/plug-ins/file-aa}
+%exclude %{_libdir}/gimp/%{mver}/plug-ins/file-svg
 
 %dir %{_libdir}/gimp/%{mver}/modules
 %attr(755,root,root) %{_libdir}/gimp/%{mver}/modules/*.so
@@ -514,9 +527,9 @@ gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
 %if %{with aalib}
 %files aa
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/aa
+%attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/file-aa
 %endif
 
 %files svg
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/svg
+%attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/file-svg
This page took 0.048356 seconds and 4 git commands to generate.