# # spec file for package gegl # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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/ # # norootforbuild Name: gegl # 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. BuildRequires: ImageMagick OpenEXR-devel SDL-devel asciidoc babl-devel enscript gcc-c++ graphviz-gd gtk2-devel libjpeg-devel libpng-devel librsvg-devel libstdc++-devel lua-devel # FIXME: add back with next release after 0.1.0, when gobj2dot.rb will be there # BuildRequires: ruby BuildRequires: glib2-devel >= 2.16.1 BuildRequires: libopenraw-devel >= 0.0.5 # Only for directory ownership: BuildRequires: gtk-doc %if 0%{?BUILD_ORIG} BuildRequires: ffmpeg-devel %if 0%{?BUILD_ORIG_ADDON} Provides: patched_subset %else Provides: %{name}-orig-addon = %{version} Obsoletes: %{name}-orig-addon %endif %else Provides: patched_subset %endif Url: http://gegl.org/ Version: 0.1.6 Release: 10 License: GPLv3+ ; LGPLv3+ Group: System/Libraries Summary: Generic Graphics Library Source: ftp://ftp.gimp.org/pub/gegl/v0.0/%{name}-%{version}.tar.bz2 Patch2: docs-build-fix.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %define debug_package_requires libgegl-0_1-0 = %{version}-%{release} %description 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_1 License: GPLv3+ ; LGPLv3+ Summary: Generic Graphics Library Group: System/Libraries %description 0_1 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. %if 0%{?BUILD_ORIG} %if 0%{?BUILD_ORIG_ADDON} %package 0_1-orig-addon License: GPLv3+ ; LGPLv3+ Summary: Generic Graphics Library Group: System/Libraries Supplements: packageand(%{name}-0_1:%(cd %{_libdir} ; rpm -qf --queryformat=%%{NAME} `readlink %{_libdir}/libavcodec.so` )) %description 0_1-orig-addon 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. %endif %endif %package -n libgegl-0_1-0 License: GPLv3+ ; LGPLv3+ Summary: Generic Graphics Library Group: System/Libraries Recommends: %{name}-0_1 >= %{version} %description -n libgegl-0_1-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 devel License: GPLv3+ ; LGPLv3+ Summary: Generic Graphics Library Group: System/Libraries Requires: libgegl-0_1-0 = %{version} babl-devel glib2-devel glibc-devel pcre-devel %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 License: GPLv3+ ; LGPLv3+ Summary: Generic Graphics Library Group: System/Libraries Requires: libgegl-0_1-0 = %{version} %description doc 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. %prep %setup -q # docs-build-fix.diff %patch2 -p1 %build ## nice idea, but it does not work. Rpmlint still complains about not useing rpm-opt-flags. export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export CXXFLAGS="$CFLAGS" ## 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 make %{?jobs:-j%jobs} %install %makeinstall %if ! 0%{?BUILD_ORIG} for MODULE in \ %{_libdir}/gegl-0.1/ff-load.so \ ; do rm -f $RPM_BUILD_ROOT$MODULE done %endif find %{buildroot} -type f -name "*.la" -delete -print %post -n libgegl-0_1-0 -p /sbin/ldconfig %postun -n libgegl-0_1-0 -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_bindir}/* %files 0_1 %defattr(-,root,root) %dir %{_libdir}/gegl-0.1 %{_libdir}/gegl-0.1/*.so %if 0%{?BUILD_ORIG} %if 0%{?BUILD_ORIG_ADDON} %exclude %{_libdir}/gegl-0.1/ff-load.so %files 0_1-orig-addon %defattr(-,root,root) %{_libdir}/gegl-0.1/ff-load.so %endif %endif %files -n libgegl-0_1-0 %defattr(-,root,root) %doc AUTHORS COPYING COPYING.LESSER ChangeLog NEWS README %{_libdir}/*.so.* %files devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %files doc %defattr(-,root,root) %dir %{_datadir}/gtk-doc/html/gegl %{_datadir}/gtk-doc/html/gegl/* %changelog