#
# spec file for package gimp (Version 2.6.6)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           gimp
BuildRequires:  aalib-devel
BuildRequires:  babl-devel
BuildRequires:  cairo-devel
BuildRequires:  dbus-1-glib-devel
BuildRequires:  fontconfig-devel
BuildRequires:  gegl-devel
BuildRequires:  glib2-devel
BuildRequires:  gtk2-devel
BuildRequires:  hal-devel
BuildRequires:  intltool
BuildRequires:  iso-codes-devel
BuildRequires:  libexif-devel
BuildRequires:  liblcms-devel
BuildRequires:  libmng-devel
BuildRequires:  libpng-devel
BuildRequires:  libpoppler-glib-devel
BuildRequires:  librsvg-devel
BuildRequires:  libtiff-devel
BuildRequires:  libwebkit-devel
BuildRequires:  libwmf-devel
BuildRequires:  pango-devel
BuildRequires:  python-gtk-devel
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11-libXfixes-devel
Url:            http://www.gimp.org/
Version:        2.6.6
Release:        1
License:        GPL v2 or later
Group:          Productivity/Graphics/Bitmap Editors
Suggests:       AdobeICCProfiles
Provides:       gimp-2.0 = %{version}
Obsoletes:      gimp-unstable < 2.6.0
Requires:       %{name}-lang = %{version}
Requires:       gtk2
Summary:        The GNU Image Manipulation Program
Source:         ftp://ftp.gimp.org/pub/gimp/v2.6/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-branding >= 2.4
Recommends:     %{name}-plugins-python = %{version} gimp-2.0-scanner-plugin

%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 offers many
of the tools and filters you would expect to find in similar commercial
offerings and contains some interesting extras as well. The GIMP
provides alarge image manipulation toolbox, including channel
operations and layers, effects, subpixel imaging and antialiasing, and
conversions- all including multilevel undo. The GIMP offers a scripting
facility, but many of the included scripts rely on fonts that we cannot
distribute. The GIMP FTP sitehas a package of fonts that you need to
run the included scripts and that you can install yourself. Some of the
fonts have unusual licensing requirements, but all the licenses are
documented in the package. Get
ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.gz and
ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz if you like to
do so. Alternatively, choose fonts that exist on your systembefore
running the scripts.



Authors:
--------
    Spencer Kimball
    Peter Mattis
    Lauri Alanko
    Shawn Amundson
    Sven Anders
    Karl-Johan Andersson
    John Beale
    Zach Beane
    Tom Bech
    Marc Bless
    Edward Blevins
    Reagan Blundell
    Xavier Bouchoux
    Roberto Boyd
    Stanislav Brabec
    Robert Brady
    Hans Breuer
    Simon Budig
    Carey Bunks
    Seth Burgess
    Brent Burton
    Francisco Bustamante
    Albert Cahalan
    Sean Cier
    Winston Chang
    Kenneth Christiansen
    Zbigniew Chyla
    Ed Connel
    Piers Cornwell
    Daniel Cotting
    Jay Cox
    Brian Degenhardt
    Gert Dewit
    Andreas Dilger
    Austin Donnelly
    Scott Draves
    Daniel Dunbar
    Misha Dynin
    Daniel Egger
    Morton Eriksen
    Larry Ewing
    Nick Fetchak
    Valek Filippov
    David Forsyth
    Raphael Francois
    Jochen Friedrich
    Sami Gerdt
    Jim Geuther
    Graeme Gill
    Scott Goehring
    Heiko Goller
    Marcelo de Gomensoro Malheiros
    Pavel Grinfeld
    Michael Hammel
    Henrik Hansen
    Ville Hautamaki
    James Henstridge
    Eric Hernes
    David Hodson
    Christoph Hoegl
    Wolfgang Hofer
    Jan Hubicka
    Andreas Hyden
    Ben Jackson
    Krzysztof Jakubowski
    Simon Janes
    Tim Janik
    Fellmann Joaquim
    Andrew Kieschnick
    Peter Kirchgessner
    Philipp Klaus
    David Koblas
    Robert L Krawitz
    Tuomas Kuosmanen
    Karin Kylander
    Olof S Kylander
    Karl La Rocca
    Chris Lahey
    Nick Lamb
    Marco Lamberto
    Jens Lautenbacher
    Laramie Leavitt
    Elliot Lee
    Marc Lehmann
    Ray Lehtiniemi
    Raph Levien
    Wing Tung Leung
    Adrian Likins
    Tor Lillqvist
    Ingo Luetkebohle
    Josh MacDonald
    Ed Mackey
    Vidar Madsen
    Ian Main
    Kjartan Maraas
    Kelly Martin
    Torsten Martinsen
    Gordon Matzigkeit
    Gregory McLean
    Daniele Medri
    Federico Mena Quintero
    James Mitchell
    Hirotsuna Mizuno
    David Monniaux
    Adam D Moss
    Balazs Nagy
    Yukihiro Nakai
    Sung-Hyun Nam
    Shuji Narazaki
    Felix Natter
    Michael Natterer
    David Neary
    Sven Neumann
    Stephen Robert Norris
    Tim Newsome
    Erik Nygren
    Miles O'Neal
    David Neary
    David Necas
    David Odin
    Thom van Os
    Garry R. Osgood
    Alan Paeth
    Jay Painter
    Sergey Panov
    Ville Patsi
    Asbjorn Pettersen
    Mike Phillips
    Artur Polaczynski
    Raphael Quinet
    Tom Rathborne
    Vincent Renardias
    Jens Restemeier
    Maurits Rijk
    Daniel Risacher
    James Robinson
    Guillermo S. Romero
    Tim Rowley
    Pablo Saratxaga
    Mike Schaeffer
    John Schlag
    Norbert Schmitz
    Thorsten Schnier
    Alexander Schulz
    Tracy Scott
    Craig Setera
    Aaron Sherman
    Manish Singh
    Daniel Skarda
    Adam Spiers
    Jakub Steiner
    Nathan Summers
    Mike Sweet
    Yuri Syrota
    Eiichi Takamori
    Tristan Tarrant
    Michael Taylor
    Owen Taylor
    Ian Tester
    Andy Thomas
    Kevin Turner
    Rebecca Walter
    Martin Weber
    James Wang
    Kris Wehner
    Nigel Wetten
    Calvin Williamson
    Matthew Wilson
    Shirasaki Yasuhiro

