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
|
|
|
#
|
2016-01-26 15:12:07 +01:00
|
|
|
# Copyright (c) 2016 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
|
|
|
|
License: GPL-3.0+ and LGPL-3.0+
|
|
|
|
Group: System/Libraries
|
|
|
|
Url: http://gegl.org/
|
|
|
|
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
|
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.
|
|
|
|
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
|
2014-10-27 04:35:20 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2011-05-28 09:28:41 +02:00
|
|
|
GEGL provides infrastructure to do demand based cached non destructive
|
2008-09-22 16:17:16 +02:00
|
|
|
image editing on larger than RAM buffers. Through babl it provides
|
|
|
|
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
|
2011-05-28 09:28:41 +02:00
|
|
|
GEGL provides infrastructure to do demand based cached non destructive
|
2008-09-22 16:17:16 +02:00
|
|
|
image editing on larger than RAM buffers. Through babl it provides
|
|
|
|
support for a wide range of color models and pixel storage formats for
|
|
|
|
input and output.
|
|
|
|
|
|
|
|
%if 0%{?BUILD_ORIG}
|
|
|
|
%if 0%{?BUILD_ORIG_ADDON}
|
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
|
2011-05-28 09:28:41 +02:00
|
|
|
GEGL provides infrastructure to do demand based cached non destructive
|
2008-09-22 16:17:16 +02:00
|
|
|
image editing on larger than RAM buffers. Through babl it provides
|
|
|
|
support for a wide range of color models and pixel storage formats for
|
|
|
|
input and output.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
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
|
2011-05-28 09:28:41 +02:00
|
|
|
GEGL provides infrastructure to do demand based cached non destructive
|
2008-09-22 16:17:16 +02:00
|
|
|
image editing on larger than RAM buffers. Through babl it provides
|
|
|
|
support for a wide range of color models and pixel storage formats for
|
|
|
|
input and output.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Generic Graphics Library
|
|
|
|
Group: System/Libraries
|
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
|
|
|
|
GEGL provides infratructure to do demand based cached non destructive
|
|
|
|
image editing on larger than RAM buffers. Through babl it provides
|
|
|
|
support for a wide range of color models and pixel storage formats for
|
|
|
|
input and output.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Generic Graphics Library
|
|
|
|
Group: System/Libraries
|
2012-04-03 13:44:17 +02:00
|
|
|
Requires: libgegl-0_2-0 = %{version}
|
2008-09-22 16:17:16 +02:00
|
|
|
|
|
|
|
%description doc
|
2011-05-28 09:28:41 +02:00
|
|
|
GEGL provides infrastructure to do demand based cached non destructive
|
2008-09-22 16:17:16 +02:00
|
|
|
image editing on larger than RAM buffers. Through babl it provides
|
|
|
|
support for a wide range of color models and pixel storage formats for
|
|
|
|
input and output.
|
|
|
|
|
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
|
2008-09-22 16:17:16 +02:00
|
|
|
|
|
|
|
%build
|
2014-10-27 04:35:20 +01:00
|
|
|
export RPM_OPT_FLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
## 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
|
2014-10-27 04:35:20 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
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 "*.la" -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
|
2008-09-22 16:17:16 +02:00
|
|
|
|
2012-04-03 13:44:17 +02:00
|
|
|
%postun -n libgegl-0_2-0 -p /sbin/ldconfig
|
2008-09-22 16:17:16 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
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
|
2008-09-22 16:17:16 +02:00
|
|
|
%defattr(-,root,root)
|
2012-04-03 13:44:17 +02:00
|
|
|
%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
|
2008-09-22 16:17:16 +02:00
|
|
|
%defattr(-,root,root)
|
2012-04-03 13:44:17 +02:00
|
|
|
%{_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
|
2008-09-22 16:17:16 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING COPYING.LESSER 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
|
|
|
|
%defattr(-,root,root)
|
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
|
|
|
|
%defattr(-,root,root)
|
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
|
2014-10-27 04:35:20 +01:00
|
|
|
%defattr(-,root,root)
|
2008-09-22 16:17:16 +02:00
|
|
|
|
|
|
|
%changelog
|