File gdk-pixbuf.spec of Package gdk-pixbuf

#
# spec file for package gdk-pixbuf (Version 0.22.0)
#
# Copyright (c) 2009 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:           gdk-pixbuf
BuildRequires:  esound-devel gcc-c++ giflib-devel gnome-libs-devel libpng-devel libtiff-devel xorg-x11-devel
Summary:        A Library for Fast Pixel Manipulation
Version:        0.22.0
Release:        296
Group:          System/Libraries
License:        GPL v2 or later
Url:            http://www.gnome.org/
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/0.22/gdk-pixbuf-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE gdk-pixbuf-0.22.0.patch
Patch:          %{name}-%{version}.patch
# PATCH-FIX-UPSTREAM gnome171707-backport.patch bgo171707
Patch1:         gnome171707-backport.patch
Patch2:         gdk-pixbuf-xpm-decoder.diff
# PATCH-FIX-OPENSUSE gdk-pixbuf-g_ty_malloc.patch manfred.hollstein@novell.com
Patch3:         gdk-pixbuf-g_try_malloc.patch
Patch4:         xpm-overflow.patch
Patch5:         gdk-pixbuf-xpmintoverflow.diff
Patch6:         gdk-pixbuf-loop.diff
Patch7:         gdk-pixbuf-CVE-2004-0753-bmp-loop.patch
Patch8:         gdk-pixbuf-noexec.patch
# PATCH-FIX-UPSTREAM gdk-pixbuf-CVE-2012-2370.patch bnc#762735 CVE-2012-2370 vuntz@opensuse.org -- ix integer overflow in XBM file loader
Patch9:         gdk-pixbuf-CVE-2012-2370.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Obsoletes:      gdk_pix
Provides:       gdk_pix
# bug437293
%ifarch ppc64
Obsoletes:      gdk-pixbuf-64bit
%endif
#

%description
With this library you can create, change, scale, and move pixel data
very efficiently.



Authors:
--------
    Arjan van de Ven <arjan@fenrus.demon.nl>
    Cody Russell  <bratsche@dfw.net>
    Elliot Lee  <sopwith@redhat.com>
    Federico Mena Quintero  <federico@helixcode.com>
    George Lebl <jirka@5z.com>
    Havoc Pennington  <hp@pobox.com>
    Jacob Berkman  <jacob@helixcode.com>
    Jaka Mocnik  <jaka.mocnik@kiss.uni-lj.si>
    Jonathan Blandford  <jrb@redhat.com>
    Larry Ewing  <lewing@gimp.org>
    Mark Crichton  <crichton@gimp.org>
    Martin Baulig  <martin@home-of-linux.org>
    Michael Fulbright  <drmike@redhat.com>
    Michael Meeks  <michael@nuclecu.unam.mx>
    Michael Zucchi  <zucchi@zedzone.mmc.com.au>
    Owen Taylor  <otaylor@redhat.com>
    Peter Teichman  <pat@gnu.org>
    Raja R Harinath  <harinath@cs.umn.edu>
    Richard Hestilow  <hestgray@ionet.net>

%package devel
License:        GPL v2 or later
Summary:        GdkPixBuf - Development Environment
Group:          Development/Libraries/GNOME
Requires:       gdk-pixbuf gtk-devel gnome-libs-devel
Provides:       gdk_pixd
Obsoletes:      gdk_pixd
# bug437293
%ifarch ppc64
Obsoletes:      gdk-pixbuf-devel-64bit
%endif
#

%description devel
The GdkPixBuf development environment.



Authors:
--------
    cf. gdk_pix

%package gnome
License:        GPL v2 or later
Summary:        A Library for Fast Pixel Manipulation
Group:          System/Libraries

%description gnome
With this library you can create, change, scale, and move pixel data
very efficiently.



Authors:
--------
    Arjan van de Ven <arjan@fenrus.demon.nl>
    Cody Russell  <bratsche@dfw.net>
    Elliot Lee  <sopwith@redhat.com>
    Federico Mena Quintero  <federico@helixcode.com>
    George Lebl <jirka@5z.com>
    Havoc Pennington  <hp@pobox.com>
    Jacob Berkman  <jacob@helixcode.com>
    Jaka Mocnik  <jaka.mocnik@kiss.uni-lj.si>
    Jonathan Blandford  <jrb@redhat.com>
    Larry Ewing  <lewing@gimp.org>
    Mark Crichton  <crichton@gimp.org>
    Martin Baulig  <martin@home-of-linux.org>
    Michael Fulbright  <drmike@redhat.com>
    Michael Meeks  <michael@nuclecu.unam.mx>
    Michael Zucchi  <zucchi@zedzone.mmc.com.au>
    Owen Taylor  <otaylor@redhat.com>
    Peter Teichman  <pat@gnu.org>
    Raja R Harinath  <harinath@cs.umn.edu>
    Richard Hestilow  <hestgray@ionet.net>

