version 2.6.0 remove obsolete htmlview patch remove obsolete distro version

dependent defaults don't use custom CFLAGS
This commit is contained in:
Nils Philippsen 2008-10-06 15:50:13 +00:00
parent 1703967f68
commit b1bcc297b0
3 changed files with 40 additions and 55 deletions

View File

@ -1 +1 @@
gimp-2.4.7.tar.bz2 gimp-2.6.0.tar.bz2

View File

@ -3,55 +3,35 @@
# package will be built: # package will be built:
# #
# modular_x: modular X dependencies # modular_x: modular X dependencies
%bcond_without modular_x
# lcms: lcms support # lcms: lcms support
%bcond_without lcms
# python: python support # python: python support
%bcond_without python
# mp: multi processor support # mp: multi processor support
%bcond_without mp
# static: build static libraries # static: build static libraries
%bcond_with static
# print: build the print plugin (if you don't build it externally) # print: build the print plugin (if you don't build it externally)
%bcond_without print
# gutenprint: require gutenprint-plugin (instead of gimp-print-plugin) if # gutenprint: require gutenprint-plugin (instead of gimp-print-plugin) if
# internal print plugin isn't built # internal print plugin isn't built
# convenience: install convenience symlinks
%if 0%{?fedora}%{?rhel} == 0 || 0%{?fedora} >= 5 || 0%{?rhel} >= 5
%bcond_without modular_x
%bcond_without lcms
%else
%bcond_with modular_x
%bcond_with lcms
%endif
%if 0%{?fedora}%{?rhel} == 0 || 0%{?fedora} >= 7 || 0%{?rhel} >= 6
%bcond_without gutenprint %bcond_without gutenprint
%bcond_without xdg_open # convenience: install convenience symlinks
%else
%bcond_with gutenprint
%bcond_with xdg_open
%endif
%if 0%{?fedora}%{?rhel} == 0 || 0%{?fedora} >= 8 || 0%{?rhel} >= 6
%bcond_without print
%else
%bcond_with print
%endif
%bcond_without python
%bcond_without mp
%bcond_without convenience %bcond_without convenience
%bcond_with static # webkit: use internal WebKit based help browser
%bcond_without webkit
#
#
Summary: GNU Image Manipulation Program Summary: GNU Image Manipulation Program
Name: gimp Name: gimp
Version: 2.4.7 Version: 2.6.0
%define binver 2.4 %define binver 2.6
%define gimp_lang_ver 20 %define gimp_lang_ver 20
%define interfacever 2.0 %define interfacever 2.0
%define age 0 %define age 0
%define minorver 400 %define minorver 600
%define microver %(ver=%{version}; echo ${ver##*.*.}) %define microver %(ver=%{version}; echo ${ver##*.*.})
Release: 4%{?dist} Release: 1%{?dist}
Epoch: 2 Epoch: 2
License: GPLv2+ License: GPLv2+
Group: Applications/Multimedia Group: Applications/Multimedia
@ -59,14 +39,17 @@ URL: http://www.gimp.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%__id_u -n) BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%__id_u -n)
Obsoletes: gimp-perl < 2:2.0 Obsoletes: gimp-perl < 2:2.0
BuildRequires: alsa-lib-devel >= 1.0.0 BuildRequires: alsa-lib-devel >= 1.0.0
BuildRequires: babl-devel >= 0.0.22
BuildRequires: cairo-devel >= 1.4.10
BuildRequires: curl-devel >= 7.15.1 BuildRequires: curl-devel >= 7.15.1
BuildRequires: dbus-glib-devel >= 0.70 BuildRequires: dbus-glib-devel >= 0.70
BuildRequires: fontconfig-devel >= 2.2.0 BuildRequires: fontconfig-devel >= 2.2.0
BuildRequires: freetype-devel >= 2.1.7 BuildRequires: freetype-devel >= 2.1.7
BuildRequires: glib2-devel >= 2.12.3 BuildRequires: gegl-devel >= 0.0.18
BuildRequires: glib2-devel >= 2.16.1
BuildRequires: gnome-keyring-devel >= 0.4.5 BuildRequires: gnome-keyring-devel >= 0.4.5
BuildRequires: gnome-vfs2-devel >= 2.10.0 BuildRequires: gnome-vfs2-devel >= 2.10.0
BuildRequires: gtk2-devel >= 2.10.13 BuildRequires: gtk2-devel >= 2.12.1
BuildRequires: gtk-doc >= 1.0 BuildRequires: gtk-doc >= 1.0
BuildRequires: gtkhtml2-devel >= 2.0.0 BuildRequires: gtkhtml2-devel >= 2.0.0
BuildRequires: hal-devel >= 0.5.7 BuildRequires: hal-devel >= 0.5.7
@ -78,11 +61,14 @@ BuildRequires: libpng-devel
BuildRequires: librsvg2-devel >= 2.14.0 BuildRequires: librsvg2-devel >= 2.14.0
BuildRequires: libtiff-devel BuildRequires: libtiff-devel
BuildRequires: libwmf-devel >= 0.2.8 BuildRequires: libwmf-devel >= 0.2.8
BuildRequires: pango-devel >= 1.12.2 BuildRequires: pango-devel >= 1.18.0
BuildRequires: poppler-devel >= 0.4.1 BuildRequires: poppler-devel >= 0.4.1
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: pygtk2-devel >= 2.10.4 BuildRequires: pygtk2-devel >= 2.10.4
BuildRequires: pygobject2-devel BuildRequires: pygobject2-devel
%if %{with webkit}
BuildRequires: WebKit-gtk-devel >= 1.0.0
%endif
%if %{with modular_x} %if %{with modular_x}
BuildRequires: libX11-devel BuildRequires: libX11-devel
BuildRequires: libXmu-devel BuildRequires: libXmu-devel
@ -94,7 +80,7 @@ BuildRequires: intltool
BuildRequires: gettext BuildRequires: gettext
BuildRequires: findutils BuildRequires: findutils
%if %{with lcms} %if %{with lcms}
BuildRequires: lcms-devel BuildRequires: lcms-devel >= 1.16
%endif %endif
Requires: gimp-libs-%{_arch} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: gimp-libs-%{_arch} = %{?epoch:%{epoch}:}%{version}-%{release}
@ -111,16 +97,11 @@ Requires: gimp-print-plugin
%endif %endif
%endif %endif
Requires: hicolor-icon-theme Requires: hicolor-icon-theme
%if %{with xdg_open}
Requires: xdg-utils Requires: xdg-utils
%else
Requires: htmlview
%endif
Source0: ftp://ftp.gimp.org/pub/gimp/v%{binver}/gimp-%{version}.tar.bz2 Source0: ftp://ftp.gimp.org/pub/gimp/v%{binver}/gimp-%{version}.tar.bz2
Source1: gimp-plugin-mgr.in Source1: gimp-plugin-mgr.in
Patch0: gimp-2.4.0-htmlview.patch Patch0: gimp-2.6.0-xdg-open.patch
Patch1: gimp-2.4.0-xdg-open.patch
%description %description
GIMP (GNU Image Manipulation Program) is a powerful image composition and GIMP (GNU Image Manipulation Program) is a powerful image composition and
@ -171,26 +152,21 @@ build the print plugin: %{with print}
prefer gutenprint over (external) gimp-print plugin: prefer gutenprint over (external) gimp-print plugin:
%{with gutenprint} %{with gutenprint}
%endif %endif
use xdg-open instead of htmlview: %{with xdg_open} use internal webkit based help browser: %{with webkit}
EOF EOF
%setup -q -n gimp-%{version} %setup -q -n gimp-%{version}
%if %{with xdg_open} %patch0 -p1 -b .xdg-open
%patch1 -p1 -b .xdg-open
%else
%patch0 -p1 -b .htmlview
%endif
%build %build
LIBAA="disable"; export LIBAA LIBAA="disable"; export LIBAA
if [ ! -f configure ]; then if [ ! -f configure ]; then
./autogen.sh --quiet $MYARCH_FLAGS --prefix=%{_prefix} ./autogen.sh --quiet $MYARCH_FLAGS --prefix=%{_prefix}
fi fi
CFLAGS="%optflags -fomit-frame-pointer" \
%configure \ %configure \
--disable-perl \ --disable-perl --enable-gimp-remote \
%if %{with python} %if %{with python}
--enable-python \ --enable-python \
%else %else
@ -220,6 +196,11 @@ CFLAGS="%optflags -fomit-frame-pointer" \
--without-aa \ --without-aa \
%ifos linux %ifos linux
--with-linux-input \ --with-linux-input \
%endif
%if %{with webkit}
--with-webkit \
%else
--without-webkit \
%endif %endif
--with-libtiff --with-libjpeg --with-libpng --with-libmng --with-libexif \ --with-libtiff --with-libjpeg --with-libpng --with-libmng --with-libexif \
--with-gtkhtml2 --with-librsvg --with-poppler --with-gnomevfs --with-alsa \ --with-gtkhtml2 --with-librsvg --with-poppler --with-gnomevfs --with-alsa \
@ -337,8 +318,6 @@ fi
%doc AUTHORS COPYING ChangeLog NEWS README %doc AUTHORS COPYING ChangeLog NEWS README
%doc docs/*.xcf* %doc docs/*.xcf*
%{_datadir}/applications/*.desktop %{_datadir}/applications/*.desktop
%{_datadir}/application-registry/*.applications
%{_datadir}/mime-info/*.keys
%dir %{_datadir}/gimp %dir %{_datadir}/gimp
%dir %{_datadir}/gimp/%{interfacever} %dir %{_datadir}/gimp/%{interfacever}
@ -451,6 +430,12 @@ fi
%{_libdir}/pkgconfig/* %{_libdir}/pkgconfig/*
%changelog %changelog
* Thu Oct 02 2008 Nils Philippsen <nils@redhat.com> - 2:2.6.0-1
- version 2.6.0
- remove obsolete htmlview patch
- remove obsolete distro version dependent defaults
- don't use custom CFLAGS
* Mon Sep 22 2008 Nils Philippsen <nils@redhat.com> - 2:2.4.7-4 * Mon Sep 22 2008 Nils Philippsen <nils@redhat.com> - 2:2.4.7-4
- don't require desktop-file-utils (#463049, patch by Ville Skyttä) - don't require desktop-file-utils (#463049, patch by Ville Skyttä)

View File

@ -1 +1 @@
8d0e059597d70fbdeb77e6447bae29c4 gimp-2.4.7.tar.bz2 e5ac955fee8b376d431e4693027d7640 gimp-2.6.0.tar.bz2