%package branding-upstream
License:        GPL v2 or later
Summary:        The GNU Image Manipulation Program
Group:          Productivity/Graphics/Bitmap Editors
Provides:       %{name}-branding = %{version}
Conflicts:      otherproviders(%{name}-branding)
Obsoletes:      gimp-unstable-branding-upstream < 2.6.0
Supplements:    packageand(%{name}:branding-upstream)
# It is technically compatible with 2.4, but upstream branding has version specific image:
Conflicts:      %{name} < 2.6.0
#BRAND: /usr/share/gimp/2.0/images/gimp-splash.png is a splash screen in
#BRAND: GIMP, original size is 300x400. Bottom part displays "just
#BRAND: starting" text and progress bar.

%description branding-upstream
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 offers many
of the tools and filters you would expect to find in similar commercial
offerings and contains some interesting extras as well. The GIMP
provides alarge image manipulation toolbox, including channel
operations and layers, effects, subpixel imaging and antialiasing, and
conversions- all including multilevel undo. The GIMP offers a scripting
facility, but many of the included scripts rely on fonts that we cannot
distribute. The GIMP FTP sitehas a package of fonts that you need to
run the included scripts and that you can install yourself. Some of the
fonts have unusual licensing requirements, but all the licenses are
documented in the package. Get
ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.gz and
ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz if you like to
do so. Alternatively, choose fonts that exist on your systembefore
running the scripts.



Authors:
--------
    Spencer Kimball
    Peter Mattis
    Lauri Alanko
    Shawn Amundson
    Sven Anders
    Karl-Johan Andersson
    John Beale
    Zach Beane
    Tom Bech
    Marc Bless
    Edward Blevins
    Reagan Blundell
    Xavier Bouchoux
    Roberto Boyd
    Stanislav Brabec
    Robert Brady
    Hans Breuer
    Simon Budig
    Carey Bunks
    Seth Burgess
    Brent Burton
    Francisco Bustamante
    Albert Cahalan
    Sean Cier
    Winston Chang
    Kenneth Christiansen
    Zbigniew Chyla
    Ed Connel
    Piers Cornwell
    Daniel Cotting
    Jay Cox
    Brian Degenhardt
    Gert Dewit
    Andreas Dilger
    Austin Donnelly
    Scott Draves
    Daniel Dunbar
    Misha Dynin
    Daniel Egger
    Morton Eriksen
    Larry Ewing
    Nick Fetchak
    Valek Filippov
    David Forsyth
    Raphael Francois
    Jochen Friedrich
    Sami Gerdt
    Jim Geuther
    Graeme Gill
    Scott Goehring
    Heiko Goller
    Marcelo de Gomensoro Malheiros
    Pavel Grinfeld
    Michael Hammel
    Henrik Hansen
    Ville Hautamaki
    James Henstridge
    Eric Hernes
    David Hodson
    Christoph Hoegl
    Wolfgang Hofer
    Jan Hubicka
    Andreas Hyden
    Ben Jackson
    Krzysztof Jakubowski
    Simon Janes
    Tim Janik
    Fellmann Joaquim
    Andrew Kieschnick
    Peter Kirchgessner
    Philipp Klaus
    David Koblas
    Robert L Krawitz
    Tuomas Kuosmanen
    Karin Kylander
    Olof S Kylander
    Karl La Rocca
    Chris Lahey
    Nick Lamb
    Marco Lamberto
    Jens Lautenbacher
    Laramie Leavitt
    Elliot Lee
    Marc Lehmann
    Ray Lehtiniemi
    Raph Levien
    Wing Tung Leung
    Adrian Likins
    Tor Lillqvist
    Ingo Luetkebohle
    Josh MacDonald
    Ed Mackey
    Vidar Madsen
    Ian Main
    Kjartan Maraas
    Kelly Martin
    Torsten Martinsen
    Gordon Matzigkeit
    Gregory McLean
    Daniele Medri
    Federico Mena Quintero
    James Mitchell
    Hirotsuna Mizuno
    David Monniaux
    Adam D Moss
    Balazs Nagy
    Yukihiro Nakai
    Sung-Hyun Nam
    Shuji Narazaki
    Felix Natter
    Michael Natterer
    David Neary
    Sven Neumann
    Stephen Robert Norris
    Tim Newsome
    Erik Nygren
    Miles O'Neal
    David Neary
    David Necas
    David Odin
    Thom van Os
    Garry R. Osgood
    Alan Paeth
    Jay Painter
    Sergey Panov
    Ville Patsi
    Asbjorn Pettersen
    Mike Phillips
    Artur Polaczynski
    Raphael Quinet
    Tom Rathborne
    Vincent Renardias
    Jens Restemeier
    Maurits Rijk
    Daniel Risacher
    James Robinson
    Guillermo S. Romero
    Tim Rowley
    Pablo Saratxaga
    Mike Schaeffer
    John Schlag
    Norbert Schmitz
    Thorsten Schnier
    Alexander Schulz
    Tracy Scott
    Craig Setera
    Aaron Sherman
    Manish Singh
    Daniel Skarda
    Adam Spiers
    Jakub Steiner
    Nathan Summers
    Mike Sweet
    Yuri Syrota
    Eiichi Takamori
    Tristan Tarrant
    Michael Taylor
    Owen Taylor
    Ian Tester
    Andy Thomas
    Kevin Turner
    Rebecca Walter
    Martin Weber
    James Wang
    Kris Wehner
    Nigel Wetten
    Calvin Williamson
    Matthew Wilson
    Shirasaki Yasuhiro

