File mingw64-giflib.spec of Package mingw64-giflib
#
# spec file for package mingw64-giflib
#
# Copyright (c) 2014 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/
#
Name: mingw64-giflib
Version: 4.1.6
Release: 0
Summary: A Library for Working with GIF Images
License: MIT
Group: Development/Libraries/C and C++
Url: http://giflib.sf.net/
Source: http://downloads.sf.net/giflib/giflib-%{version}.tar.bz2
Patch0: giflib-4.1.6-windows.patch
Patch1: giflib-4.1.6-nodatetime.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-filesystem
%_mingw64_package_header_debug
BuildArch: noarch
%description
This Library allows manipulating GIF Image files. Since the LZW patents
have expired, giflib can again be used instead of libungif.
%package devel
Summary: Library for Working with GIF Images - Files Mandatory for Development
Group: Development/Libraries/C and C++
%description devel
This Library allows manipulating GIF Image files. Since the LZW patents
have expired, giflib can again be used instead of libungif.
%package progs
Summary: Tools for Working with the GIF Library
Group: Productivity/Graphics/Convertors
%description progs
A tool for converting GIFs to various formats.
%package -n mingw64-libgif4
Summary: A Library for Working with GIF Images
Group: System/Libraries
Obsoletes: mingw64-libgif
Provides: mingw64-libgif
%description -n mingw64-libgif4
This Library allows manipulating GIF Image files. Since the LZW patents
have expired, giflib can again be used instead of libungif.
%_mingw64_debug_package
%prep
%setup -q -n giflib-%{version}
%patch -P 0 -p1 -b .windows
%patch -P 1 -p1 -b .nodatetime
%build
libtoolize --force --copy --install
autoreconf -fi
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--enable-shared --disable-static
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/gif_lib.h
%{_mingw64_libdir}/libgif.dll.a
%files -n mingw64-libgif4
%defattr(-,root,root)
%{_mingw64_bindir}/libgif-4.dll
%files progs
%defattr(-,root,root)
%{_mingw64_bindir}/gif*.exe
%{_mingw64_bindir}/*2gif.exe
%{_mingw64_bindir}/gifcompose
%{_mingw64_bindir}/gifburst
%changelog