%prep
%setup -q
%patch
%patch1
%patch2 -p1
%patch3 -p1
cd gdk-pixbuf
%patch4
%patch7
cd ..
%patch5 -p1
%patch6 -p1
%patch8 -p1
%patch9 -p1

%build
autoreconf -f -i
%if %suse_version > 1000
export CFLAGS="$RPM_OPT_FLAGS -fstack-protector"
%endif
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT
find %{buildroot} -name "*.la" -exec %{__rm} -fv {} +

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%post gnome -p /sbin/ldconfig

%postun gnome -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc AUTHORS COPYING COPYING.LIB NEWS README TODO
%doc doc/*.txt
%doc doc/html
%{_datadir}/gnome/html/gdk-pixbuf
%{_libdir}/libgdk*.so.*
%dir %{_libdir}/gdk-pixbuf
%dir %{_libdir}/gdk-pixbuf/loaders
%{_libdir}/gdk-pixbuf/loaders/lib*.so

%files gnome
%defattr(-, root, root)
%{_libdir}/libgnome*.so.*

%files devel
%defattr(-, root, root)
%{_bindir}/*
%{_libdir}/lib*.so
%{_libdir}/*.sh
%{_includedir}/*
%{_datadir}/aclocal/*.m4

%changelog
* Sun Apr 19 2009 crrodriguez@suse.de
- remove unused BuildRequire on db1-devel
* Thu Jan 22 2009 crrodriguez@suse.de
- remove "la" files
* Wed Dec 10 2008 olh@suse.de
- use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade
  (bnc#437293)
* Mon Nov 24 2008 olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
* Thu May 08 2008 rodrigo@suse.de
- Tag some patches
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Fri Jul 27 2007 aj@suse.de
- Cleanup BuildRequires
- Add missing ldconfig
* Tue Jan 16 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Mon Dec 11 2006 meissner@suse.de
- mark assembler code up as needing noexec stack.
* Fri Jan 27 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 25 2006 meissner@suse.de
- fixed -fstack-protector use for PLUS products.
* Tue Jan 17 2006 meissner@suse.de
- require gnome-libs-devel in devel package.
- -fstack-protector added.
* Mon Nov 21 2005 sbrabec@suse.cz
- Fixed bmp infinite loop (#134630, CVE-2004-0753).
  http://bugzilla.gnome.org/show_bug.cgi?id=150601
* Mon Oct 31 2005 nadvornik@suse.cz
- More XPM fixes (#129642):
  CVE-2005-2976 xpm integer overflow w*h*c
  CVE-2005-2975 xpm too many colors DoS
* Fri Oct 21 2005 sbrabec@suse.cz
- Fixed XPM buffer overflow vulnerability (#129642).
- Added patches for
  CAN-2004-0782 Heap-based overflow in pixbuf_create_from_xpm
  CAN-2004-0783 Stack-based overflow in xpm_extract_color
  CAN-2004-0788 ico loader integer overflow.
  (#59100)
* Tue Apr 12 2005 ro@suse.de
- added audiofile-devel to neededforbuild
* Fri Apr 08 2005 sbrabec@suse.cz
- Backported zero size realloc patch (#74688).
  http://bugzilla.gnome.org/show_bug.cgi?id=171707#c5
* Mon Jan 17 2005 ro@suse.de
- added c++ to neededforbuild (for libtiff)
* Tue Jul 06 2004 coolo@suse.de
- run ldconfig on installation change
* Tue Feb 17 2004 sbrabec@suse.cz
- Updated to version 0.22.0 (#22997).
- Split GNOME runtime to subpackage.
* Fri Jan 09 2004 schwab@suse.de
- Fix quoting in autoconf macros.
* Mon Sep 15 2003 sbrabec@suse.cz
- Require gtk-devel.
* Fri Sep 12 2003 sbrabec@suse.cz
- Removed compatibility include symlink (bug #30608).
* Wed Jul 16 2003 sbrabec@suse.cz
- Aclocal files moved to the same prefix as package itself.
- Alternative include location symlink instead of copy.
* Fri Jun 27 2003 ro@suse.de
- added directories to filelist
* Mon Apr 28 2003 schwab@suse.de
- Fix missing declarations.
* Fri Sep 27 2002 ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
* Wed Jun 19 2002 jordi@suse.de
- updated to version 0.18.0
  * Fixed the RGB 565 MSB -> MSB case in gdk-pixbuf-drawable
  * Fixed alignment issues in the BMP loader
  * Merged pixops.c from GTK+ HEAD
* Thu Jun 13 2002 hhetter@suse.de
- fix GDKPIXBUF_LIBDIR
* Mon May 27 2002 meissner@suse.de
- moved share/aclocal/gdk-pixbuf.m4 where it belongs.
* Fri May 03 2002 meissner@suse.de
- %%_lib fixes.
* Wed Apr 24 2002 ro@suse.de
- update to 0.17.0
- fix build aith automake-1.6
* Fri Feb 08 2002 hhetter@suse.de
- added LIBRARY_PATH for libtool
* Fri Feb 08 2002 hhetter@suse.de
- provice headers in place for not yet compatible sources
* Thu Feb 07 2002 hhetter@suse.de
- updated to version 0.16.0
  * 16-bpp ICO and BPP support
  * 32-bpp ICO support
- build with automake 1.5
- correct assembler detection
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Sat Jul 07 2001 egger@suse.de
- Updated to version 0.11.0.
* Mon May 28 2001 hhetter@suse.de
- added needed packages for build on non-MMX platforms
* Tue May 15 2001 froh@suse.de
- fixed suse_update_config
* Fri Mar 16 2001 egger@suse.de
- Updated to version 0.10.1.
* Sat Mar 03 2001 egger@suse.de
- Cleaned up specfile and cut down dependencies.
* Sat Mar 03 2001 egger@suse.de
- Updated to version 0.10.0.
* Sun Feb 25 2001 egger@suse.de
- Remove unnecessary dependencies from #neededforbuild,
  especially imlib-config.
* Thu Feb 22 2001 ke@suse.de
- Get the Obsoletes/Provides tags right [#6119 and #6484].
- more spec file cleanup.
* Wed Jan 31 2001 ro@suse.de
- changed neededforbuild <imlibcfe> to <imlib-config>
* Thu Jan 25 2001 ro@suse.de
- replaced Required by Provides
* Thu Jan 25 2001 hhetter@suse.de
- added missing Required and Obsoletes tags (Bug #6119)
* Tue Nov 07 2000 ro@suse.de
- fixed neededforbuild: add esound-devel
* Sat Nov 04 2000 kukuk@suse.de
- Rename gdk_pixd -> gdk-pixbuf-devel
* Wed Nov 01 2000 egger@suse.de
- Updated specfile to new long packagenames.
- Reworked specfile.
- Probably needs some more work; I'm taking care of that.
* Thu Sep 21 2000 ro@suse.de
- %%{configure} will not work unless all macros are redefined ...
* Mon Sep 18 2000 bk@suse.de
- add gxmhtml to neededforbuild(failed on s390 without)
* Mon Sep 18 2000 bk@suse.de
- use %%configure to have automatic libtool update(needed for s390)
* Tue Sep 05 2000 egger@suse.de
- Tweaked the spec a bit again for optimal building pleasure.
* Fri Sep 01 2000 egger@suse.de
- Tweaked the spec a bit again.
* Thu Aug 31 2000 egger@suse.de
- Removed unneeded dependencies.
* Wed Aug 30 2000 egger@suse.de 
- The package is missing for some reason?!?
* Mon Aug 28 2000 hhetter@suse.de
- update to version 0.9.0
* Tue May 30 2000 baulig@suse.de
- moved %%{prefix}/lib/libgnomecanvaspixbuf.so back to
  gdk_pixd, sorry I confused this yesterday.
* Mon May 29 2000 baulig@suse.de
- moved %%{prefix}/lib/*/loaders/lib*.so and
  %%{prefix}/lib/libgnomecanvaspixbuf.so from gdk_pixd
  to gdk_pix to make dynamic loading work.
* Wed May 24 2000 ke@suse.de
- update to version 0.8.0.
- use DESTDIR.
- use %%{_defaultdocdir}.
- provide gdk-pixbuf.
* Mon Apr 17 2000 ke@suse.de
- update to version 0.7.0.
- spec file: add requires and provides.
* Thu Feb 24 2000 ke@suse.de
- update to version 0.6.0.
* Fri Feb 11 2000 ke@suse.de
- initial package: version 0.5.0.
openSUSE Build Service is sponsored by