Accepting request 587684 from home:iznogood:branches:graphics
- Update to version 0.3.28: + New stable branch, long packaged as gegl-unstable in openSUSE, changes far to many to list, please see NEWS packaged in docs sub-package. - Lots of BuildRequires, Requires and sub-package changes. - Drop upstream fixed patches: + gegl-UF_long.patch. + gegl-lua52.patch. + gegl-0.2.0-CVE-2012-4433.patch. + gegl-ruby19.patch. + gegl-0.2.0-linker-flags.patch OBS-URL: https://build.opensuse.org/request/show/587684 OBS-URL: https://build.opensuse.org/package/show/graphics/gegl?expand=0&rev=48
This commit is contained in:
committed by
Git OBS Bridge
parent
ccb1066c50
commit
bb26fb31ac
220
gegl.spec
220
gegl.spec
@@ -16,206 +16,184 @@
|
||||
#
|
||||
|
||||
|
||||
%define debug_package_requires libgegl-0_2-0 = %{version}-%{release}
|
||||
Name: gegl
|
||||
Version: 0.2.0
|
||||
Version: 0.3.28
|
||||
Release: 0
|
||||
Summary: Generic Graphics Library
|
||||
License: GPL-3.0-or-later AND LGPL-3.0-or-later
|
||||
Group: Productivity/Graphics/Other
|
||||
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
|
||||
# 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.
|
||||
# PATCH-FIX-UPSTREAM sutesparse changed UF_long for SuiteSparse_long
|
||||
Patch2: gegl-UF_long.patch
|
||||
# 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
|
||||
# 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
|
||||
Patch4: gegl-0.2.0-CVE-2012-4433.patch
|
||||
URL: http://gegl.org/
|
||||
Source0: https://download.gimp.org/pub/gegl/0.3/%{name}-%{version}.tar.bz2
|
||||
|
||||
BuildRequires: ImageMagick
|
||||
BuildRequires: OpenEXR-devel
|
||||
BuildRequires: SDL-devel
|
||||
BuildRequires: asciidoc
|
||||
BuildRequires: babl-devel >= 0.1.10
|
||||
BuildRequires: enscript
|
||||
BuildRequires: gcc-c++
|
||||
# multiple provides by gd and gd-tools
|
||||
BuildRequires: gd
|
||||
BuildRequires: glib2-devel >= 2.16.1
|
||||
BuildRequires: gobject-introspection-devel >= 1.32.0
|
||||
BuildRequires: graphviz-gd
|
||||
# Only for directory ownership:
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: gtk2-devel
|
||||
BuildRequires: intltool
|
||||
BuildRequires: lensfun-devel
|
||||
# Needed to build the doc, as Bitstream Vera Sans is the referenced font.
|
||||
BuildRequires: liberation-fonts
|
||||
BuildRequires: libexiv2-devel
|
||||
BuildRequires: libjasper-devel >= 1.900.1
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: libopenraw-devel >= 0.0.5
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: librsvg-devel
|
||||
BuildRequires: libspiro-devel
|
||||
BuildRequires: libstdc++-devel
|
||||
BuildRequires: lua-devel
|
||||
BuildRequires: ruby
|
||||
# For umfpack
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: suitesparse-devel
|
||||
%if 0%{?BUILD_ORIG}
|
||||
BuildRequires: pkgconfig(libavcodec)
|
||||
BuildRequires: pkgconfig(libavformat)
|
||||
BuildRequires: pkgconfig(libswscale)
|
||||
%if 0%{?BUILD_ORIG_ADDON}
|
||||
Provides: patched_subset
|
||||
%else
|
||||
Provides: %{name}-orig-addon = %{version}
|
||||
Obsoletes: %{name}-orig-addon
|
||||
%endif
|
||||
%else
|
||||
Provides: patched_subset
|
||||
%endif
|
||||
BuildRequires: pkgconfig(OpenEXR)
|
||||
BuildRequires: pkgconfig(babl) >= 0.1.44
|
||||
BuildRequires: pkgconfig(exiv2)
|
||||
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.18.0
|
||||
BuildRequires: pkgconfig(gexiv2)
|
||||
BuildRequires: pkgconfig(gio-2.0)
|
||||
BuildRequires: pkgconfig(gio-unix-2.0)
|
||||
BuildRequires: pkgconfig(gmodule-2.0)
|
||||
BuildRequires: pkgconfig(gobject-2.0)
|
||||
BuildRequires: pkgconfig(gthread-2.0)
|
||||
BuildRequires: pkgconfig(jasper) >= 1.900.1
|
||||
BuildRequires: pkgconfig(json-glib-1.0)
|
||||
BuildRequires: pkgconfig(lcms2) >= 2.2
|
||||
BuildRequires: pkgconfig(libavcodec) >= 55.69.100
|
||||
BuildRequires: pkgconfig(libavformat) >= 55.48.100
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(libraw)
|
||||
BuildRequires: pkgconfig(librsvg-2.0) >= 2.14.0
|
||||
BuildRequires: pkgconfig(libswscale) >= 2.6.100
|
||||
BuildRequires: pkgconfig(libtiff-4)
|
||||
BuildRequires: pkgconfig(libv4l2) >= 1.0.1
|
||||
BuildRequires: pkgconfig(libwebp)
|
||||
BuildRequires: pkgconfig(lua) >= 5.1.0
|
||||
BuildRequires: pkgconfig(pango)
|
||||
BuildRequires: pkgconfig(pangocairo)
|
||||
BuildRequires: pkgconfig(vapigen) >= 0.20.0
|
||||
# since version 0.3.5, we no longer provide an orig-addon package, as ffmpeg/libav
|
||||
# exists in Tumbleweed and we use it to build
|
||||
Provides: %{name}-0_3-orig-addon = %{version}
|
||||
Obsoletes: %{name}-0_3-orig-addon < 0.3.5
|
||||
# Since 13/02/18 (version 0.3.28) gegl-unstable is obsolete, gegl is now on "0.3" branch.
|
||||
Provides: gegl-unstable = %{version}
|
||||
Obsoletes: gegl-unstable < %{version}
|
||||
|
||||
%description
|
||||
GEGL provides infrastructure to do demand-based cached non-destructive
|
||||
GEGL provides infrastructure 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 0_2
|
||||
%package -n %{name}-0_3
|
||||
Summary: Generic Graphics Library
|
||||
Group: System/Libraries
|
||||
Recommends: %{name}-0_2-lang
|
||||
Recommends: %{name}-0_3-lang
|
||||
|
||||
%description 0_2
|
||||
GEGL provides infrastructure to do demand-based cached non-destructive
|
||||
%description -n %{name}-0_3
|
||||
GEGL provides infrastructure 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 0_2-orig-addon
|
||||
%package -n libgegl-0_3-0
|
||||
Summary: Generic Graphics Library
|
||||
# The plugins are required for the lib to be usable
|
||||
Group: System/Libraries
|
||||
Supplements: packageand(%{name}-0_2:%(cd %{_libdir} ; rpm -qf --queryformat=%%{NAME} `readlink %{_libdir}/libavcodec.so` ))
|
||||
Requires: %{name}-0_3 >= %{version}
|
||||
|
||||
%description 0_2-orig-addon
|
||||
GEGL provides infrastructure to do demand-based cached non-destructive
|
||||
%description -n libgegl-0_3-0
|
||||
GEGL provides infrastructure 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 -n libgegl-0_2-0
|
||||
Summary: Generic Graphics Library
|
||||
%package -n typelib-1_0-Gegl-0_3
|
||||
Summary: Introspection bindings for the GEGL "Generic Graphics Library"
|
||||
Group: System/Libraries
|
||||
Recommends: %{name}-0_2 >= %{version}
|
||||
|
||||
%description -n libgegl-0_2-0
|
||||
GEGL provides infrastructure to do demand-based cached non-destructive
|
||||
%description -n typelib-1_0-Gegl-0_3
|
||||
GEGL provides infrastructure 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.
|
||||
|
||||
This package provides the GObject Introspection bindings for the
|
||||
libgegl library.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for GEGL, the "Generic Graphics Library"
|
||||
Summary: Development files for the GEGL "Generic Graphics Library"
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: babl-devel
|
||||
Requires: glib2-devel
|
||||
Requires: glibc-devel
|
||||
Requires: libgegl-0_2-0 = %{version}
|
||||
Requires: pcre-devel
|
||||
Requires: libgegl-0_3-0 = %{version}
|
||||
Requires: typelib-1_0-Gegl-0_3 = %{version}
|
||||
|
||||
%description devel
|
||||
GEGL provides infrastructure to do demand-based cached non-destructive
|
||||
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.
|
||||
|
||||
This subpackage contains the C headers for the GEGL API.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for GEGL, the "Generic Graphics Library"
|
||||
Summary: Documentation for the GEGL "Generic Graphics Library"
|
||||
Group: Documentation/HTML
|
||||
|
||||
%description doc
|
||||
GEGL provides infrastructure to do demand-based cached non-destructive
|
||||
GEGL provides infrastructure 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.
|
||||
|
||||
This subpackage contains the documentation for GEGL.
|
||||
|
||||
%lang_package -n %{name}-0_2
|
||||
%lang_package -n %{name}-0_3
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%if 0%{?suse_version} > 1310
|
||||
%patch2 -p1
|
||||
%endif
|
||||
%patch3 -p1
|
||||
# docs-build-fix.diff
|
||||
%patch4 -p1
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
export RPM_OPT_FLAGS="%{optflags} -fno-strict-aliasing"
|
||||
## do not use autogen.sh, it intentionally fails, if there is no ruby.
|
||||
## so why use autogen, when you do not want portability?
|
||||
# ./autogen.sh
|
||||
%configure\
|
||||
--enable-workshop=yes\
|
||||
--disable-static --disable-silent-rules
|
||||
%configure \
|
||||
--disable-static \
|
||||
%{nil}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%if ! 0%{?BUILD_ORIG}
|
||||
for MODULE in \
|
||||
%{_libdir}/gegl-0.2/ff-load.so \
|
||||
; do
|
||||
rm -f %{buildroot}$MODULE
|
||||
done
|
||||
%endif
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
%find_lang %{name}-0.2 %{?no_lang_C}
|
||||
%find_lang %{name}-0.3 %{?no_lang_C}
|
||||
|
||||
%post -n libgegl-0_2-0 -p /sbin/ldconfig
|
||||
%postun -n libgegl-0_2-0 -p /sbin/ldconfig
|
||||
%post -n gegl-0_3 -p /sbin/ldconfig
|
||||
%postun -n gegl-0_3 -p /sbin/ldconfig
|
||||
|
||||
%post -n libgegl-0_3-0 -p /sbin/ldconfig
|
||||
%postun -n libgegl-0_3-0 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%{_bindir}/gegl
|
||||
%{_bindir}/gegl-imgcmp
|
||||
%{_bindir}/gcut
|
||||
|
||||
%files 0_2
|
||||
%dir %{_libdir}/gegl-0.2/
|
||||
%{_libdir}/gegl-0.2/*.so
|
||||
%if 0%{?BUILD_ORIG}
|
||||
%if 0%{?BUILD_ORIG_ADDON}
|
||||
%exclude %{_libdir}/gegl-0.2/ff-load.so
|
||||
%files -n %{name}-0_3
|
||||
%dir %{_libdir}/gegl-0.3/
|
||||
%{_libdir}/gegl-0.3/*.so
|
||||
# libgegl-sc-0.3.so is a support library for the seamless-clone module
|
||||
%{_libdir}/libgegl-sc-0.3.so
|
||||
%{_libdir}/libgegl-npd-0.3.so
|
||||
%{_libdir}/gegl-0.3/grey2.json
|
||||
|
||||
%files 0_2-orig-addon
|
||||
%{_libdir}/gegl-0.2/ff-load.so
|
||||
%endif
|
||||
%endif
|
||||
%files -n libgegl-0_3-0
|
||||
%license COPYING COPYING.LESSER
|
||||
%{_libdir}/libgegl-0.3.so.*
|
||||
|
||||
%files -n libgegl-0_2-0
|
||||
%license COPYING
|
||||
%doc AUTHORS ChangeLog NEWS README
|
||||
%{_libdir}/libgegl-0.2.so.*
|
||||
%files -n typelib-1_0-Gegl-0_3
|
||||
%{_libdir}/girepository-1.0/Gegl-0.3.typelib
|
||||
|
||||
%files devel
|
||||
%{_includedir}/gegl-0.2/
|
||||
%{_libdir}/libgegl-0.2.so
|
||||
%{_libdir}/pkgconfig/gegl-0.2.pc
|
||||
%{_includedir}/gegl-0.3/
|
||||
%{_libdir}/libgegl-0.3.so
|
||||
%{_libdir}/pkgconfig/gegl-0.3.pc
|
||||
%{_libdir}/pkgconfig/gegl-sc-0.3.pc
|
||||
%{_datadir}/gir-1.0/Gegl-0.3.gir
|
||||
%dir %{_datadir}/vala
|
||||
%dir %{_datadir}/vala/vapi
|
||||
%{_datadir}/vala/vapi/gegl-0.3.deps
|
||||
%{_datadir}/vala/vapi/gegl-0.3.vapi
|
||||
|
||||
%files doc
|
||||
%doc AUTHORS ChangeLog NEWS
|
||||
%doc %{_datadir}/gtk-doc/html/gegl/
|
||||
|
||||
%files -n %{name}-0_2-lang -f %{name}-0.2.lang
|
||||
%files -n %{name}-0_3-lang -f %{name}-0.3.lang
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user