%package plugins-python
License:        GPL v2 or later
Summary:        The GNU Image Manipulation Program - python-gtk based plugins
Requires:       %{name} = %{version} python-gtk
Supplements:    %{name}
Provides:       gimp-2.0-plugins-python = %{version}
Obsoletes:      gimp-unstable-plugins-python < 2.6.0
Group:          Productivity/Graphics/Bitmap Editors
# For update from <= 10.3 and SLED 10:
Provides:       %{name}:%{_libdir}/gimp/2.0/plug-ins/pyconsole.py = %{version}
%py_requires

%description plugins-python
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 offers many
of the tools and filters you would expect to find in similar commercial
offerings and contains some interesting extras as well. The GIMP
provides alarge image manipulation toolbox, including channel
operations and layers, effects, subpixel imaging and antialiasing, and
conversions- all including multilevel undo. The GIMP offers a scripting
facility, but many of the included scripts rely on fonts that we cannot
distribute. The GIMP FTP sitehas a package of fonts that you need to
run the included scripts and that you can install yourself. Some of the
fonts have unusual licensing requirements, but all the licenses are
documented in the package. Get
ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.gz and
ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz if you like to
do so. Alternatively, choose fonts that exist on your systembefore
running the scripts.



Authors:
--------
    Spencer Kimball
    Peter Mattis
    Lauri Alanko
    Shawn Amundson
    Sven Anders
    Karl-Johan Andersson
    John Beale
    Zach Beane
    Tom Bech
    Marc Bless
    Edward Blevins
    Reagan Blundell
    Xavier Bouchoux
    Roberto Boyd
    Stanislav Brabec
    Robert Brady
    Hans Breuer
    Simon Budig
    Carey Bunks
    Seth Burgess
    Brent Burton
    Francisco Bustamante
    Albert Cahalan
    Sean Cier
    Winston Chang
    Kenneth Christiansen
    Zbigniew Chyla
    Ed Connel
    Piers Cornwell
    Daniel Cotting
    Jay Cox
    Brian Degenhardt
    Gert Dewit
    Andreas Dilger
    Austin Donnelly
    Scott Draves
    Daniel Dunbar
    Misha Dynin
    Daniel Egger
    Morton Eriksen
    Larry Ewing
    Nick Fetchak
    Valek Filippov
    David Forsyth
    Raphael Francois
    Jochen Friedrich
    Sami Gerdt
    Jim Geuther
    Graeme Gill
    Scott Goehring
    Heiko Goller
    Marcelo de Gomensoro Malheiros
    Pavel Grinfeld
    Michael Hammel
    Henrik Hansen
    Ville Hautamaki
    James Henstridge
    Eric Hernes
    David Hodson
    Christoph Hoegl
    Wolfgang Hofer
    Jan Hubicka
    Andreas Hyden
    Ben Jackson
    Krzysztof Jakubowski
    Simon Janes
    Tim Janik
    Fellmann Joaquim
    Andrew Kieschnick
    Peter Kirchgessner
    Philipp Klaus
    David Koblas
    Robert L Krawitz
    Tuomas Kuosmanen
    Karin Kylander
    Olof S Kylander
    Karl La Rocca
    Chris Lahey
    Nick Lamb
    Marco Lamberto
    Jens Lautenbacher
    Laramie Leavitt
    Elliot Lee
    Marc Lehmann
    Ray Lehtiniemi
    Raph Levien
    Wing Tung Leung
    Adrian Likins
    Tor Lillqvist
    Ingo Luetkebohle
    Josh MacDonald
    Ed Mackey
    Vidar Madsen
    Ian Main
    Kjartan Maraas
    Kelly Martin
    Torsten Martinsen
    Gordon Matzigkeit
    Gregory McLean
    Daniele Medri
    Federico Mena Quintero
    James Mitchell
    Hirotsuna Mizuno
    David Monniaux
    Adam D Moss
    Balazs Nagy
    Yukihiro Nakai
    Sung-Hyun Nam
    Shuji Narazaki
    Felix Natter
    Michael Natterer
    David Neary
    Sven Neumann
    Stephen Robert Norris
    Tim Newsome
    Erik Nygren
    Miles O'Neal
    David Neary
    David Necas
    David Odin
    Thom van Os
    Garry R. Osgood
    Alan Paeth
    Jay Painter
    Sergey Panov
    Ville Patsi
    Asbjorn Pettersen
    Mike Phillips
    Artur Polaczynski
    Raphael Quinet
    Tom Rathborne
    Vincent Renardias
    Jens Restemeier
    Maurits Rijk
    Daniel Risacher
    James Robinson
    Guillermo S. Romero
    Tim Rowley
    Pablo Saratxaga
    Mike Schaeffer
    John Schlag
    Norbert Schmitz
    Thorsten Schnier
    Alexander Schulz
    Tracy Scott
    Craig Setera
    Aaron Sherman
    Manish Singh
    Daniel Skarda
    Adam Spiers
    Jakub Steiner
    Nathan Summers
    Mike Sweet
    Yuri Syrota
    Eiichi Takamori
    Tristan Tarrant
    Michael Taylor
    Owen Taylor
    Ian Tester
    Andy Thomas
    Kevin Turner
    Rebecca Walter
    Martin Weber
    James Wang
    Kris Wehner
    Nigel Wetten
    Calvin Williamson
    Matthew Wilson
    Shirasaki Yasuhiro

%package devel
License:        GPL v2 or later
Summary:        The GNU Image Manipulation Program
Requires:       %{name} = %{version}
Requires:       glib2-devel
Requires:       gtk2-devel
Provides:       gimp-2.0-devel = %{version}
Obsoletes:      gimp-unstable-devel < 2.6.0
Group:          Productivity/Graphics/Bitmap Editors
Obsoletes:      gimp-doc <= 2.6.4
Provides:       gimp-doc = 2.6.4

