Summary: Library for manipulating GIF format image files Name: giflib Version: 5.0.5 Release: 1 License: MIT URL: http://www.sf.net/projects/giflib/ Source0: http://dl.sf.net/giflib/%{name}-%{version}.tar.bz2 Source1: libgif.so.4-aix32 Source2: libgif.so.4-aix64 Patch0: %{name}-%{version}-aix.patch Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: sed, automake, autoconf, patch Obsoletes: libungif <= %{version}-%{release} Provides: libungif <= %{version}-%{release} %description The giflib package contains a shared library of functions for loading and saving GIF format image files. It is API and ABI compatible with libungif, the library which supported uncompressed GIFs while the Unisys LZW patent was in effect. Install the giflib package if you need to write programs that use GIF files. You should also install the giflib-utils package if you need some simple utilities to manipulate GIFs. The library is available as 32-bit and 64-bit. %package devel Summary: Development tools for programs which will use the libungif library Group: Development/Libraries Requires: %{name} = %{version}-%{release} Provides: libungif-devel <= %{version}-%{release} Obsoletes: libungif-devel <= %{version}-%{release} %description devel This package contains the static libraries, header files and documentation necessary for development of programs that will use the giflib library to load and save GIF format image files. You should install this package if you need to develop programs which will use giflib library functions. You'll also need to install the giflib package. If you are compiling a 32-bit program, no special compiler options are needed. If you are compiling a 64-bit program, you have to compile and link your application with "cc -q64" or "gcc -maix64". %package utils Summary: Programs for manipulating GIF format image files Group: Applications/Multimedia Requires: %{name} = %{version}-%{release} Obsoletes: libungif-progs <= %{version}-%{release} %description utils The giflib-utils package contains various programs for manipulating GIF format image files. Install this package if you need to manipulate GIF format image files. You'll also need to install the giflib package. %prep %setup -q export PATH=/opt/freeware/bin:$PATH %patch0 /opt/freeware/bin/sed -i 's/\r//' doc/lzgif.txt autoconf %build export CONFIG_SHELL=/usr/bin/ksh export CONFIG_ENV_ARGS=/usr/bin/ksh # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="cc -qcpluscmt -q64" ./configure \ --prefix=%{_prefix} \ --enable-shared --disable-static make %{?_smp_mflags} cp lib/.libs/libgif.so.6 . make distclean # now build the 32-bit version export CC="cc -qcpluscmt" ./configure \ --prefix=%{_prefix} \ --enable-shared --disable-static make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q lib/.libs/libgif.a ./libgif.so.6 # Add the older 4.2.0 shared members for compatibility with older apps # (make sure they're set for LOADONLY with 'strip -e') cp %{SOURCE1} libgif.so.4 /usr/bin/strip -X32 -e libgif.so.4 /usr/bin/ar -X32 -q ./lib/.libs/libgif.a libgif.so.4 cp %{SOURCE2} libgif.so.4 /usr/bin/strip -X64 -e libgif.so.4 /usr/bin/ar -X64 -q ./lib/.libs/libgif.a libgif.so.4 %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : ( cd ${RPM_BUILD_ROOT} mkdir -p usr/lib || : mkdir -p usr/include || : mkdir -p usr/bin || : cd usr/lib ln -sf ../..%{_libdir}/* . cd ../include ln -sf ../..%{_includedir}/* . cd ../bin ln -sf ../..%{_bindir}/* . ) %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc COPYING README UNCOMPRESSED_GIF NEWS ONEWS %doc ChangeLog TODO BUGS AUTHORS %{_libdir}/lib*.a /usr/lib/lib*.a %files devel %defattr(-,root,system) %doc doc/* %{_libdir}/lib*.la %{_includedir}/*.h /usr/lib/lib*.la /usr/include/*.h %files utils %defattr(-,root,system) %{_bindir}/* /usr/bin/* %changelog * Sat Aug 31 2013 Michael Perzl - 5.0.5-1 - updated to version 5.0.5 * Tue Jan 29 2013 Michael Perzl - 5.0.4-1 - updated to version 5.0.4 * Mon Dec 31 2012 Michael Perzl - 5.0.3-1 - updated to version 5.0.3 * Mon Dec 31 2012 Michael Perzl - 5.0.2-1 - updated to version 5.0.2 * Mon Oct 15 2012 Michael Perzl - 5.0.1-1 - updated to version 5.0.1 * Wed Jun 20 2012 Michael Perzl - 5.0.0-1 - updated to version 5.0.0 * Wed Jun 20 2012 Michael Perzl - 4.2.0-1 - updated to version 4.2.0 * Sat Mar 22 2008 Michael Perzl - 4.1.6-1 - first version for AIX V5.1 and higher