giflib/giflib.spec

136 lines
3.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package giflib (Version 4.1.6)
#
# Copyright (c) 2010 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: giflib
BuildRequires: xorg-x11-libICE-devel xorg-x11-libSM-devel xorg-x11-libX11-devel xorg-x11-libXau-devel xorg-x11-libXdmcp-devel xorg-x11-libXt-devel
License: MIT
Group: System/Libraries
Url: http://sourceforge.net/projects/libungif
AutoReqProv: on
# bug437293
%ifarch ppc64
Obsoletes: giflib-64bit
Obsoletes: libungif-64bit
%endif
#
Version: 4.1.6
Release: 13
Summary: A Library for Working with GIF Images
Provides: libungif
%ifarch ia64 x86_64 s390x ppc64
Provides: libungif.so.4()(64bit)
%else
Provides: libungif.so.4
%endif
Obsoletes: libungif
Source: giflib-%{version}.tar.bz2
Source2: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This Library allows manipulatng GIF Image files. Since the LZW patents
have expired, giflib can be used instead of libungif again.
Authors:
--------
Toshio Kuratomi <badger@prtr-13.ucsc.edu>
Eric S. Raymond >esr@snark.thyrsus.com>
%package progs
License: MIT
Summary: Tools for Working with the GIF Library
Group: Productivity/Graphics/Convertors
AutoReqProv: on
Provides: ungif
Obsoletes: ungif
%description progs
A tool for converting GIFs to various formats.
Authors:
--------
Toshio Kuratomi <badger@prtr-13.ucsc.edu>
Eric S. Raymond >esr@snark.thyrsus.com>
%package devel
License: MIT
Summary: Library for Working with GIF Images - Files Mandatory for Development
Group: Development/Libraries/C and C++
Requires: %name = %version
# bug437293
%ifarch ppc64
Obsoletes: giflib-devel-64bit
%endif
#
%description devel
This Library allows manipulatng GIF Image files. Since the LZW patents
have expired, giflib can be used instead of libungif again.
Authors:
--------
Toshio Kuratomi <badger@prtr-13.ucsc.edu>
Eric S. Raymond >esr@snark.thyrsus.com>
%prep
%setup -q
%build
autoreconf -fiv
%configure --disable-static --with-pic --x-libraries=%{_libdir}
%{__make} %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
chmod 755 $RPM_BUILD_ROOT/%{_libdir}/lib*.so.*
ln -sf libgif.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libungif.so.%{version}
ln -sf libungif.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libungif.so.4
ln -sf libungif.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libungif.so
#ln -sf libgif.a $RPM_BUILD_ROOT%{_libdir}/libungif.a
rm -f %{buildroot}%{_libdir}/*.la
find doc -name "Makefile*" -print -delete
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING
%{_libdir}/lib*.so.*
%files devel
%defattr(-,root,root)
/usr/include/gif_lib.h
%{_libdir}/lib*.so
%files progs
%defattr(-,root,root)
%doc COPYING NEWS README doc
/usr/bin/*
%changelog