%define majver %(echo %version | cut -d. -f 1-2) %define apiver 0.0 Name: libgegl Version: 0.1.0 Release: 1mamba Summary: GEGL (Generic Graphics Library) is a graph based image processing framework. Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Ercole 'ercolinux' Carpanetto URL: http://gegl.org/ Source: ftp://ftp.gimp.org/pub/gegl/%{majver}/gegl-%{version}.tar.bz2 Patch0: %{name}-0.0.18-ffmpeg.patch License: GPL Requires: asciidoc Requires: enscript ## AUTOBUILDREQ-BEGIN BuildRequires: asciidoc BuildRequires: enscript BuildRequires: glibc-devel BuildRequires: liba52dec-devel BuildRequires: libatk-devel BuildRequires: libbabl-devel BuildRequires: libcairo-devel BuildRequires: libdc1394-devel BuildRequires: libfaac-devel BuildRequires: libfaad2-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libgcc BuildRequires: libglib-devel BuildRequires: libgtk-devel BuildRequires: libjpeg-devel BuildRequires: liblame-devel BuildRequires: liblua-devel BuildRequires: libogg-devel BuildRequires: libopenexr-devel BuildRequires: libopenraw-devel BuildRequires: libpango-devel BuildRequires: libpng-devel BuildRequires: libraw1394-devel BuildRequires: libreadline-devel BuildRequires: librsvg-devel BuildRequires: libSDL-devel BuildRequires: libstdc++6-devel BuildRequires: libtheora-devel BuildRequires: libvorbis-devel BuildRequires: libx264-devel BuildRequires: libxvidcore-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: libspiro-devel BuildRequires: libavformat-devel BuildRequires: libavcodec-devel BuildRequires: libilmbase-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root #Optional features: # GEGL docs: yes # Build workshop: yes # Build website: yes # SIMD: sse:yes mmx:yes #Optional dependencies: # GTK+: yes # GIO: yes # Ruby: yes # Lua: yes # Cairo: yes # Pango: yes # pangocairo: yes # GDKPixbuf: yes # JPEG: yes # PNG: yes # OpenEXR: yes # rsvg: yes # SDL: yes # openraw: yes # asciidoc: yes # enscript: yes # graphviz: yes # avcodec: yes # avformat: yes # V4L: yes %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 devel Group: Development/Libraries Summary: Static libraries and headers for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel GEGL (Generic Graphics Library) is a graph based image processing framework. 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 contains static libraries and header files need for development. %package apidocs Summary: %{name} API documentation Group: Documentation Provides: %{name}-api Obsoletes: %{name}-api %description apidocs %{name} API documentation. %prep %setup -q -n gegl-%{version} -D -T #%patch0 -p1 %build :<< _EOF export CAIRO_CFLAGS=-I/usr/include/cairo %configure --enable-gtk-doc --enable-workshop --enable-static %make #make check _EOF %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall install -d %{buildroot}%{_datadir}/applications install -d %{buildroot}%{_datadir}/pixmaps #install -m 644 docs/gallery/data/gegl.png %{buildroot}%{_datadir}/pixmaps #cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF #[Desktop Entry] #Name=GEGL #GenericName=Generic Graphics Library #Comment=A graph based image processing framework #Exec=/usr/bin/gegl #Icon=/usr/share/pixmaps/gegl.png #Terminal=false #Type=Application #Categories=KDE;Graphics; #EOF %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/gegl %{_libdir}/*.so.* %{_libdir}/libgegl-0.0.a #%{_datadir}/applications/%{name}.desktop #%{_datadir}/pixmaps/gegl.png %doc AUTHORS COPYING COPYING.LESSER ChangeLog NEWS README %files devel %defattr(-,root,root) %dir %{_includedir}/gegl-%{apiver} %{_includedir}/gegl-%{apiver}/*.h %dir %{_includedir}/gegl-%{apiver}/operation %{_includedir}/gegl-%{apiver}/operation/*.h %dir %{_libdir}/gegl-%{apiver} %{_libdir}/gegl-%{apiver}/*.a %{_libdir}/gegl-%{apiver}/*.la %{_libdir}/gegl-%{apiver}/*.so %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so %{_exec_prefix}/lib/pkgconfig/*.pc %files apidocs %defattr(-,root,root) %dir %{_datadir}/gtk-doc/html/gegl %{_datadir}/gtk-doc/html/gegl/*.html %{_datadir}/gtk-doc/html/gegl/gegl.css %{_datadir}/gtk-doc/html/gegl/gegl.devhelp %changelog * Sat Jul 18 2009 Silvan Calarco 0.1.0-1mamba - update to 0.1.0 * Tue Mar 10 2009 Silvan Calarco 0.0.22-1mamba - update to 0.0.22 - removed desktop entry - api package renamed to apidocs * Wed Dec 10 2008 Silvan Calarco 0.0.18-3mamba - automatic rebuild by autodist * Wed Nov 19 2008 Silvan Calarco 0.0.18-2mamba - automatic rebuild by autodist * Wed Oct 15 2008 gil 0.0.18-1mamba - update to 0.0.18 - renamed libgegl - optional features added (workshop, website) - added desktop file * Wed Oct 01 2008 Ercole 'ercolinux' Carpanetto 0.0.10-1mamba - first build