146 lines
4.6 KiB
RPMSpec
146 lines
4.6 KiB
RPMSpec
Summary: Library for manipulating GIF format image files
|
|
Name: giflib
|
|
Version: 4.1.6
|
|
Release: 1%{?dist}
|
|
License: MIT
|
|
URL: http://www.sf.net/projects/giflib/
|
|
Source0: http://download.sourceforge.net/sourceforge/giflib/%{name}-%{version}.tar.bz2
|
|
Group: System Environment/Libraries
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: libX11-devel, libICE-devel, libSM-devel, libXt-devel
|
|
|
|
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.
|
|
|
|
%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.
|
|
|
|
%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
|
|
%{__sed} -i 's/\r//' doc/lzgif.txt
|
|
|
|
%build
|
|
%configure
|
|
make %{?_smp_mflags} all
|
|
|
|
MAJOR=`echo '%{version}' | sed '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 install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
install -m 0755 -p 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
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
%clean
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING README NEWS ONEWS
|
|
%doc ChangeLog TODO BUGS AUTHORS
|
|
%{_libdir}/lib*.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%doc doc/* util/giffiltr.c util/gifspnge.c
|
|
%{_libdir}/lib*.a
|
|
%{_libdir}/lib*.so
|
|
%{_includedir}/*.h
|
|
|
|
%files utils
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/*
|
|
|
|
%changelog
|
|
* Mon Apr 13 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 4.1.6-1
|
|
- update to 4.1.6
|
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.3-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.1.3-9
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Tue Mar 13 2007 Karsten Hopp <karsten@redhat.com> 4.1.3-8
|
|
- add BR libXt-devel, otherwise X support will be disabled
|
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com>
|
|
- rebuild
|
|
|
|
* Mon May 22 2006 Karsten Hopp <karsten@redhat.de> 4.1.3-7
|
|
- buildrequires libICE-devel, libSM-devel
|
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.1.3-6.2.1
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.1.3-6.2
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
- rebuilt
|
|
|
|
* Tue Nov 1 2005 Matthias Clasen <mclasen@redhat.com> 4.1.3-6
|
|
- Switch requires to modular X
|
|
|
|
* Wed Sep 21 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 4.1.3-5
|
|
- Merge an option on the empty library link line.
|
|
- Obsolete libungif progs package.
|
|
- Rename -progs to -utils as FC packages seem to have moved in this direction
|
|
for subpackages.
|
|
|
|
* Tue Sep 20 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 4.1.3-4
|
|
- Modify the way we provide libungif compatibility by building an empty
|
|
library that requires libgif.
|
|
- Remove chmod in install. It doesn't seem to be necessary.
|
|
- Add a patch to fix a problem with long being 64 bit on x86_64 but the code
|
|
assuming it was 32 bit.
|
|
|
|
* Mon Sep 19 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 4.1.3-1
|
|
- Port package from libungif to giflib.
|