2008-09-22 16:17:16 +02:00
#
2011-05-06 09:44:50 +02:00
# spec file for package gegl
2008-09-22 16:17:16 +02:00
#
2018-01-16 15:36:37 +01:00
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
2008-09-22 16:17:16 +02: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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2012-04-03 13:44:17 +02:00
2014-10-27 04:35:20 +01:00
%define debug_package_requires libgegl-0_2-0 = %{version}-%{release}
2008-09-22 16:17:16 +02:00
Name : gegl
2014-10-27 04:35:20 +01:00
Version : 0.2.0
Release : 0
Summary : Generic Graphics Library
2018-03-06 23:32:16 +01:00
License : GPL-3.0-or-later AND LGPL-3.0-or-later
2018-03-08 17:05:37 +01:00
Group : Productivity/Graphics/Other
Url : http://gegl.org/
2014-10-27 04:35:20 +01:00
Source : http://ftp.gtk.org/pub/gegl/0.2/%{name} -%{version} .tar.bz2
# PATCH-FIX-UPSTREAM gegl-lua52.patch bgo#667675 vuntz@opensuse.org -- Fix build with lua 5.2
Patch0 : gegl-lua52.patch
# PATCH-FIX-UPSTREAM gegl-ruby19.patch dimstar@opensuse.org -- Fix build with ruby 1.9
Patch1 : gegl-ruby19.patch
2008-09-22 16:17:16 +02:00
# Patched code is built by default.
# Use rpmbuild -D 'BUILD_ORIG 1' to build original code.
# Use rpmbuild -D 'BUILD_ORIG 1' -D 'BUILD_ORIG_ADDON 1' to build patched build plus original as addon.
2014-10-27 04:35:20 +01:00
# PATCH-FIX-UPSTREAM sutesparse changed UF_long for SuiteSparse_long
Patch2 : gegl-UF_long.patch
2016-01-26 15:12:07 +01:00
# PATCH-FIX-UPSTREAM gegl-0.2.0-linker-flags.patch idoenmez@suse.de -- Add -lm to linker flags
Patch3 : gegl-0.2.0-linker-flags.patch
2017-03-06 16:30:32 +01:00
# PATCH-FIX-SECURITY gegl-0.2.0-CVE-2012-4433.patch bsc789835 CVE-2012-4433 zaitor@opensuse.org -- Fix buffer overflow in and add plausibility checks to ppm-load op
2017-02-06 00:40:17 +01:00
Patch4 : gegl-0.2.0-CVE-2012-4433.patch
2012-01-11 11:37:55 +01:00
BuildRequires : ImageMagick
BuildRequires : OpenEXR-devel
BuildRequires : SDL-devel
BuildRequires : asciidoc
2012-04-03 13:44:17 +02:00
BuildRequires : babl-devel >= 0.1.10
2012-01-11 11:37:55 +01:00
BuildRequires : enscript
BuildRequires : gcc-c++
2014-10-27 04:35:20 +01:00
# multiple provides by gd and gd-tools
BuildRequires : gd
2012-04-03 13:44:17 +02:00
BuildRequires : glib2-devel >= 2.16.1
2012-01-11 11:37:55 +01:00
BuildRequires : graphviz-gd
2014-10-27 04:35:20 +01:00
# Only for directory ownership:
BuildRequires : gtk-doc
2012-01-11 11:37:55 +01:00
BuildRequires : gtk2-devel
2012-04-03 13:44:17 +02:00
BuildRequires : intltool
BuildRequires : lensfun-devel
2012-05-18 13:36:55 +02:00
# Needed to build the doc, as Bitstream Vera Sans is the referenced font.
2018-01-24 14:11:00 +01:00
BuildRequires : liberation-fonts
2012-04-03 13:44:17 +02:00
BuildRequires : libexiv2-devel
BuildRequires : libjasper-devel >= 1.900.1
2012-01-11 11:37:55 +01:00
BuildRequires : libjpeg-devel
2012-04-03 13:44:17 +02:00
BuildRequires : libopenraw-devel >= 0.0.5
2012-01-11 11:37:55 +01:00
BuildRequires : libpng-devel
BuildRequires : librsvg-devel
2012-04-03 13:44:17 +02:00
BuildRequires : libspiro-devel
2012-01-11 11:37:55 +01:00
BuildRequires : libstdc++-devel
BuildRequires : lua-devel
2012-04-03 13:44:17 +02:00
BuildRequires : ruby
# For umfpack
BuildRequires : suitesparse-devel
2008-09-22 16:17:16 +02:00
%if 0%{?BUILD_ORIG}
2016-04-18 09:00:59 +02:00
BuildRequires : pkgconfig(libavcodec)
BuildRequires : pkgconfig(libavformat)
BuildRequires : pkgconfig(libswscale)
2008-09-22 16:17:16 +02:00
%if 0%{?BUILD_ORIG_ADDON}
Provides : patched_subset
%else
Provides : %{name} -orig-addon = %{version}
Obsoletes : %{name} -orig-addon
%endif
%else
Provides : patched_subset
%endif
%description
2018-03-08 17:05:37 +01:00
GEGL provides infrastructure to do demand-based cached non-destructive
image editing on larger than RAM buffers. Through babl, it provides
2008-09-22 16:17:16 +02:00
support for a wide range of color models and pixel storage formats for
input and output.
2012-04-03 13:44:17 +02:00
%package 0_2
2008-09-22 16:17:16 +02:00
Summary : Generic Graphics Library
Group : System/Libraries
2012-04-03 13:44:17 +02:00
Recommends: %{name} -0_2-lang
2008-09-22 16:17:16 +02:00
2012-04-03 13:44:17 +02:00
%description 0_2
2018-03-08 17:05:37 +01:00
GEGL provides infrastructure to do demand-based cached non-destructive
image editing on larger than RAM buffers. Through babl, it provides
2008-09-22 16:17:16 +02:00
support for a wide range of color models and pixel storage formats for
input and output.
2012-04-03 13:44:17 +02:00
%package 0_2-orig-addon
2008-09-22 16:17:16 +02:00
Summary : Generic Graphics Library
Group : System/Libraries
2012-04-03 13:44:17 +02:00
Supplements: packageand(%{name} -0_2:%(cd %{_libdir} ; rpm -qf --queryformat=%%{NAME} `readlink %{_libdir} /libavcodec.so` ))
2008-09-22 16:17:16 +02:00
2012-04-03 13:44:17 +02:00
%description 0_2-orig-addon
2018-03-08 17:05:37 +01:00
GEGL provides infrastructure to do demand-based cached non-destructive
image editing on larger than RAM buffers. Through babl, it provides
2008-09-22 16:17:16 +02:00
support for a wide range of color models and pixel storage formats for
input and output.
2012-04-03 13:44:17 +02:00
%package -n libgegl-0_2-0
2008-09-22 16:17:16 +02:00
Summary : Generic Graphics Library
Group : System/Libraries
2012-04-03 13:44:17 +02:00
Recommends: %{name} -0_2 >= %{version}
2008-09-22 16:17:16 +02:00
2012-04-03 13:44:17 +02:00
%description -n libgegl-0_2-0
2018-03-08 17:05:37 +01:00
GEGL provides infrastructure to do demand-based cached non-destructive
image editing on larger than RAM buffers. Through babl, it provides
2008-09-22 16:17:16 +02:00
support for a wide range of color models and pixel storage formats for
input and output.
%package devel
2018-03-08 17:05:37 +01:00
Summary : Development files for GEGL, the " G e n e r i c G r a p h i c s L i b r a r y "
Group : Development/Libraries/C and C++
2012-04-03 13:44:17 +02:00
Requires : babl-devel
Requires : glib2-devel
Requires : glibc-devel
Requires : libgegl-0_2-0 = %{version}
Requires : pcre-devel
2008-09-22 16:17:16 +02:00
%description devel
2018-03-08 17:05:37 +01:00
GEGL provides infrastructure to do demand-based cached non-destructive
image editing on larger than RAM buffers. Through babl, it provides
2008-09-22 16:17:16 +02:00
support for a wide range of color models and pixel storage formats for
input and output.
2018-03-08 17:05:37 +01:00
This subpackage contains the C headers for the GEGL API.
2008-09-22 16:17:16 +02:00
%package doc
2018-03-08 17:05:37 +01:00
Summary : Documentation for GEGL, the " G e n e r i c G r a p h i c s L i b r a r y "
Group : Documentation/HTML
2008-09-22 16:17:16 +02:00
%description doc
2018-03-08 17:05:37 +01:00
GEGL provides infrastructure to do demand-based cached non-destructive
image editing on larger than RAM buffers. Through babl, it provides
2008-09-22 16:17:16 +02:00
support for a wide range of color models and pixel storage formats for
input and output.
2018-03-08 17:05:37 +01:00
This subpackage contains the documentation for GEGL.
2012-04-03 13:44:17 +02:00
%lang_package -n %{name} -0_2
2014-10-27 04:35:20 +01:00
2008-09-22 16:17:16 +02:00
%prep
%setup -q
2012-01-11 11:37:55 +01:00
%patch0 -p1
2012-05-18 13:36:55 +02:00
%patch1 -p1
2014-10-27 04:35:20 +01:00
%if 0%{?suse_version} > 1310
%patch2 -p1
%endif
2016-01-26 15:12:07 +01:00
%patch3 -p1
2011-06-20 11:50:39 +02:00
# docs-build-fix.diff
2017-02-06 00:40:17 +01:00
%patch4 -p1
2008-09-22 16:17:16 +02:00
%build
2014-10-27 04:35:20 +01:00
export RPM_OPT_FLAGS=" %{optflags} - f n o - s t r i c t - a l i a s i n g "
## do not use autogen.sh, it intentionally fails, if there is no ruby.
2011-06-20 11:50:39 +02:00
## so why use autogen, when you do not want portability?
# ./autogen.sh
2008-09-22 16:17:16 +02:00
%configure \
2009-02-06 23:39:50 +01:00
--enable-workshop=yes\
2011-09-16 15:26:57 +02:00
--disable-static --disable-silent-rules
2014-10-27 04:35:20 +01:00
make %{?_smp_mflags}
2008-09-22 16:17:16 +02:00
%install
2018-03-06 23:32:16 +01:00
%make_install
2008-09-22 16:17:16 +02:00
%if ! 0%{?BUILD_ORIG}
for MODULE in \
2012-04-03 13:44:17 +02:00
%{_libdir} /gegl-0.2/ff-load.so \
2008-09-22 16:17:16 +02:00
; do
2014-10-27 04:35:20 +01:00
rm -f %{buildroot} $MODULE
2008-09-22 16:17:16 +02:00
done
%endif
2009-06-12 18:14:50 +02:00
find %{buildroot} -type f -name " * . l a " -delete -print
2012-04-03 13:44:17 +02:00
%find_lang %{name} -0.2 %{?no_lang_C}
2008-09-22 16:17:16 +02:00
2012-04-03 13:44:17 +02:00
%post -n libgegl-0_2-0 -p /sbin/ldconfig
%postun -n libgegl-0_2-0 -p /sbin/ldconfig
2008-09-22 16:17:16 +02:00
%files
2012-04-03 13:44:17 +02:00
%{_bindir} /gegl
2008-09-22 16:17:16 +02:00
2012-04-03 13:44:17 +02:00
%files 0_2
%dir %{_libdir} /gegl-0.2/
%{_libdir} /gegl-0.2/*.so
2008-09-22 16:17:16 +02:00
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}
2012-04-03 13:44:17 +02:00
%exclude %{_libdir} /gegl-0.2/ff-load.so
2008-09-22 16:17:16 +02:00
2012-04-03 13:44:17 +02:00
%files 0_2-orig-addon
%{_libdir} /gegl-0.2/ff-load.so
2008-09-22 16:17:16 +02:00
%endif
%endif
2012-04-03 13:44:17 +02:00
%files -n libgegl-0_2-0
2018-03-06 23:32:16 +01:00
%license COPYING
%doc AUTHORS ChangeLog NEWS README
2012-04-03 13:44:17 +02:00
%{_libdir} /libgegl-0.2.so.*
2008-09-22 16:17:16 +02:00
%files devel
2012-04-03 13:44:17 +02:00
%{_includedir} /gegl-0.2/
%{_libdir} /libgegl-0.2.so
%{_libdir} /pkgconfig/gegl-0.2.pc
2008-09-22 16:17:16 +02:00
%files doc
2012-04-03 13:44:17 +02:00
%doc %{_datadir} /gtk-doc/html/gegl/
%files -n %{name}-0_2-lang -f %{name}-0.2.lang
2008-09-22 16:17:16 +02:00
%changelog