%description devel
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 offers many
of the tools and filters you would expect to find in similar commercial
offerings and contains some interesting extras as well. The GIMP
provides alarge image manipulation toolbox, including channel
operations and layers, effects, subpixel imaging and antialiasing, and
conversions- all including multilevel undo. The GIMP offers a scripting
facility, but many of the included scripts rely on fonts that we cannot
distribute. The GIMP FTP sitehas a package of fonts that you need to
run the included scripts and that you can install yourself. Some of the
fonts have unusual licensing requirements, but all the licenses are
documented in the package. Get
ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.gz and
ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz if you like to
do so. Alternatively, choose fonts that exist on your systembefore
running the scripts.



Authors:
--------
    Spencer Kimball
    Peter Mattis
    Lauri Alanko
    Shawn Amundson
    Sven Anders
    Karl-Johan Andersson
    John Beale
    Zach Beane
    Tom Bech
    Marc Bless
    Edward Blevins
    Reagan Blundell
    Xavier Bouchoux
    Roberto Boyd
    Stanislav Brabec
    Robert Brady
    Hans Breuer
    Simon Budig
    Carey Bunks
    Seth Burgess
    Brent Burton
    Francisco Bustamante
    Albert Cahalan
    Sean Cier
    Winston Chang
    Kenneth Christiansen
    Zbigniew Chyla
    Ed Connel
    Piers Cornwell
    Daniel Cotting
    Jay Cox
    Brian Degenhardt
    Gert Dewit
    Andreas Dilger
    Austin Donnelly
    Scott Draves
    Daniel Dunbar
    Misha Dynin
    Daniel Egger
    Morton Eriksen
    Larry Ewing
    Nick Fetchak
    Valek Filippov
    David Forsyth
    Raphael Francois
    Jochen Friedrich
    Sami Gerdt
    Jim Geuther
    Graeme Gill
    Scott Goehring
    Heiko Goller
    Marcelo de Gomensoro Malheiros
    Pavel Grinfeld
    Michael Hammel
    Henrik Hansen
    Ville Hautamaki
    James Henstridge
    Eric Hernes
    David Hodson
    Christoph Hoegl
    Wolfgang Hofer
    Jan Hubicka
    Andreas Hyden
    Ben Jackson
    Krzysztof Jakubowski
    Simon Janes
    Tim Janik
    Fellmann Joaquim
    Andrew Kieschnick
    Peter Kirchgessner
    Philipp Klaus
    David Koblas
    Robert L Krawitz
    Tuomas Kuosmanen
    Karin Kylander
    Olof S Kylander
    Karl La Rocca
    Chris Lahey
    Nick Lamb
    Marco Lamberto
    Jens Lautenbacher
    Laramie Leavitt
    Elliot Lee
    Marc Lehmann
    Ray Lehtiniemi
    Raph Levien
    Wing Tung Leung
    Adrian Likins
    Tor Lillqvist
    Ingo Luetkebohle
    Josh MacDonald
    Ed Mackey
    Vidar Madsen
    Ian Main
    Kjartan Maraas
    Kelly Martin
    Torsten Martinsen
    Gordon Matzigkeit
    Gregory McLean
    Daniele Medri
    Federico Mena Quintero
    James Mitchell
    Hirotsuna Mizuno
    David Monniaux
    Adam D Moss
    Balazs Nagy
    Yukihiro Nakai
    Sung-Hyun Nam
    Shuji Narazaki
    Felix Natter
    Michael Natterer
    David Neary
    Sven Neumann
    Stephen Robert Norris
    Tim Newsome
    Erik Nygren
    Miles O'Neal
    David Neary
    David Necas
    David Odin
    Thom van Os
    Garry R. Osgood
    Alan Paeth
    Jay Painter
    Sergey Panov
    Ville Patsi
    Asbjorn Pettersen
    Mike Phillips
    Artur Polaczynski
    Raphael Quinet
    Tom Rathborne
    Vincent Renardias
    Jens Restemeier
    Maurits Rijk
    Daniel Risacher
    James Robinson
    Guillermo S. Romero
    Tim Rowley
    Pablo Saratxaga
    Mike Schaeffer
    John Schlag
    Norbert Schmitz
    Thorsten Schnier
    Alexander Schulz
    Tracy Scott
    Craig Setera
    Aaron Sherman
    Manish Singh
    Daniel Skarda
    Adam Spiers
    Jakub Steiner
    Nathan Summers
    Mike Sweet
    Yuri Syrota
    Eiichi Takamori
    Tristan Tarrant
    Michael Taylor
    Owen Taylor
    Ian Tester
    Andy Thomas
    Kevin Turner
    Rebecca Walter
    Martin Weber
    James Wang
    Kris Wehner
    Nigel Wetten
    Calvin Williamson
    Matthew Wilson
    Shirasaki Yasuhiro

%lang_package
%prep
%setup -q

%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --with-pic\
	--disable-static\
	--libexecdir=%{_prefix}/lib\
	--enable-default-binary\
	--enable-mp
make %{?jobs:-j%jobs}

