2007-01-09 16:44:20 +00:00
|
|
|
#
|
2011-02-14 00:11:32 +00:00
|
|
|
# spec file for package gimp
|
2007-01-09 16:44:20 +00:00
|
|
|
#
|
2018-01-10 23:09:19 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2009-08-27 22:30:42 +00:00
|
|
|
%global abiver 4
|
|
|
|
%global apiver 2.0
|
2007-01-09 16:44:20 +00:00
|
|
|
Name: gimp
|
2018-07-05 21:07:51 +00:00
|
|
|
Version: 2.10.4
|
2012-09-15 15:27:15 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: The GNU Image Manipulation Program
|
2018-04-27 23:28:25 +00:00
|
|
|
License: GPL-3.0-or-later
|
2012-09-15 15:27:15 +00:00
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
2018-01-10 23:09:19 +00:00
|
|
|
URL: http://www.gimp.org/
|
2018-04-27 23:28:25 +00:00
|
|
|
Source: http://download.gimp.org/pub/gimp/v2.10/%{name}-%{version}.tar.bz2
|
2012-09-15 15:27:15 +00:00
|
|
|
Source1: macros.gimp
|
|
|
|
# openSUSE palette file
|
|
|
|
Source2: openSUSE.gpl
|
|
|
|
Source99: baselibs.conf
|
Accepting request 612930 from home:mrdocs:branches:graphics
- update to 2.10.2 bugfix release
- drop gimp-Fix-reference-to-gegl-0.3.patch
+ Core:
- Discard fonts which fail to load and popup an info dialog to allow
people debug their fonts.
- New API to suppress updates in UI until plug-ins are done
introducing changes.
- New API to calculate histograms in separate threads, with possible further
extension to handle similar cases elsewhere in GIMP.
- Tool options are now properly saved and reloaded per-device at
startup.
+ Plug-ins:
- New plug-in for importing and exporting HEIF images.
- Enable visibility of rasterized vector layer from PSD.
- Single-window screenshots in Windows fixed to correctly snap a
window even when it is partly off-screen or covered by another
window or when display scaling is not set to 100%.
+ Filters:
- New Spherize filter to wrap an image around a spherical cap
- New Recursive Transform filter to create Droste effect.
+ Usability:
- Warn users, when alpha-only painting has no effect. E.g. when target
drawable doesn't have an alpha channel, or the alpha channel is locked.
- Make the splash texts dynamic, so they are larger on larger splashes.
- Mention pressing Enter to complete Foreground selection in the status bar.
- Make sure that clicking outside any selection prevents Rectangle Select
and Ellipse Select tools from creating empty selections.
- Improve mouse wheel zooming behavior to keep the same point
centered under the pointer even if the image is completely visible
in the canvas.
- Add "View -> Center Image in Window" (Shift+J) as a quick way to
center the image at any zoom level.
+ Translations:
- Updated translations: Catalan, Danish, Dutch, French, German, Greek,
Hungarian, Icelandic, Italian, Latvian, Polish, Russian, Spanish,
Swedish, Ukrainian.
- New translation of Windows installer: Chinese (Taiwan)
+ Build:
- Add a --with-bug-report-url configure option allowing packagers to
set the address of their own bug tracker. This address will be the
one opened by the debug dialog for reporting bugs.
- Add a flatpak manifest for the gtk3-port branch.
- Remove the possibility to disable script-fu.
- Add a --with-icc-directory configure option to customize the color
profile directory. By default, it is set to the common path
/usr/share/color/icc.
+ Documentation:
- Updating the description of the XCF format "devel-docs/xcf.txt", for
third-party readers wishing to support GIMP 2.10 XCF files.
- Add documentation skeletons for all enums in libgimpbase/, there is
much room for improvement.
OBS-URL: https://build.opensuse.org/request/show/612930
OBS-URL: https://build.opensuse.org/package/show/graphics/gimp?expand=0&rev=28
2018-05-30 08:27:26 +00:00
|
|
|
|
2009-02-19 17:45:00 +00:00
|
|
|
BuildRequires: aalib-devel
|
2012-04-23 14:10:30 +00:00
|
|
|
BuildRequires: alsa-devel >= 1.0.0
|
|
|
|
BuildRequires: fdupes
|
2018-07-06 01:27:53 +00:00
|
|
|
BuildRequires: fontconfig-devel >= 2.12.4
|
2018-07-06 19:12:04 +00:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
BuildRequires: gcc7
|
|
|
|
BuildRequires: gcc7-c++
|
|
|
|
%else
|
2018-04-27 23:28:25 +00:00
|
|
|
BuildRequires: gcc-c++
|
2018-07-06 19:12:04 +00:00
|
|
|
%endif
|
2018-04-28 03:54:48 +00:00
|
|
|
BuildRequires: gdk-pixbuf-loader-rsvg
|
2018-04-27 23:28:25 +00:00
|
|
|
# For some odd reason build needs gegl executable.
|
|
|
|
BuildRequires: gegl
|
2012-04-23 14:10:30 +00:00
|
|
|
BuildRequires: ghostscript-devel
|
|
|
|
# Explicitly needed, otherwise ghostscript-mini is used during the
|
|
|
|
# build, and it's not enough for gimp.
|
|
|
|
BuildRequires: ghostscript-library
|
2018-04-27 23:28:25 +00:00
|
|
|
BuildRequires: glib-networking
|
2012-04-23 14:10:30 +00:00
|
|
|
BuildRequires: intltool >= 0.40.1
|
2009-02-19 17:45:00 +00:00
|
|
|
BuildRequires: iso-codes-devel
|
2012-04-23 14:10:30 +00:00
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
BuildRequires: libjasper-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
2009-02-19 17:45:00 +00:00
|
|
|
BuildRequires: libmng-devel
|
2018-07-06 01:27:53 +00:00
|
|
|
BuildRequires: librsvg-devel >= 2.40.6
|
2009-02-19 17:45:00 +00:00
|
|
|
BuildRequires: libtiff-devel
|
2017-02-03 21:07:28 +00:00
|
|
|
BuildRequires: libwmf-devel >= 0.2.8
|
2018-01-10 23:09:19 +00:00
|
|
|
BuildRequires: libxslt-tools
|
2017-02-03 21:07:28 +00:00
|
|
|
BuildRequires: pkgconfig
|
2012-04-23 14:10:30 +00:00
|
|
|
BuildRequires: python-gtk-devel >= 2.10.4
|
2009-10-27 15:26:01 +00:00
|
|
|
BuildRequires: translation-update-upstream
|
2009-02-19 17:45:00 +00:00
|
|
|
BuildRequires: update-desktop-files
|
2012-04-23 14:10:30 +00:00
|
|
|
BuildRequires: pkgconfig(atk) >= 2.2.0
|
2018-07-06 01:27:53 +00:00
|
|
|
BuildRequires: pkgconfig(babl) >= 0.1.52
|
2018-05-01 02:58:30 +00:00
|
|
|
BuildRequires: pkgconfig(cairo) >= 1.12.2
|
|
|
|
BuildRequires: pkgconfig(cairo-pdf) >= 1.12.2
|
2017-02-03 21:07:28 +00:00
|
|
|
BuildRequires: pkgconfig(dbus-glib-1) >= 0.70
|
2018-05-01 02:58:30 +00:00
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.30.8
|
2018-07-06 01:27:53 +00:00
|
|
|
BuildRequires: pkgconfig(gegl-0.4) >= 0.4.4
|
2018-04-27 23:28:25 +00:00
|
|
|
BuildRequires: pkgconfig(gexiv2) >= 0.10.6
|
2018-05-01 02:58:30 +00:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.54.2
|
2017-02-03 21:07:28 +00:00
|
|
|
BuildRequires: pkgconfig(gtk+-2.0) >= 2.24.10
|
2012-04-23 14:10:30 +00:00
|
|
|
BuildRequires: pkgconfig(gudev-1.0) >= 167
|
2018-05-01 02:58:30 +00:00
|
|
|
BuildRequires: pkgconfig(lcms2) >= 2.8
|
2017-02-03 21:07:28 +00:00
|
|
|
BuildRequires: pkgconfig(libexif) >= 0.6.15
|
2018-07-06 01:27:53 +00:00
|
|
|
# TODO: BuildRequires: pkgconfig(libheif) >= 1.1.0
|
2018-04-27 23:28:25 +00:00
|
|
|
BuildRequires: pkgconfig(liblzma) >= 5.0.0
|
|
|
|
BuildRequires: pkgconfig(libmypaint) >= 1.3.0
|
2018-07-06 01:27:53 +00:00
|
|
|
BuildRequires: pkgconfig(libopenjp2) >= 2.1.0
|
2018-05-01 02:58:30 +00:00
|
|
|
BuildRequires: pkgconfig(libpng) >= 1.6.25
|
2018-04-28 03:54:48 +00:00
|
|
|
BuildRequires: pkgconfig(libwebp) >= 0.6.0
|
2018-04-27 23:28:25 +00:00
|
|
|
BuildRequires: pkgconfig(mypaint-brushes-1.0)
|
2018-07-06 01:27:53 +00:00
|
|
|
BuildRequires: pkgconfig(OpenEXR) >= 1.6.1
|
2012-09-15 15:27:15 +00:00
|
|
|
BuildRequires: pkgconfig(pango) >= 1.29.4
|
2018-04-27 23:28:25 +00:00
|
|
|
BuildRequires: pkgconfig(poppler-data) >= 0.4.7
|
2018-07-06 01:27:53 +00:00
|
|
|
BuildRequires: pkgconfig(poppler-glib) >= 0.44.0
|
2012-04-23 14:10:30 +00:00
|
|
|
BuildRequires: pkgconfig(xcursor)
|
2017-02-03 21:07:28 +00:00
|
|
|
BuildRequires: pkgconfig(xfixes)
|
|
|
|
BuildRequires: pkgconfig(xpm)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2018-04-28 03:54:48 +00:00
|
|
|
BuildRequires: xdg-utils
|
2018-07-06 19:12:04 +00:00
|
|
|
# obs does not automaticaly add this
|
|
|
|
Requires: libglib-2_0-0 >= 2.54.2
|
|
|
|
Requires: libgexiv2-2 >= 0.10.6
|
|
|
|
Requires: libbabl-0_1-0 >= 0.1.46
|
2017-02-03 21:07:28 +00:00
|
|
|
# Explicitly declare the libgimp versions for upgrade purposes
|
|
|
|
Requires: libgimp-2_0-0 = %{version}
|
|
|
|
Requires: libgimpui-2_0-0 = %{version}
|
2018-04-28 03:54:48 +00:00
|
|
|
Requires: xdg-utils
|
2012-09-15 15:27:15 +00:00
|
|
|
Recommends: %{name}-lang
|
2011-10-25 13:54:01 +00:00
|
|
|
Recommends: %{name}-plugins-python = %{version}
|
2011-10-07 14:07:14 +00:00
|
|
|
Recommends: iso-codes
|
|
|
|
Suggests: AdobeICCProfiles
|
2011-10-25 13:54:01 +00:00
|
|
|
Suggests: gimp-2.0-scanner-plugin
|
2018-01-10 23:09:19 +00:00
|
|
|
Obsoletes: %{name}-help-browser
|
2011-10-07 14:07:14 +00:00
|
|
|
Provides: gimp-2.0 = %{version}
|
2012-04-23 14:10:30 +00:00
|
|
|
Provides: gimp(abi) = %{abiver}
|
|
|
|
Provides: gimp(api) = %{apiver}
|
2007-01-09 16:44:20 +00:00
|
|
|
|
|
|
|
%description
|
2017-02-08 04:46:16 +00:00
|
|
|
The GIMP is an image composition and editing program, which can be
|
|
|
|
used for creating logos and other graphics for Web pages. The GIMP
|
|
|
|
offers many tools and filters, and provides a large image
|
|
|
|
manipulation toolbox, including channel operations and layers,
|
|
|
|
effects, subpixel imaging and antialiasing, and conversions, together
|
|
|
|
with multilevel undo. The GIMP offers a scripting facility, but many
|
|
|
|
of the included scripts rely on fonts that we cannot distribute.
|
2008-01-30 17:14:41 +00:00
|
|
|
|
2010-12-20 13:40:59 +00:00
|
|
|
%package -n libgimp-2_0-0
|
|
|
|
Summary: The GNU Image Manipulation Program - Libraries
|
2013-09-23 12:56:09 +00:00
|
|
|
Group: System/Libraries
|
2018-07-06 01:27:53 +00:00
|
|
|
%requires_ge libbabl-0_1-0
|
|
|
|
%requires_ge libgegl-0_4-0
|
2010-12-20 13:40:59 +00:00
|
|
|
|
|
|
|
%description -n libgimp-2_0-0
|
2017-02-08 04:46:16 +00:00
|
|
|
The GIMP is an image composition and editing program. GIMP offers
|
|
|
|
many tools and filters, and provides a large image manipulation
|
|
|
|
toolbox and scripting.
|
2010-12-20 13:40:59 +00:00
|
|
|
|
|
|
|
This package provides GIMP libraries.
|
|
|
|
|
|
|
|
%package -n libgimpui-2_0-0
|
|
|
|
Summary: The GNU Image Manipulation Program - UI Libraries
|
2013-09-23 12:56:09 +00:00
|
|
|
Group: System/Libraries
|
2010-12-20 13:40:59 +00:00
|
|
|
|
|
|
|
%description -n libgimpui-2_0-0
|
2017-02-08 04:46:16 +00:00
|
|
|
The GIMP is an image composition and editing program. GIMP offers
|
|
|
|
many tools and filters, and provides a large image manipulation
|
|
|
|
toolbox and scripting.
|
2010-12-20 13:40:59 +00:00
|
|
|
|
|
|
|
This package provides GIMP UI libraries.
|
|
|
|
|
2008-01-30 17:14:41 +00:00
|
|
|
%package plugins-python
|
|
|
|
Summary: The GNU Image Manipulation Program - python-gtk based plugins
|
2012-02-03 09:22:22 +00:00
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
2012-04-23 14:10:30 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python-gtk
|
2008-01-30 17:14:41 +00:00
|
|
|
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
|
|
|
|
# For update from <= 10.3 and SLED 10:
|
|
|
|
Provides: %{name}:%{_libdir}/gimp/2.0/plug-ins/pyconsole.py = %{version}
|
2008-01-30 17:14:41 +00:00
|
|
|
|
|
|
|
%description plugins-python
|
2017-02-08 04:46:16 +00:00
|
|
|
The GIMP is an image composition and editing program. GIMP offers
|
|
|
|
many tools and filters, and provides a large image manipulation
|
|
|
|
toolbox and scripting.
|
2007-01-09 16:44:20 +00:00
|
|
|
|
2013-11-27 14:28:31 +00:00
|
|
|
%package plugin-aa
|
|
|
|
Summary: The GNU Image Manipulation Program -- ASCII-Art output plugin
|
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
# Let's trigger automatic installation if the user already has libaa installed.
|
|
|
|
Supplements: packageand(%{name}:libaa1)
|
|
|
|
|
|
|
|
%description plugin-aa
|
2017-02-08 04:46:16 +00:00
|
|
|
The GIMP is an image composition and editing program. GIMP offers
|
|
|
|
many tools and filters, and provides a large image manipulation
|
|
|
|
toolbox and scripting.
|
2013-11-27 14:28:31 +00:00
|
|
|
|
2007-01-09 16:44:20 +00:00
|
|
|
%package devel
|
2008-01-30 17:14:41 +00:00
|
|
|
Summary: The GNU Image Manipulation Program
|
2017-02-03 21:07:28 +00:00
|
|
|
Group: Development/Libraries/Other
|
2010-12-20 13:40:59 +00:00
|
|
|
Requires: libgimp-2_0-0 = %{version}
|
|
|
|
Requires: libgimpui-2_0-0 = %{version}
|
2008-10-06 14:24:15 +00:00
|
|
|
Provides: gimp-2.0-devel = %{version}
|
2009-02-19 17:45:00 +00:00
|
|
|
Provides: gimp-doc = 2.6.4
|
2012-04-23 14:10:30 +00:00
|
|
|
Obsoletes: gimp-doc < 2.6.4
|
|
|
|
Obsoletes: gimp-unstable-devel < 2.6.0
|
2007-01-09 16:44:20 +00:00
|
|
|
|
|
|
|
%description devel
|
2017-02-08 04:46:16 +00:00
|
|
|
The GIMP is an image composition and editing program. GIMP offers
|
|
|
|
many tools and filters, and provides a large image manipulation
|
|
|
|
toolbox and scripting.
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
applications that want to make use of the GIMP libraries.
|
2007-01-09 16:44:20 +00:00
|
|
|
|
2007-08-09 23:17:51 +00:00
|
|
|
%lang_package
|
2017-02-03 21:07:28 +00:00
|
|
|
|
2007-09-16 09:26:10 +00:00
|
|
|
%prep
|
2012-05-08 10:09:44 +00:00
|
|
|
%setup -q
|
Accepting request 612930 from home:mrdocs:branches:graphics
- update to 2.10.2 bugfix release
- drop gimp-Fix-reference-to-gegl-0.3.patch
+ Core:
- Discard fonts which fail to load and popup an info dialog to allow
people debug their fonts.
- New API to suppress updates in UI until plug-ins are done
introducing changes.
- New API to calculate histograms in separate threads, with possible further
extension to handle similar cases elsewhere in GIMP.
- Tool options are now properly saved and reloaded per-device at
startup.
+ Plug-ins:
- New plug-in for importing and exporting HEIF images.
- Enable visibility of rasterized vector layer from PSD.
- Single-window screenshots in Windows fixed to correctly snap a
window even when it is partly off-screen or covered by another
window or when display scaling is not set to 100%.
+ Filters:
- New Spherize filter to wrap an image around a spherical cap
- New Recursive Transform filter to create Droste effect.
+ Usability:
- Warn users, when alpha-only painting has no effect. E.g. when target
drawable doesn't have an alpha channel, or the alpha channel is locked.
- Make the splash texts dynamic, so they are larger on larger splashes.
- Mention pressing Enter to complete Foreground selection in the status bar.
- Make sure that clicking outside any selection prevents Rectangle Select
and Ellipse Select tools from creating empty selections.
- Improve mouse wheel zooming behavior to keep the same point
centered under the pointer even if the image is completely visible
in the canvas.
- Add "View -> Center Image in Window" (Shift+J) as a quick way to
center the image at any zoom level.
+ Translations:
- Updated translations: Catalan, Danish, Dutch, French, German, Greek,
Hungarian, Icelandic, Italian, Latvian, Polish, Russian, Spanish,
Swedish, Ukrainian.
- New translation of Windows installer: Chinese (Taiwan)
+ Build:
- Add a --with-bug-report-url configure option allowing packagers to
set the address of their own bug tracker. This address will be the
one opened by the debug dialog for reporting bugs.
- Add a flatpak manifest for the gtk3-port branch.
- Remove the possibility to disable script-fu.
- Add a --with-icc-directory configure option to customize the color
profile directory. By default, it is set to the common path
/usr/share/color/icc.
+ Documentation:
- Updating the description of the XCF format "devel-docs/xcf.txt", for
third-party readers wishing to support GIMP 2.10 XCF files.
- Add documentation skeletons for all enums in libgimpbase/, there is
much room for improvement.
OBS-URL: https://build.opensuse.org/request/show/612930
OBS-URL: https://build.opensuse.org/package/show/graphics/gimp?expand=0&rev=28
2018-05-30 08:27:26 +00:00
|
|
|
|
2018-04-28 03:54:48 +00:00
|
|
|
export LC_ALL=en_US.UTF-8
|
|
|
|
export LANG=en_US.UTF-8
|
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
|
2018-07-06 19:12:04 +00:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
test -x "$(type -p %{_bindir}/gcc-7)" && export CC="%{_bindir}/gcc-7"
|
|
|
|
test -x "$(type -p %{_bindir}/g++-7)" && export CXX="%{_bindir}/g++-7"
|
|
|
|
%endif
|
2018-04-28 03:54:48 +00:00
|
|
|
export LC_ALL=en_US.UTF-8
|
|
|
|
export LANG=en_US.UTF-8
|
2012-09-15 15:27:15 +00:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
2017-02-08 04:46:16 +00:00
|
|
|
%configure \
|
2018-04-28 03:54:48 +00:00
|
|
|
--disable-silent-rules \
|
2008-01-30 17:14:41 +00:00
|
|
|
--disable-static\
|
2017-02-03 21:07:28 +00:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
--without-webkit\
|
2018-01-10 23:09:19 +00:00
|
|
|
--with-lcms=lcms2\
|
2017-02-03 21:07:28 +00:00
|
|
|
%endif
|
2007-10-25 13:28:28 +00:00
|
|
|
--libexecdir=%{_prefix}/lib\
|
|
|
|
--enable-default-binary\
|
|
|
|
--enable-mp
|
2017-02-03 21:07:28 +00:00
|
|
|
|
2012-09-15 15:27:15 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-09 16:44:20 +00:00
|
|
|
|
|
|
|
%install
|
2012-09-15 15:27:15 +00:00
|
|
|
%make_install
|
|
|
|
install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/gimp/2.0/palettes
|
2009-09-22 20:51:54 +00:00
|
|
|
%suse_update_desktop_file -N GIMP gimp
|
2012-09-15 15:27:15 +00:00
|
|
|
rm %{buildroot}%{_libdir}/gimp/2.0/*/*.*a
|
2011-02-14 00:11:26 +00:00
|
|
|
%find_lang gimp20 %{?no_lang_C}
|
|
|
|
%find_lang gimp20-libgimp %{?no_lang_C} gimp20.lang
|
|
|
|
%find_lang gimp20-python %{?no_lang_C} gimp20.lang
|
|
|
|
%find_lang gimp20-script-fu %{?no_lang_C} gimp20.lang
|
|
|
|
%find_lang gimp20-std-plug-ins %{?no_lang_C} gimp20.lang
|
|
|
|
%find_lang gimp20-tips %{?no_lang_C} gimp20.lang
|
2008-01-30 17:14:41 +00:00
|
|
|
echo "%%defattr(-,root,root)" >plugins.list
|
|
|
|
echo "%%defattr(-,root,root)" >plugins-python.list
|
2012-09-15 15:27:15 +00:00
|
|
|
for PLUGIN in %{buildroot}%{_libdir}/gimp/2.0/plug-ins/* ; do
|
2008-01-30 17:14:41 +00:00
|
|
|
if grep -q '^#!.*python' $PLUGIN ; then
|
2012-09-15 15:27:15 +00:00
|
|
|
echo "${PLUGIN#%{buildroot}}" >>plugins-python.list
|
2008-01-30 17:14:41 +00:00
|
|
|
else
|
2012-09-15 15:27:15 +00:00
|
|
|
echo "${PLUGIN#%{buildroot}}" >>plugins.list
|
2008-01-30 17:14:41 +00:00
|
|
|
fi
|
|
|
|
done
|
2017-02-03 21:07:28 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2009-08-27 22:30:42 +00:00
|
|
|
# Install the macros file:
|
2012-09-15 15:27:15 +00:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/rpm
|
2009-08-27 22:30:42 +00:00
|
|
|
sed -e "s/@GIMP_APIVER@/%{apiver}/;s/@GIMP_ABIVER@/%{abiver}/" \
|
|
|
|
< $RPM_SOURCE_DIR/macros.gimp > macros.gimp
|
|
|
|
install -m 644 -c macros.gimp \
|
2012-09-15 15:27:15 +00:00
|
|
|
%{buildroot}%{_sysconfdir}/rpm/macros.gimp
|
2012-04-23 14:10:30 +00:00
|
|
|
%fdupes %{buildroot}%{_datadir}/gtk-doc/
|
|
|
|
%fdupes %{buildroot}%{_libdir}/gimp/2.0/python/
|
2012-05-08 10:09:44 +00:00
|
|
|
%fdupes %{buildroot}%{_datadir}/gimp/2.0/
|
2007-01-09 16:44:20 +00:00
|
|
|
|
2011-02-14 00:11:26 +00:00
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%endif
|
|
|
|
|
2010-12-20 13:40:59 +00:00
|
|
|
%post -n libgimp-2_0-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libgimp-2_0-0 -p /sbin/ldconfig
|
|
|
|
%post -n libgimpui-2_0-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libgimpui-2_0-0 -p /sbin/ldconfig
|
2007-01-09 16:44:20 +00:00
|
|
|
|
2008-01-30 17:14:41 +00:00
|
|
|
%files -f plugins.list
|
2018-04-27 23:28:25 +00:00
|
|
|
%license COPYING LICENSE
|
|
|
|
%doc AUTHORS ChangeLog NEWS* README
|
2007-01-09 16:44:20 +00:00
|
|
|
%{_bindir}/gimp
|
2018-04-27 23:28:25 +00:00
|
|
|
%{_bindir}/gimp-2.*
|
2010-12-20 13:40:59 +00:00
|
|
|
%{_bindir}/gimp-console
|
2018-04-27 23:28:25 +00:00
|
|
|
%{_bindir}/gimp-console-2.*
|
2018-07-05 21:07:51 +00:00
|
|
|
# should this maybe be in _libexecdir too?
|
|
|
|
%{_bindir}/gimp-test-clipboard-2.0
|
2018-04-27 23:28:25 +00:00
|
|
|
%{_libexecdir}/gimp-debug-tool-2.0
|
|
|
|
%dir %{_datadir}/metainfo
|
|
|
|
%{_datadir}/metainfo/gimp-data-extras.metainfo.xml
|
|
|
|
%{_datadir}/metainfo/org.gimp.GIMP.appdata.xml
|
2007-10-25 13:28:28 +00:00
|
|
|
%{_datadir}/applications/gimp.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
2011-01-10 10:09:10 +00:00
|
|
|
%{_datadir}/gimp/
|
2013-08-27 18:42:47 +00:00
|
|
|
%{_datadir}/gimp/2.0/images/gimp-splash.png
|
2008-01-30 17:14:41 +00:00
|
|
|
%{_libdir}/gimp/2.0/environ/default.env
|
|
|
|
%{_libdir}/gimp/2.0/interpreters/default.interp
|
2012-04-23 14:10:30 +00:00
|
|
|
# Explicitly list modules so we don't lose one by accident
|
|
|
|
%{_libdir}/gimp/2.0/modules/libcolor-selector-cmyk.so
|
|
|
|
%{_libdir}/gimp/2.0/modules/libcolor-selector-water.so
|
|
|
|
%{_libdir}/gimp/2.0/modules/libcolor-selector-wheel.so
|
|
|
|
%{_libdir}/gimp/2.0/modules/libcontroller-linux-input.so
|
|
|
|
%{_libdir}/gimp/2.0/modules/libcontroller-midi.so
|
|
|
|
%{_libdir}/gimp/2.0/modules/libdisplay-filter-color-blind.so
|
|
|
|
%{_libdir}/gimp/2.0/modules/libdisplay-filter-gamma.so
|
|
|
|
%{_libdir}/gimp/2.0/modules/libdisplay-filter-high-contrast.so
|
2018-04-27 23:28:25 +00:00
|
|
|
%{_libdir}/gimp/2.0/modules/libdisplay-filter-clip-warning.so
|
|
|
|
%{_mandir}/man?/gimp.*
|
|
|
|
%{_mandir}/man?/gimp-2.*
|
|
|
|
%{_mandir}/man?/gimp-console.*
|
|
|
|
%{_mandir}/man?/gimp-console-2.*
|
|
|
|
%{_mandir}/man?/gimprc.*
|
|
|
|
%{_mandir}/man?/gimprc-2.*
|
|
|
|
%{_mandir}/man?/gimptool-2.*
|
2008-01-30 17:14:41 +00:00
|
|
|
%dir %{_sysconfdir}/gimp
|
|
|
|
%dir %{_sysconfdir}/gimp/2.0
|
|
|
|
%config %{_sysconfdir}/gimp/2.0/*rc
|
2013-11-27 14:28:31 +00:00
|
|
|
# split file-aa into own package (bnc#851509
|
|
|
|
%exclude %{_libdir}/gimp/2.0/plug-ins/file-aa
|
|
|
|
|
|
|
|
%files plugin-aa
|
|
|
|
%{_libdir}/gimp/2.0/plug-ins/file-aa
|
2008-01-30 17:14:41 +00:00
|
|
|
|
2010-12-20 13:40:59 +00:00
|
|
|
%files -n libgimp-2_0-0
|
2011-01-10 10:09:10 +00:00
|
|
|
%dir %{_datadir}/gimp
|
|
|
|
%dir %{_datadir}/gimp/2.0
|
|
|
|
%dir %{_libdir}/gimp
|
|
|
|
%dir %{_libdir}/gimp/2.0
|
|
|
|
%dir %{_libdir}/gimp/2.0/environ
|
|
|
|
%dir %{_libdir}/gimp/2.0/interpreters
|
|
|
|
%dir %{_libdir}/gimp/2.0/modules
|
|
|
|
%dir %{_libdir}/gimp/2.0/plug-ins
|
2010-12-20 13:40:59 +00:00
|
|
|
%{_libdir}/libgimp-2.0.so.*
|
|
|
|
%{_libdir}/libgimpbase-2.0.so.*
|
|
|
|
%{_libdir}/libgimpcolor-2.0.so.*
|
|
|
|
%{_libdir}/libgimpconfig-2.0.so.*
|
|
|
|
%{_libdir}/libgimpmath-2.0.so.*
|
|
|
|
%{_libdir}/libgimpmodule-2.0.so.*
|
|
|
|
|
|
|
|
%files -n libgimpui-2_0-0
|
|
|
|
%{_libdir}/libgimpthumb-2.0.so.*
|
|
|
|
%{_libdir}/libgimpui-2.0.so.*
|
|
|
|
%{_libdir}/libgimpwidgets-2.0.so.*
|
|
|
|
|
2008-01-30 17:14:41 +00:00
|
|
|
%files plugins-python -f plugins-python.list
|
|
|
|
%{_libdir}/gimp/2.0/environ/pygimp.env
|
|
|
|
%{_libdir}/gimp/2.0/interpreters/pygimp.interp
|
2011-01-10 10:09:10 +00:00
|
|
|
%{_libdir}/gimp/2.0/python/
|
2008-01-30 17:14:41 +00:00
|
|
|
# FIXME: Maybe split gimp-lang and gimp-plugins-python-lang
|
2007-01-09 16:44:20 +00:00
|
|
|
|
2007-08-09 23:17:51 +00:00
|
|
|
%files lang -f gimp20.lang
|
|
|
|
|
2007-01-09 16:44:20 +00:00
|
|
|
%files devel
|
2008-03-06 01:38:40 +00:00
|
|
|
%doc README.i18n
|
2010-12-20 13:40:59 +00:00
|
|
|
%{_bindir}/gimptool-2.0
|
2018-04-27 23:28:25 +00:00
|
|
|
#{_mandir}/man?/gimptool-2.0%{?ext_man}
|
2012-04-23 14:10:30 +00:00
|
|
|
%{_includedir}/gimp-2.0/
|
2007-01-09 16:44:20 +00:00
|
|
|
%{_libdir}/*.so
|
2012-04-23 14:10:30 +00:00
|
|
|
%{_datadir}/aclocal/gimp-2.0.m4
|
|
|
|
%{_libdir}/pkgconfig/gimp-2.0.pc
|
|
|
|
%{_libdir}/pkgconfig/gimpthumb-2.0.pc
|
|
|
|
%{_libdir}/pkgconfig/gimpui-2.0.pc
|
2009-02-19 17:45:00 +00:00
|
|
|
# Own these repositories to not depend on gtk-doc while building:
|
|
|
|
%dir %{_datadir}/gtk-doc
|
2012-09-15 15:27:15 +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
|