# Note that this is NOT a relocatable package %define name gdk-pixbuf %define ver 0.8.0 %define RELEASE 5 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} %define prefix %{_prefix} Name: %name Summary: The GdkPixBuf image handling library Version: %ver Release: %rel Copyright: LGPL Group: System Environment/Libraries Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{ver}.tar.gz Patch0: %{name}-%{ver}-ecomma.patch URL: http://www.gnome.org/ BuildRoot: /var/tmp/%{name}-root BuildRequires: gnome-libs-devel libtool >= 1.3.5 #Requires: gtk+ >= 1.2 Docdir: %{prefix}/doc %ifarch ia64 %define stdlib lib/ia64l32 %define liblink ../../.. %define DEFCC bcc %else %define stdlib lib %define liblink ../.. %define DEFCC cc %endif %description The GdkPixBuf library provides a number of features, including : - GdkPixbuf structure for representing images. - Image loading facilities. - Rendering of a GdkPixBuf into various formats: drawables (windows, pixmaps), GdkRGB buffers. - Fast scaling and compositing of pixbufs. - Simple animation loading (ie. animated gifs) In addition, this module also provides a little libgnomecanvaspixbuf library, which contains a GNOME Canvas item to display pixbufs with full affine transformations. %package devel Summary: Libraries and include files for developing GdkPixBuf applications. Group: Development/Libraries #Requires: %name = %{PACKAGE_VERSION} #Obsoletes: %name-devel %description devel Libraries and include files for developing GdkPixBuf applications. %changelog * Fri Mar 09 2001 Marc Stephenson - Rebuild against new shared objects - Rebuild using libtool 1.3.5a - Use default compiler * Thu Feb 15 2001 aixtoolbox - Account for different standard lib location in IA64 32-bit ABI * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Sat Jan 22 2000 Ross Golder - Borrowed from gnome-libs to integrate into gdk-pixbuf source tree %prep %setup -q %patch0 -p2 -b .comma %build %ifarch alpha MYARCH_FLAGS="--host=alpha-redhat-linux" %endif # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` export CFLAGS="$RPM_OPT_FLAGS" fi MYCFLAGS="$RPM_OPT_FLAGS" libtoolize --force # Needed for snapshot releases. if [ ! -f configure ]; then CFLAGS="$MYCFLAGS" LDFLAGS="-Wl,-brtl" ./autogen.sh $MYARCH_FLAGS --prefix=%prefix --localstatedir=/var/lib --sysconfdir=/etc else CFLAGS="$MYCFLAGS" LDFLAGS="-Wl,-brtl" ./configure $MYARCH_FLAGS --prefix=%prefix --localstatedir=/var/lib --sysconfdir=/etc fi if [ "$SMP" != "" ]; then make -j$SMP "MAKE=make -j$SMP" else make fi %install rm -rf $RPM_BUILD_ROOT make sysconfdir=$RPM_BUILD_ROOT/etc prefix=$RPM_BUILD_ROOT%{prefix} install ( cd $RPM_BUILD_ROOT for dir in bin include do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/$dir/* . cd - done mkdir -p usr/%{stdlib} cd usr/%{stdlib} ln -sf %{liblink}%{prefix}/lib/* . ) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README TODO doc/*.txt doc/html/* /usr/%{stdlib}/lib*.so* /usr/%{stdlib}/%{name}/loaders/lib*.so* %{prefix}/lib/lib*.so* %{prefix}/lib/%{name}/loaders/lib*.so* %files devel %defattr(-, root, root) #%doc HACKING MAINTAINERS /usr/bin/* /usr/%{stdlib}/*.sh /usr/include/* %{prefix}/bin/* %{prefix}/lib/*.sh %{prefix}/include/* %{prefix}/share/aclocal/* %{prefix}/share/gnome/html/*