2007-01-09 16:44:20 +00:00
|
|
|
#
|
2010-08-10 00:58:57 +00:00
|
|
|
# spec file for package gimp (Version 2.6.10)
|
2007-01-09 16:44:20 +00:00
|
|
|
#
|
2010-04-06 20:23:15 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-09 16:44:20 +00:00
|
|
|
#
|
2008-08-22 22:30:04 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-01-09 16:44:20 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-08-27 22:30:42 +00:00
|
|
|
%global abiver 4
|
|
|
|
%global apiver 2.0
|
2008-03-06 01:38:40 +00:00
|
|
|
|
2007-01-09 16:44:20 +00:00
|
|
|
Name: gimp
|
2009-02-19 17:45:00 +00:00
|
|
|
BuildRequires: aalib-devel
|
2010-08-10 00:58:57 +00:00
|
|
|
BuildRequires: alsa-devel
|
2009-02-19 17:45:00 +00:00
|
|
|
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
|
2009-10-27 15:26:01 +00:00
|
|
|
BuildRequires: translation-update-upstream
|
2009-02-19 17:45:00 +00:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: xorg-x11-libXfixes-devel
|
2007-09-16 09:26:10 +00:00
|
|
|
Url: http://www.gimp.org/
|
2010-08-10 00:58:57 +00:00
|
|
|
Version: 2.6.10
|
|
|
|
Release: 1
|
2009-12-18 12:46:05 +00:00
|
|
|
License: GPLv2+
|
2007-01-09 16:44:20 +00:00
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
|
|
|
Suggests: AdobeICCProfiles
|
2008-10-06 14:24:15 +00:00
|
|
|
Provides: gimp-2.0 = %{version}
|
|
|
|
Obsoletes: gimp-unstable < 2.6.0
|
2007-09-16 09:26:10 +00:00
|
|
|
Requires: %{name}-lang = %{version}
|
2009-03-25 17:47:46 +00:00
|
|
|
Requires: gtk2
|
2008-01-30 17:14:41 +00:00
|
|
|
Summary: The GNU Image Manipulation Program
|
2008-10-06 14:24:15 +00:00
|
|
|
Source: ftp://ftp.gimp.org/pub/gimp/v2.6/%{name}-%{version}.tar.bz2
|
2009-08-27 22:30:42 +00:00
|
|
|
Source1: macros.gimp
|
2010-06-21 16:11:33 +00:00
|
|
|
# openSUSE palette file
|
|
|
|
Source2: openSUSE.gpl
|
2007-10-25 13:28:28 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-03-27 20:52:15 +00:00
|
|
|
Requires: %{name}-branding >= 2.4
|
2009-07-31 17:21:15 +00:00
|
|
|
Recommends: %{name}-plugins-python = %{version} gimp-2.0-scanner-plugin %{name}-help-browser
|
2009-08-27 22:30:42 +00:00
|
|
|
Provides: gimp(api) = %{apiver} gimp(abi) = %{abiver}
|
2007-01-09 16:44:20 +00:00
|
|
|
|
|
|
|
%description
|
2008-01-30 17:14:41 +00:00
|
|
|
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
|
2009-07-31 17:21:15 +00:00
|
|
|
distribute.
|
2008-01-30 17:14:41 +00:00
|
|
|
|
|
|
|
|
2008-03-27 20:52:15 +00:00
|
|
|
%package branding-upstream
|
2009-12-18 12:46:05 +00:00
|
|
|
License: GPLv2+
|
2008-03-27 20:52:15 +00:00
|
|
|
Summary: The GNU Image Manipulation Program
|
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
|
|
|
Provides: %{name}-branding = %{version}
|
2008-10-06 14:24:15 +00:00
|
|
|
Conflicts: otherproviders(%{name}-branding)
|
|
|
|
Obsoletes: gimp-unstable-branding-upstream < 2.6.0
|
2008-07-16 19:32:13 +00:00
|
|
|
Supplements: packageand(%{name}:branding-upstream)
|
2008-10-06 14:24:15 +00:00
|
|
|
# It is technically compatible with 2.4, but upstream branding has version specific image:
|
|
|
|
Conflicts: %{name} < 2.6.0
|
2008-04-20 19:28:09 +00:00
|
|
|
#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.
|
2008-03-27 20:52:15 +00:00
|
|
|
|
|
|
|
%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
|
2009-07-31 17:21:15 +00:00
|
|
|
distribute.
|
2008-03-27 20:52:15 +00:00
|
|
|
|
|
|
|
|
2008-01-30 17:14:41 +00:00
|
|
|
%package plugins-python
|
2009-12-18 12:46:05 +00:00
|
|
|
License: GPLv2+
|
2008-01-30 17:14:41 +00:00
|
|
|
Summary: The GNU Image Manipulation Program - python-gtk based plugins
|
|
|
|
Requires: %{name} = %{version} python-gtk
|
|
|
|
Supplements: %{name}
|
2008-10-06 14:24:15 +00:00
|
|
|
Provides: gimp-2.0-plugins-python = %{version}
|
|
|
|
Obsoletes: gimp-unstable-plugins-python < 2.6.0
|
2008-01-30 17:14:41 +00:00
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
2008-10-06 14:24:15 +00:00
|
|
|
# For update from <= 10.3 and SLED 10:
|
|
|
|
Provides: %{name}:%{_libdir}/gimp/2.0/plug-ins/pyconsole.py = %{version}
|
2009-03-25 17:47:46 +00:00
|
|
|
%py_requires
|
2008-01-30 17:14:41 +00:00
|
|
|
|
|
|
|
%description plugins-python
|
2007-01-09 16:44:20 +00:00
|
|
|
The GIMP (GNU Image Manipulation Program) is a powerful image
|
|
|
|
composition and editing program, which can be extremely useful for
|
2007-10-25 13:28:28 +00:00
|
|
|
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
|
2009-07-31 17:21:15 +00:00
|
|
|
distribute.
|
2007-01-09 16:44:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
2009-12-18 12:46:05 +00:00
|
|
|
License: GPLv2+
|
2008-01-30 17:14:41 +00:00
|
|
|
Summary: The GNU Image Manipulation Program
|
2009-03-25 17:47:46 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: glib2-devel
|
|
|
|
Requires: gtk2-devel
|
2008-10-06 14:24:15 +00:00
|
|
|
Provides: gimp-2.0-devel = %{version}
|
|
|
|
Obsoletes: gimp-unstable-devel < 2.6.0
|
2007-10-25 13:28:28 +00:00
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
2009-02-19 17:45:00 +00:00
|
|
|
Obsoletes: gimp-doc <= 2.6.4
|
|
|
|
Provides: gimp-doc = 2.6.4
|
2007-01-09 16:44:20 +00:00
|
|
|
|
|
|
|
%description devel
|
2007-10-25 13:28:28 +00:00
|
|
|
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
|
2009-07-31 17:21:15 +00:00
|
|
|
distribute.
|
2007-01-09 16:44:20 +00:00
|
|
|
|
|
|
|
|
2009-07-31 17:21:15 +00:00
|
|
|
%package help-browser
|
2009-12-18 12:46:05 +00:00
|
|
|
License: GPLv2+
|
2009-07-31 17:21:15 +00:00
|
|
|
Summary: The GNU Image Manipulation Program - Help Browser
|
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Supplements: packageand(%{name}:gimp-help)
|
|
|
|
|
|
|
|
%description help-browser
|
|
|
|
This package contains the help browser for the GIMP.
|
2007-01-09 16:44:20 +00:00
|
|
|
|
|
|
|
|
2010-05-23 22:31:55 +00:00
|
|
|
%package module-hal
|
|
|
|
License: GPLv2+
|
|
|
|
Summary: The GNU Image Manipulation Program - module to detect input devices with HAL
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Supplements: packageand(%{name}:hal)
|
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
|
|
|
|
|
|
|
%description module-hal
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package provides a module to detect input devices with HAL.
|
|
|
|
|
2007-08-09 23:17:51 +00:00
|
|
|
%lang_package
|
2007-09-16 09:26:10 +00:00
|
|
|
%prep
|
2009-02-12 14:17:57 +00:00
|
|
|
%setup -q
|
2009-10-27 15:26:01 +00:00
|
|
|
translation-update-upstream
|
|
|
|
translation-update-upstream po-libgimp gimp20-libgimp
|
|
|
|
translation-update-upstream po-python gimp20-python
|
|
|
|
translation-update-upstream po-script-fu gimp20-script-fu
|
|
|
|
translation-update-upstream po-plug-ins gimp20-std-plug-ins
|
|
|
|
translation-update-upstream po-tips gimp20-tips
|
2009-08-27 22:30:42 +00:00
|
|
|
# Safety check for ABI version change.
|
|
|
|
vabi=`printf "%d" $(sed -n '/#define GIMP_MODULE_ABI_VERSION/{s/.* //;p}' libgimpmodule/gimpmodule.h)`
|
|
|
|
if test "x${vabi}" != "x%{abiver}"; then
|
|
|
|
: Error: Upstream ABI version is now ${vabi}, expecting %{abiver}.
|
|
|
|
: Update the apiver macro and rebuild.
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
# Safety check for API version change.
|
|
|
|
vapi=`sed -n '/#define GIMP_API_VERSION/{s/.* //;p}' libgimpbase/gimpversion.h | sed -e 's@"@@g'`
|
|
|
|
if test "x${vapi}" != "x%{apiver}"; then
|
|
|
|
: Error: Upstream API version is now ${vapi}, expecting %{apiver}.
|
|
|
|
: Update the apiver macro and rebuild.
|
|
|
|
exit 1
|
|
|
|
fi
|
2007-01-09 16:44:20 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
2009-01-22 00:56:41 +00:00
|
|
|
%configure --with-pic\
|
2008-01-30 17:14:41 +00:00
|
|
|
--disable-static\
|
2007-10-25 13:28:28 +00:00
|
|
|
--libexecdir=%{_prefix}/lib\
|
|
|
|
--enable-default-binary\
|
|
|
|
--enable-mp
|
|
|
|
make %{?jobs:-j%jobs}
|
2007-01-09 16:44:20 +00:00
|
|
|
|
|
|
|
%install
|
2007-10-25 13:28:28 +00:00
|
|
|
%makeinstall
|
2010-06-21 16:11:33 +00:00
|
|
|
install -D -m 0644 %{S:2} %{buildroot}%{_datadir}/gimp/2.0/palettes
|
2009-09-22 20:51:54 +00:00
|
|
|
%suse_update_desktop_file -N GIMP gimp
|
2008-10-06 14:24:15 +00:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/gimp/2.0/*/*.*a
|
2007-01-09 16:44:20 +00:00
|
|
|
%find_lang gimp20
|
|
|
|
%find_lang gimp20-libgimp gimp20.lang
|
2007-10-25 13:28:28 +00:00
|
|
|
%find_lang gimp20-python gimp20.lang
|
2007-01-09 16:44:20 +00:00
|
|
|
%find_lang gimp20-script-fu gimp20.lang
|
|
|
|
%find_lang gimp20-std-plug-ins gimp20.lang
|
2007-10-25 13:28:28 +00:00
|
|
|
%find_lang gimp20-tips gimp20.lang
|
2008-01-30 17:14:41 +00:00
|
|
|
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
|
2009-01-22 00:56:41 +00:00
|
|
|
rm %{buildroot}%{_libdir}/*.la
|
2009-08-27 22:30:42 +00:00
|
|
|
# Install the macros file:
|
|
|
|
install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
|
|
|
|
sed -e "s/@GIMP_APIVER@/%{apiver}/;s/@GIMP_ABIVER@/%{abiver}/" \
|
|
|
|
< $RPM_SOURCE_DIR/macros.gimp > macros.gimp
|
|
|
|
install -m 644 -c macros.gimp \
|
|
|
|
$RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.gimp
|
2007-01-09 16:44:20 +00:00
|
|
|
|
2007-10-25 13:28:28 +00:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-09 16:44:20 +00:00
|
|
|
|
2007-10-25 13:28:28 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-09 16:44:20 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2008-01-30 17:14:41 +00:00
|
|
|
%files -f plugins.list
|
2007-01-09 16:44:20 +00:00
|
|
|
%defattr(-,root,root)
|
2009-07-31 17:21:15 +00:00
|
|
|
%doc AUTHORS COPYING ChangeLog LICENSE NEWS* README
|
|
|
|
%exclude %{_libdir}/gimp/2.0/plug-ins/help-browser
|
2007-01-09 16:44:20 +00:00
|
|
|
%{_bindir}/gimp
|
|
|
|
%{_bindir}/gimp-*
|
|
|
|
%{_libdir}/*.so.*
|
2007-10-25 13:28:28 +00:00
|
|
|
%{_datadir}/applications/gimp.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*.svg
|
|
|
|
%{_datadir}/gimp
|
2008-03-27 20:52:15 +00:00
|
|
|
%exclude %{_datadir}/gimp/2.0/images/gimp-splash.png
|
2008-01-30 17:14:41 +00:00
|
|
|
%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
|
2010-05-23 22:31:55 +00:00
|
|
|
%exclude %{_libdir}/gimp/2.0/modules/libcontroller-linux-input.so
|
2008-01-30 17:14:41 +00:00
|
|
|
%dir %{_libdir}/gimp/2.0/plug-ins
|
2007-01-09 16:44:20 +00:00
|
|
|
%doc %{_mandir}/man?/*.*
|
2008-01-30 17:14:41 +00:00
|
|
|
%dir %{_sysconfdir}/gimp
|
|
|
|
%dir %{_sysconfdir}/gimp/2.0
|
|
|
|
%config %{_sysconfdir}/gimp/2.0/*rc
|
|
|
|
|
2009-07-31 17:21:15 +00:00
|
|
|
%files help-browser
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog LICENSE NEWS* README
|
|
|
|
%{_libdir}/gimp/2.0/plug-ins/help-browser
|
|
|
|
|
2008-03-27 20:52:15 +00:00
|
|
|
%files branding-upstream
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_datadir}/gimp/2.0/images/gimp-splash.png
|
|
|
|
|
2008-01-30 17:14:41 +00:00
|
|
|
%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
|
2007-01-09 16:44:20 +00:00
|
|
|
|
2010-05-23 22:31:55 +00:00
|
|
|
%files module-hal
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/gimp/2.0/modules/libcontroller-linux-input.so
|
|
|
|
|
2007-08-09 23:17:51 +00:00
|
|
|
%files lang -f gimp20.lang
|
|
|
|
|
2007-01-09 16:44:20 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2008-03-06 01:38:40 +00:00
|
|
|
%doc README.i18n
|
2007-01-09 16:44:20 +00:00
|
|
|
%{_bindir}/gimptool*
|
2007-10-25 13:28:28 +00:00
|
|
|
%{_datadir}/aclocal/*.m4
|
2007-01-09 16:44:20 +00:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2009-02-19 17:45:00 +00:00
|
|
|
# Own these repositories to not depend on gtk-doc while building:
|
|
|
|
%dir %{_datadir}/gtk-doc
|
|
|
|
%dir %{_datadir}/gtk-doc/html
|
2007-01-09 16:44:20 +00:00
|
|
|
%{_datadir}/gtk-doc/html/*
|
2009-08-27 22:30:42 +00:00
|
|
|
%config %{_sysconfdir}/rpm/macros.gimp
|
2007-12-07 19:09:53 +00:00
|
|
|
|
2007-03-01 19:37:10 +00:00
|
|
|
%changelog
|