%install
%makeinstall
%suse_update_desktop_file gimp
rm $RPM_BUILD_ROOT%{_libdir}/gimp/2.0/*/*.*a
%find_lang gimp20
%find_lang gimp20-libgimp gimp20.lang
%find_lang gimp20-python gimp20.lang
%find_lang gimp20-script-fu gimp20.lang
%find_lang gimp20-std-plug-ins gimp20.lang
%find_lang gimp20-tips gimp20.lang
echo "%%defattr(-,root,root)" >plugins.list
echo "%%defattr(-,root,root)" >plugins-python.list
for PLUGIN in $RPM_BUILD_ROOT%{_libdir}/gimp/2.0/plug-ins/* ; do
    if grep -q '^#!.*python' $PLUGIN ; then
	echo "${PLUGIN#$RPM_BUILD_ROOT}" >>plugins-python.list
    else
	echo "${PLUGIN#$RPM_BUILD_ROOT}" >>plugins.list
    fi
done
rm %{buildroot}%{_libdir}/*.la

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -f plugins.list
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog* LICENSE NEWS* README
%{_bindir}/gimp
%{_bindir}/gimp-*
%{_libdir}/*.so.*
%{_datadir}/applications/gimp.desktop
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_datadir}/gimp
%exclude %{_datadir}/gimp/2.0/images/gimp-splash.png
%dir %{_libdir}/gimp
%dir %{_libdir}/gimp/2.0
%dir %{_libdir}/gimp/2.0/environ
%{_libdir}/gimp/2.0/environ/default.env
%dir %{_libdir}/gimp/2.0/interpreters
%{_libdir}/gimp/2.0/interpreters/default.interp
%{_libdir}/gimp/2.0/modules
%dir %{_libdir}/gimp/2.0/plug-ins
%doc %{_mandir}/man?/*.*
%dir %{_sysconfdir}/gimp
%dir %{_sysconfdir}/gimp/2.0
%config %{_sysconfdir}/gimp/2.0/*rc

%files branding-upstream
%defattr(-,root,root)
%{_datadir}/gimp/2.0/images/gimp-splash.png

%files plugins-python -f plugins-python.list
%defattr(-,root,root)
%{_libdir}/gimp/2.0/environ/pygimp.env
%{_libdir}/gimp/2.0/interpreters/pygimp.interp
%{_libdir}/gimp/2.0/python
# FIXME: Maybe split gimp-lang and gimp-plugins-python-lang

%files lang -f gimp20.lang

%files devel
%defattr(-,root,root)
%doc README.i18n
%{_bindir}/gimptool*
%{_datadir}/aclocal/*.m4
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/*

%changelog
* Tue Mar 17 2009 mboman@suse.de
- Update to version 2.6.6:
  + bgo#571117 – lcms plug-in crashes on broken profile
  + bgo#575154 – changing the help browser preference may not work
  + bgo#573542 – blur plugin: bug in the first line
  + bgo#572403 – gimp-2.6 crashed with SIGSEGV in
  IA__g_object_get()
  + bgo#573695 – 1-bit white background saved as PBM becomes all
  black
  + bgo#573488 – Small bug in Filter>Distorts>Ripple
  + bgo#572156 – top left pixel position/coordinate is not 0,0 but
  1,1
  + bgo#472644 – Rotate with clipping crops the whole layer
  + Translation updates
- Remove glibc-devel from Requires in -devel package
- Use py_requires.
- Remove gimp-enable-gtk-deprecated.patch: unneeded now.
* Tue Feb 17 2009 vuntz@novell.com
- Remove some BuildRequires:
  + libcurl-devel: not needed since we have gio
  + gnome-keyring-devel, gnome-vfs2-devel, libgnomeui-devel: not
  needed either since we have gio
- Fix Provides/Obsoletes for gimp-doc in devel package.
* Mon Feb 16 2009 mboman@suse.de
- Update to version 2.6.5:
  + bgo#571628 – Scaling image to 25%% turn background from white
  to grey
  + bgo#567840 – GIMP's GtkScaleButton conflicts with GTK's
  + bgo#569043 – GEGL tool - missing Operation Settings for all
  sub-tools
  + bgo#568890 – don't rely on GtkAction implementation details
  + bgo#568909 – wrong RGB values for color names in
  libgimpcolor/gimprgb-parse.c
  + bgo#568839 – wrong hex RGB value for the color names slategrey
  and slategray
  + bgo#559408 - Brushes dragged to the image window look strange
  + bgo#563337 – Rectangle Select Tool does not allow 1:1 fixed
  ratio
  + bgo#568016 – Black pullout parameter of plug-in-newsprint has
  no effect
  + bgo#562818 – First image opened in GIMP offset
  + bgo#562213 – Align Tool doesn't work properly if it is the
  active tool at startup
  + Translation updates
- Add gimp-enable-gtk-deprecated.patch due to using deprecated
  API call gtk_widget_get_action. Upstream is working on it so
  could probably be removed with the next version update
- Merge gtk-doc from -doc to -devel
- Fix BuildRequires according to what's in configure.ac:
  * Add: babl-devel, cairo-devel, fontconfig-devel, glib2-devel,
  gnome-keyring-devel, gnome-vfs2-devel, gtk2-devel,
  libcurl-devel, libpng-devel, pango-devel,
  xorg-x11-libXfixes-devel
  * Remove: BuildRequires: alsa-devel, cups, cups-devel,
  curl-devel, gnome-common, gnutls-devel, gtk-doc,
  libgimpprint, libgimpprint-devel, libglade2-devel,
  libgnomeprintui-devel, libgtkhtml-devel,
  libwnck-devel, perl-XML-Parser, postfix,
  python-devel, slang-devel
* Tue Feb 10 2009 vuntz@novell.com
- Remove non-upstream translations: they'll get out-of-date.
* Mon Jan 19 2009 crrodriguez@suse.de
- remove "la" files [BNC#357465]
* Sat Jan 03 2009 mboman@suse.de
- Update to version 2.6.4:
  + bgo#565223 – Perspective transformation jagged edges / comb effect
  + bgo#563985 – jpg save dialog: "cancel" is treated like "commit"
  for settings
  + bgo#564087 – Using clone tool on a layer with a part out of canvas
  causes crashes
  + bgo#564593 – crash when the drawable is changed while a color tool
  is active
  + bgo#564869 – GIMP crashes on selecting Tools->GEGL operation
  + bgo#565138 – python-fu-foggify does not check if image is in rgb mode
  + bgo#563130 – Hue selection mode does not cross the 0-360 degrees line
  + bgo#563179 – Scrollbars not resized when we extend the canvas size
  + bgo#562459 – PF_PALETTE: 'TypeError' when used in a plugin that is
  registered in <Image>
  + bgo#562427 – Compilation with --as-needed
  + bgo#562386 – PF_SLIDER and PF_SPINNER 'Step' values do not change
  consistently...
  + bgo#562366 – Default image dimensions are not correctly
  transferred in the file/new dialog box
  + bgo#561899 – GIMP can't save to mounted filesystem if file exists
  + Translation updates
* Mon Dec 29 2008 mboman@suse.de
- Update to version 2.6.3:
  + bgo#558454 – Plugin Map Color Range disappears from GIMP
  + bgo#559239 – Error while loading psd-data
  + bgo#560903 – Explicit zooming with e.g. '1' should handle
  zoom-focus better
  + bgo#560245 – Zoom selection always centered in the Navigation tab
  + bgo#559490 – Wrong lang tags for 'no'
  + bgo#559292 – SOTA Chrome cannot accept different textures
  + bgo#560375 – Clearing an already empty document history crashes GIMP
  + bgo#559580 – Image windows need better default locations
  + bgo#560283 – "Scale image..." causes distortion around edges
  + bgo#559716 – Changing crop size in Crop Tool Options can make UI
  unresponsive
  + bgo#558549 – Stroking a single-point path with a paint tool
  crashes GIMP
  + bgo#559015 – Move tool gives bad information about px moved
  + bgo#558660 – help behavior for locales without manual translation
  + Translation updates
- Remove gimp-help-fallback-en.patch. Fixed upstream
* Fri Dec 19 2008 mauro@suse.de
- Added hu-po.tar.bz2 to fix bnc#460663
  + Updated hungarian translation.
* Mon Nov 03 2008 sbrabec@suse.cz
- If help translation does not exist, fallback to English
  (bgo#558660).
* Fri Oct 31 2008 sbrabec@suse.cz
- Updated to version 2.6.2:
  * scaling speed improved
  * several crash, bug and regression against 2.4 fixes
  * translation updates
  * See NEWS for more
* Fri Oct 10 2008 sbrabec@suse.cz
- Updated to version 2.6.1:
  * 10 important crash and bug fixes
  * translation updates
  * See NEWS for more
* Mon Oct 06 2008 sbrabec@suse.cz
- Conflict with other branding providers (FATE#304881, bnc#429324).
* Thu Oct 02 2008 sbrabec@suse.cz
- Updated to version 2.6.0, the new stable branch:
  * depends on GEGL and uses it optionally in some color operations
  * UI refactoring
  * many improvements and new features
  * See NEWS for details.
* Thu Sep 04 2008 sbrabec@suse.cz
- Recommend gimp-2.0-scanner-plugin (bnc#422558).
* Fri Aug 22 2008 sbrabec@suse.cz
- Updated to version 2.4.7:
  * python binding fixes
  * fixed memory leak
  * bug fixes
  * translation updates
  * See NEWS for details.
* Wed Jul 16 2008 sbrabec@suse.cz
- Updated to version 2.4.6:
  * many fixes
  * translation updates
  * See NEWS for details.
* Tue Apr 15 2008 sbrabec@suse.cz
- Fixed dependencies of the branding package.
* Mon Apr 14 2008 sbrabec@suse.cz
- Use packageand form of branding supplement.
* Thu Mar 27 2008 sbrabec@suse.cz
- Added support for vendor branding (bnc#372091).
* Mon Mar 03 2008 sbrabec@suse.cz
- Updated to version 2.4.5:
  * many fixes
  * many corrections
  * translation updates
  * See NEWS for details.
* Wed Jan 30 2008 sbrabec@suse.cz
- Split plugins requiring python-gtk into a separate package
  (bnc#339862).
* Fri Dec 07 2007 sbrabec@suse.cz
- Removed gutenprint from BuildRequires (#245683#c23).
- Require python-gtk (#339862).
* Wed Oct 24 2007 sbrabec@suse.cz
- Updated to version 2.4.0:
  * further improved the rectangle select and crop tools
  * allow to mark out-of-gamut colors when doing a soft proof
  * bug fixes
- Package renamed from gimp-unstable to gimp.
* Thu Oct 11 2007 sbrabec@suse.cz
- poppler devel package names prepended by "lib".
* Mon Oct 08 2007 sbrabec@suse.cz
-  Use binding specific poppler devel package.
* Mon Sep 24 2007 stbinner@suse.de
- update to GIMP 2.3 Release Candidate 3 (#327516)
  * Changes in GIMP 2.4.0-rc3:
    - use the new format for storing recently used files
    - added conversion options to the color profile conversion plug-in
    - allow to disable the toolbox menu on all platforms
    - further improved handling of the JPEG settings
    - switch tabs when hovering over them
    - added a PDB function to remove the alpha channel from a layer
    - plug-in previews remember the state of the Preview checkbox
    - allow to grow the image/layer using the Crop tool
  * Changes in GIMP 2.4.0-rc2:
    - more improvements and bug fixes in the rectangle tools
    - antialias the display for zoom levels between 100%% and 200%
    - fix zoomed-out display problems
    - improve handling of JPEG settings
    - fix script-fu error reporting
    - on OS X, get rid of menubars in windows and use the global menubar
    - fix plug-ins using GimpZoomPreview
    - throw properly catchable exceptions from foreign script-fu function
  (like PDB wrappers)
  * Changes in GIMP 2.4.0-rc1:
    - further improvement to the Print plug-in
    - completed the color management functionality for 2.4
    - store JPEG setting with the image and use them when saving as JPEG
    - further improved the rectangle tools, in particular handling of the
  fixed aspect ratio
   - added color profile selector widget
   - further improved the display quality for zoomed-out views
* Tue Sep 11 2007 stbinner@suse.de
- add Conflict with gimp-lang (#307289)
* Mon Jul 30 2007 maw@suse.de
- Update to version 2.3.19:
  + support long layer names in PSD files
  + improved EXIF handling in the JPEG file plug-in
  + added control for the playback speed in the Animation Playback plug-in
  + avoid needless image preview invalidation
  + allow to edit the image comment in the Image Properties dialog
  + further improved rectangle tools
  + made JPEG save parameters user-configurable
  + avoid color conversions between identical ICC color profiles
  + improved Print plug-in
  + improved loading and saving of indexed TGA images
  + temporarily show the hidden image statusbar while the progress is active
  + added support for loading .abr v6 Photoshop brushes
  + improved usability of color scales
  + improved display quality of zoomed-out image view
  + improved import of multi-page TIFF files
  + reduced rounding errors in Blur routines (core and plug-ins)
  + further improved parameter checks in the PDB
  + added support for loading .abr v2 Photoshop brushes
  + improved border behavior of the Blur tool
  + show the brush outline at the Clone tool's source position
  + added libgimpbase API to retrieve the user's Pictures folder
  + add a shortcut to the user's Pictures folder to the file-chooser dialog
  + improved the quality of the Motion Blur filter
  + save paths in TIFF files
  + let the Screenshot plug-in name the new layer after the window
  + use memory slices to reduce memory fragmentation
  + some code cleanup
  + lots of bug fixes
- Remove upstreamed gimp-psd-overflow.patch and gimp-sunras-overflow.patch.
* Wed Jul 18 2007 maw@suse.de
- Respin gimp-psd-overflow.patch (http://bugzilla.gnome.org/show_bug.cgi?id=456042
  and https://bugzilla.novell.com/show_bug.cgi?id=284288#c13).
* Tue Jul 03 2007 maw@suse.de
- Add gimp-psd-overflow.patch (#284288 and CVE-2007-2949), fixing
  a buffer overflow.
* Fri May 11 2007 pgajdos@suse.cz
- removed gnome-icon-theme from BuildRequires and Requires
  [#247450]
* Mon May 07 2007 sbrabec@suse.cz
  * Updated to version gimp-2.3.16:
  * XOR color configurable as a workaround for broken drivers
  * keyboard shortcuts can assign to procedures without menu entry
  * configurable height of the preview area in data editors
  * improved file detection in TGA plug-in
  * improved brush scaling code, now also scales up
  * converted standard pixmap brushes to parametric ones
  * improved zoom tool behavior
  * D-Bus methods have a return value indicating success or failure
  * added more menu tooltips
  * procedures can request the display ID they are called from
  * depend on GTK+ >= 2.10.6
  * filename passed on the command-line can open new image
  * various optimizations, bug fixes and code cleanup
* Fri May 04 2007 sbrabec@suse.cz
- Fixed buffer overflow in sunras plugin (#270506, GNOME#433902,
  CVE-2007-2356).
* Wed Apr 04 2007 sbrabec@suse.cz
- Updated to version gimp-2.3.15:
  * Fixes, improvements, UI and API changes. See NEWS for more.
* Thu Mar 08 2007 sbrabec@suse.cz
- Removed obsolete hicolor icon symlink (#248676).
* Wed Mar 07 2007 pgajdos@suse.cz
- fixed 'warning: subscript out of range' (#231161)
- subscript-outrng.patch
* Tue Feb 27 2007 dmueller@suse.de
- adjust buildrequires: libexif -> libexif-devel
* Wed Jan 03 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Thu Sep 14 2006 sbrabec@suse.cz
- Updated to version 2.3.11:
  * Many new features, see
  /usr/share/doc/packages/gimp-unstable/NEWS for more.
  * Many bug fixes and code cleanup.
- Removed dcraw hack.
* Wed Aug 16 2006 cthiel@suse.de
- buildrequire python-gtk-devel instead of python-gtk
* Fri Jul 28 2006 sbrabec@suse.cz
- Fixed buffer overflow in xcf_load_vector (CVE-2006-3404,
  [#190901], GNOME#346742).
* Thu Jun 29 2006 nadvornik@suse.cz
- do not use deprecated libpng functions
* Wed Feb 15 2006 stbinner@suse.de
- use just "Gimp" as name, don't duplicate GenericName description
* Fri Feb 10 2006 sbrabec@suse.cz
- Updated to version 2.3.7.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 05 2006 sbrabec@suse.cz
- Updated to version 2.3.6.
- Enabled parallel build.
* Tue Jan 03 2006 sbrabec@suse.cz
- Suggest AdobeICCProfiles.
* Mon Nov 21 2005 sbrabec@suse.cz
- Moved gimptool to -devel subpackage.
- Provide gimp symlink.
* Tue Nov 08 2005 sbrabec@suse.cz
- Build with strict aliasing.
- Fixed random return value.
* Mon Nov 07 2005 sbrabec@suse.cz
- Updated to version 2.3.5.
* Wed Nov 02 2005 dmueller@suse.de
- don't build as root
* Tue Sep 27 2005 sbrabec@suse.cz
- Updated to version 2.3.4.
* Mon Aug 15 2005 sbrabec@suse.cz
- Provide gimp-2.0 virtual.
* Wed Aug 10 2005 sbrabec@suse.cz
- Updated to version 2.3.3.
* Thu Aug 04 2005 sbrabec@suse.cz
- Do not self-conflict.
* Fri Jul 15 2005 sbrabec@suse.cz
- Provide and conflict with gimp.
* Tue Jul 12 2005 sbrabec@suse.cz
- Fixed MMX patch reject.
* Mon Jul 11 2005 sbrabec@suse.cz
- Created SuSE package for unstable branch.
- Updated to version 2.3.2.
- Removed unneeded static modules and .la files for modules.
* Thu Jul 07 2005 gekker@suse.de
- Fix use of uninitialized variables
- Fix to work with -D_FORTIFY_SOURCE=2
* Tue Jun 07 2005 sbrabec@suse.cz
- Fixed multiple processors option.
* Wed Jun 01 2005 sbrabec@suse.cz
- Fixed devel requirements.
* Wed May 18 2005 sbrabec@suse.cz
- Updated to version 2.2.7.
* Mon May 09 2005 ro@suse.de
- use -mmmx and -msse to compile asm-code for these extensions
* Tue Apr 12 2005 sbrabec@suse.cz
- Updated to version 2.2.6.
* Wed Apr 06 2005 sbrabec@suse.cz
- Fixed incomplete array element type.
* Mon Feb 28 2005 sbrabec@suse.cz
- Updated to version 2.2.4.
* Mon Jan 24 2005 sbrabec@suse.cz
- Updated to version 2.2.3.
* Mon Jan 17 2005 sbrabec@suse.cz
- Updated to version 2.2.2.
* Thu Jan 06 2005 ro@suse.de
- postfix is in neededforbuild, so add "-sendmail" for PLUS
* Thu Jan 06 2005 sbrabec@suse.cz
- Updated to version 2.2.1.
* Tue Oct 26 2004 mmj@suse.de
- locale rename no to nb
* Wed Sep 22 2004 adrian@suse.de
- add MimeTypes line to desktop file. Gimp does support .xcf files now
* Mon Aug 30 2004 rml@suse.de
- upgrade to gimp 2.0.4 (Ximian bug #64677)
* Fri Aug 27 2004 shprasad@suse.de
- Fixes bug #63425
  Fixes GIMP Crash at the time of acquiring screen-shot and select
  extension type as png
- Partially fixes bug #63420
  Doesn't allow to crash.
* Mon Aug 16 2004 shprasad@suse.de
- Fixes bug #63006.
  Added the gtk-file-chooser dialog to Open/Save a file.
* Thu Jun 17 2004 sbrabec@suse.cz
- Updated to version 2.0.2.
* Fri Jun 04 2004 sbrabec@suse.cz
- Updated to bugfix version 2.0.1.
* Tue May 25 2004 ro@suse.de
- added libcroco to neededforbuild
* Wed May 19 2004 sbrabec@suse.cz
- German translation update from Karl Eichwalder.
* Fri May 07 2004 sbrabec@suse.cz
- Better fix (fork() instead of fail wrapper) of gimp-remote bug
  (#38512), backported from gimp-2.0.1.
  http://bugzilla.gnome.org/show_bug.cgi?id=139158
* Wed Apr 07 2004 sbrabec@suse.cz
- Work around of gimp-remote bug (#38512).
  http://bugzilla.gnome.org/show_bug.cgi?id=139158
* Wed Apr 07 2004 sbrabec@suse.cz
- Fixed WMF plugin (#38582).
* Thu Mar 25 2004 mmj@suse.de
- Add postfix to # neededforbuild
* Wed Mar 24 2004 hhetter@suse.de
- updated to version 2.0.0 finally
* Mon Mar 22 2004 sbrabec@suse.cz
- Provide gimp2-devel.
* Mon Mar 22 2004 sbrabec@suse.cz
- Updated to version 2.0rc1.
- GIMP GNOME MIME info files linked to proper place,
- Obsolete gimp2-devel, too.
* Fri Mar 05 2004 hhetter@suse.de
- updated to 2.0pre4
- removed gimp-po-de.patch, it's upstream
- adapted tiff_no_lzw patch
* Tue Mar 02 2004 sbrabec@suse.cz
- Symlink binaries for convenience.
* Tue Mar 02 2004 sbrabec@suse.cz
- German typo fix (bug #34349).
* Fri Feb 27 2004 schwab@suse.de
- Fix broken configure check.
* Fri Feb 20 2004 sbrabec@suse.cz
- Provide and obsolete gimp2.
* Thu Feb 19 2004 sbrabec@suse.cz
- Package renamed to gimp.
* Thu Feb 05 2004 hhetter@suse.de
- updated to version 2.0pre3
- remove desktop file patch, it's called gimp2 now
* Thu Jan 29 2004 hhetter@suse.de
- updated to version 2.0pre2
* Tue Jan 27 2004 hhetter@suse.de
- updated to version 2.0pre1
- renew patch for LZW deactivation
* Mon Oct 20 2003 sbrabec@suse.cz
- Updated to version 1.3.21. Fixes screenshot bug (#32288).
- Build SVG plug-in.
- Clean-up of neededforbuild.
* Wed Oct 15 2003 ro@suse.de
- run full autoreconf
* Thu Sep 18 2003 sbrabec@suse.cz
- Do not show LZW in tiff save dialog at all (bug #29849).
* Mon Sep 15 2003 hhetter@suse.de
- name label "Gimp 1.3" in desktop file (Bug Id #30841)
* Mon Sep 08 2003 sbrabec@suse.cz
- Updated to version 1.3.20.
* Thu Aug 28 2003 sbrabec@suse.cz
- Updated to version 1.3.19.
- Enabled EXIF support.
* Sat Aug 16 2003 adrian@suse.de
- install desktop file
* Thu Aug 14 2003 sbrabec@suse.cz
- Updated to version 1.3.18.
* Mon Aug 04 2003 sbrabec@suse.cz
- Updated to version 1.3.17.
* Fri Jul 25 2003 hhetter@suse.de
- fix build
* Thu Jun 26 2003 sbrabec@suse.cz
- Updated to version 1.3.15.
- Used system libgimpprint.
* Fri Jun 20 2003 ro@suse.de
- added directories to filelist
* Tue Jun 10 2003 sbrabec@suse.cz
- Initial SuSE version of GTK2 port.