diff --git a/.gitignore b/.gitignore index 834bea1..1fb1734 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/giflib-?.?.?.tar.bz2 +giflib-4.1.6.tar.bz2 diff --git a/giflib.spec b/giflib.spec index 9965fca..88dc4ea 100644 --- a/giflib.spec +++ b/giflib.spec @@ -1,24 +1,27 @@ Summary: Library for manipulating GIF format image files Name: giflib -Version: 5.0.5 -Release: 1%{?dist} +Version: 4.1.6 +Release: 9%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.sourceforge.net/projects/%{name}/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 BuildRequires: libX11-devel, libICE-devel, libSM-devel, libXt-devel +Provides: libungif = %{version}-%{release} Obsoletes: libungif <= %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description -The giflib package contains a shared library of functions for reading GIF -files, transforming them into RGB bitmaps and and for writing RGB bitmaps -as GIF files. +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. %package devel Summary: Development tools for programs using the giflib library Group: Development/Libraries -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +Provides: libungif-devel = %{version}-%{release} Obsoletes: libungif-devel <= %{version}-%{release} %description devel @@ -29,7 +32,8 @@ image files. It contains the documentation of the giflib library, too. %package utils Summary: Programs for manipulating GIF format image files Group: Applications/Multimedia -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +Provides: libungif-progs = %{version}-%{release} Obsoletes: libungif-progs <= %{version}-%{release} %description utils @@ -44,16 +48,24 @@ files. %configure make %{?_smp_mflags} all +# Handling of libungif compatibility +MAJOR=`echo '%{version}' | sed -e 's/\([0-9]\+\)\..*/\1/'` +%{__cc} $RPM_OPT_FLAGS -shared -Wl,-soname,libungif.so.$MAJOR -Llib/.libs -lgif -o libungif.so.%{version} + %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install -make -C doc DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install-man + +# Handling of libungif compatibility +install -p -m 755 libungif.so.%{version} $RPM_BUILD_ROOT%{_libdir} +ln -sf libungif.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libungif.so.4 +ln -sf libungif.so.4 $RPM_BUILD_ROOT%{_libdir}/libungif.so # Don't install any static .a and libtool .la files rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la} -# Clean up for later usage in documentation -rm -f doc/Makefile* doc/*.1 +# Remove makefile relics from documentation +rm -f doc/Makefile* %clean rm -rf $RPM_BUILD_ROOT @@ -69,21 +81,15 @@ rm -rf $RPM_BUILD_ROOT %files devel %defattr(-,root,root,-) -%doc doc/* util/giffilter.c util/gifsponge.c +%doc doc/* util/giffiltr.c util/gifspnge.c %{_libdir}/lib*.so %{_includedir}/*.h %files utils %defattr(-,root,root,-) %{_bindir}/* -%{_mandir}/man1/*.1* %changelog -* Mon Nov 25 2013 Robert Scheck 5.0.5-1 -- Upgrade to 5.0.5 (#822844) -- Tight run-time dependencies between sub-packages via %%{?_isa} -- Only obsolete but no longer provide any libungif packages - * Sat Aug 03 2013 Fedora Release Engineering - 4.1.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild diff --git a/sources b/sources index b7fb941..c66eb81 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c3262ba0a3dad31ba876fb5ba1d71a02 giflib-5.0.5.tar.bz2 +7125644155ae6ad33dbc9fc15a14735f giflib-4.1.6.tar.bz2