2006-12-19 00:16:35 +01:00
|
|
|
#
|
2011-05-31 12:46:57 +02:00
|
|
|
# spec file for package giflib
|
2006-12-19 00:16:35 +01:00
|
|
|
#
|
2024-02-26 12:38:17 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2006-12-19 00:16:35 +01:00
|
|
|
#
|
2008-09-05 02:24:38 +02:00
|
|
|
# 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.
|
|
|
|
|
2018-11-14 07:24:49 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:16:35 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-08-12 23:34:01 +02:00
|
|
|
%{!?make_build:%global make_build make %{?_smp_mflags}}
|
2015-01-15 14:38:33 +01:00
|
|
|
%define lname libgif7
|
2006-12-19 00:16:35 +01:00
|
|
|
Name: giflib
|
2024-02-26 12:38:17 +01:00
|
|
|
Version: 5.2.2
|
2012-02-05 17:23:50 +01:00
|
|
|
Release: 0
|
2011-09-21 19:03:25 +02:00
|
|
|
Summary: A Library for Working with GIF Images
|
2012-02-05 17:23:50 +01:00
|
|
|
License: MIT
|
2022-12-13 16:13:06 +01:00
|
|
|
URL: https://giflib.sourceforge.net/
|
|
|
|
Source: https://downloads.sf.net/giflib/%{name}-%{version}.tar.gz
|
2011-09-21 19:03:25 +02:00
|
|
|
Source2: baselibs.conf
|
2024-02-27 10:57:50 +01:00
|
|
|
Patch0: giflib-5.2.2-no-imagemagick.patch
|
2021-04-14 13:26:01 +02:00
|
|
|
Patch1: PIE.patch
|
2022-12-13 16:13:06 +01:00
|
|
|
Patch2: reproducible.patch
|
2024-02-26 12:38:17 +01:00
|
|
|
Patch3: 0001-Clean-up-memory-better-at-end-of-run-CVE-2021-40633.patch
|
2024-02-27 10:57:50 +01:00
|
|
|
BuildRequires: fdupes
|
2013-03-12 12:56:42 +01:00
|
|
|
BuildRequires: libtool >= 2
|
2011-09-21 19:03:25 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This Library allows manipulating GIF Image files. Since the LZW patents
|
|
|
|
have expired, giflib can again be used instead of libungif.
|
|
|
|
|
2015-01-15 14:38:33 +01:00
|
|
|
%package -n %{lname}
|
2011-09-21 19:03:25 +02:00
|
|
|
Summary: A Library for Working with GIF Images
|
2006-12-19 00:16:35 +01:00
|
|
|
|
2015-01-15 14:38:33 +01:00
|
|
|
%description -n %{lname}
|
2011-05-30 15:32:40 +02:00
|
|
|
This Library allows manipulating GIF Image files. Since the LZW patents
|
2011-09-21 19:03:25 +02:00
|
|
|
have expired, giflib can again be used instead of libungif.
|
2006-12-19 00:16:35 +01:00
|
|
|
|
|
|
|
%package progs
|
|
|
|
Summary: Tools for Working with the GIF Library
|
2015-01-15 14:38:33 +01:00
|
|
|
Provides: ungif = %{version}
|
|
|
|
Obsoletes: ungif < %{version}
|
2006-12-19 00:16:35 +01:00
|
|
|
|
|
|
|
%description progs
|
|
|
|
A tool for converting GIFs to various formats.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Library for Working with GIF Images - Files Mandatory for Development
|
2015-01-15 14:38:33 +01:00
|
|
|
Requires: %{lname} = %{version}
|
2006-12-19 00:16:35 +01:00
|
|
|
|
|
|
|
%description devel
|
2011-05-30 15:32:40 +02:00
|
|
|
This Library allows manipulating GIF Image files. Since the LZW patents
|
2011-09-21 19:03:25 +02:00
|
|
|
have expired, giflib can again be used instead of libungif.
|
2006-12-19 00:16:35 +01:00
|
|
|
|
|
|
|
%prep
|
2021-04-14 13:26:01 +02:00
|
|
|
%autosetup -p1
|
2021-04-19 13:17:01 +02:00
|
|
|
|
|
|
|
%build
|
2022-12-13 16:13:06 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%make_build
|
2006-12-19 00:16:35 +01:00
|
|
|
|
|
|
|
%install
|
2020-07-13 09:14:07 +02:00
|
|
|
%make_install PREFIX="%{_prefix}" LIBDIR="%{_libdir}"
|
2024-02-26 12:38:17 +01:00
|
|
|
find %{buildroot}%{_mandir} -name *.xml* -print -delete
|
2015-01-15 14:38:33 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2008-09-05 02:24:38 +02:00
|
|
|
find doc -name "Makefile*" -print -delete
|
2006-12-19 00:16:35 +01:00
|
|
|
|
2024-02-26 12:38:17 +01:00
|
|
|
# Install the manpages
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
for i in doc/*.1; do
|
|
|
|
install -pm 0644 ${i} %{buildroot}%{_mandir}/man1/
|
|
|
|
done
|
|
|
|
|
2024-02-27 10:57:50 +01:00
|
|
|
%fdupes -s doc
|
|
|
|
|
2020-07-13 09:14:07 +02:00
|
|
|
# Drop static library
|
|
|
|
rm -f %{buildroot}%{_libdir}/libgif.a
|
2006-12-19 00:16:35 +01:00
|
|
|
|
2020-07-13 09:14:07 +02:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
2015-01-15 14:38:33 +01:00
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2006-12-19 00:16:35 +01:00
|
|
|
|
2015-01-15 14:38:33 +01:00
|
|
|
%files -n %{lname}
|
2018-11-14 07:24:49 +01:00
|
|
|
%license COPYING
|
2006-12-19 00:16:35 +01:00
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files devel
|
2015-01-15 14:38:33 +01:00
|
|
|
%{_includedir}/gif_lib.h
|
2006-12-19 00:16:35 +01:00
|
|
|
%{_libdir}/lib*.so
|
|
|
|
|
|
|
|
%files progs
|
2018-11-14 07:24:49 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS README doc
|
2015-01-15 14:38:33 +01:00
|
|
|
%{_bindir}/*
|
2020-07-13 09:14:07 +02:00
|
|
|
%{_mandir}/man1/*.1%{?ext_man}
|
2006-12-19 00:16:35 +01:00
|
|
|
|
2008-04-10 14:16:13 +02:00
|
|
|
%changelog
|