1 |
%define major 7 |
2 |
%define libname %mklibname gif %{major} |
3 |
%define develname %mklibname -d gif |
4 |
|
5 |
%global __requires_exclude ^perl\\(getopts.pl\\) |
6 |
|
7 |
Name: giflib |
8 |
Version: 5.1.8 |
9 |
Release: %mkrel 1 |
10 |
Summary: Library for reading and writing gif images |
11 |
License: BSD like |
12 |
Group: System/Libraries |
13 |
URL: http://giflib.sourceforge.net/ |
14 |
Source: http://downloads.sourceforge.net/giflib/%{name}-%{version}.tar.gz |
15 |
Patch0: giflib-Makefile.patch |
16 |
Patch3: giflib-5.0.5_CVE-2015-7555.patch |
17 |
BuildRequires: pkgconfig(x11) |
18 |
BuildRequires: xmlto |
19 |
|
20 |
%description |
21 |
giflib is a library for reading and writing gif images. It is API and |
22 |
ABI compatible with libungif which was in wide use while the LZW |
23 |
compression algorithm was patented. |
24 |
|
25 |
%package progs |
26 |
Summary: Gif tools based on giflib |
27 |
Group: Graphics/Editors and Converters |
28 |
|
29 |
%description progs |
30 |
giflib is a library for reading and writing gif images. It is API and |
31 |
ABI compatible with libungif which was in wide use while the LZW |
32 |
compression algorithm was patented. |
33 |
|
34 |
This package provides some gif tools based on giflib. |
35 |
|
36 |
%package -n %{libname} |
37 |
Group: System/Libraries |
38 |
Summary: Library for reading and writing gif images |
39 |
|
40 |
%description -n %{libname} |
41 |
giflib is a library for reading and writing gif images. It is API and |
42 |
ABI compatible with libungif which was in wide use while the LZW |
43 |
compression algorithm was patented. |
44 |
|
45 |
%package -n %{develname} |
46 |
Group: Development/C |
47 |
Summary: Development files for giflib |
48 |
Requires: %{libname} = %{version}-%{release} |
49 |
Provides: %{name}-devel = %{version}-%{release} |
50 |
Provides: libungif-devel = %{version}-%{release} |
51 |
Provides: ungif-devel = %{version}-%{release} |
52 |
|
53 |
%description -n %{develname} |
54 |
giflib is a library for reading and writing gif images. It is API and |
55 |
ABI compatible with libungif which was in wide use while the LZW |
56 |
compression algorithm was patented. |
57 |
|
58 |
This packages provides the developement files for giflib. |
59 |
|
60 |
%prep |
61 |
%setup -q |
62 |
%autopatch -p1 |
63 |
|
64 |
%build |
65 |
%make_build \ |
66 |
CFLAGS="%{optflags} -std=gnu99 -fPIC -Wno-format-truncation" \ |
67 |
LDFLAGS="%{ldflags}" |
68 |
|
69 |
%install |
70 |
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir}/man1 |
71 |
|
72 |
rm -f %{buildroot}%{_libdir}/*.la |
73 |
|
74 |
# Let's try to keep -lungif working for really old code |
75 |
ln -s libgif.so %{buildroot}%{_libdir}/libungif.so |
76 |
|
77 |
%files progs |
78 |
%doc COPYING NEWS README TODO |
79 |
%{_bindir}/gif2rgb |
80 |
%{_bindir}/gifbuild |
81 |
%{_bindir}/gifclrmp |
82 |
%{_bindir}/gifecho |
83 |
%{_bindir}/giffilter |
84 |
%{_bindir}/giffix |
85 |
%{_bindir}/gifinto |
86 |
%{_bindir}/gifsponge |
87 |
%{_bindir}/giftext |
88 |
%{_bindir}/giftool |
89 |
%{_mandir}/man1/*.1.* |
90 |
|
91 |
%files -n %{libname} |
92 |
%doc COPYING NEWS README TODO |
93 |
%{_libdir}/libgif.so.%{major} |
94 |
%{_libdir}/libgif.so.%{major}.* |
95 |
|
96 |
%files -n %{develname} |
97 |
%{_includedir}/gif_lib.h |
98 |
%{_libdir}/libgif.so |
99 |
%{_libdir}/libungif.so |