summaryrefslogtreecommitdiff
path: root/packaging/giflib.spec
blob: 22fd71f9096910d54100cff73a524fbb8e03d503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
%bcond_with wayland
%bcond_with x
Name:           giflib
Version:        5.2.1
Release:        0
License:        MIT
Summary:        Library for manipulating GIF format image files
Url:            http://sourceforge.net/projects/giflib/
Group:          System/Libraries
Source0:        http://downloads.sourceforge.net/giflib/%{name}-%{version}.tar.bz2
Source1001: 	giflib.manifest
%if %{with x}
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xv)
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(sm)
%endif

%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}

%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.

# It is necessary to check if this package is needed.
%package utils
Summary:        Programs for manipulating GIF format image files
Group:          Applications/Multimedia
Requires:       %{name} = %{version}

%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
cp %{SOURCE1001} .

%build
make libgif.so libutil.so DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr LIBDIR=%{_libdir}

%install
make install-lib install-include install-bin DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr LIBDIR=%{_libdir}

install -m 0755 -p libutil.so %{buildroot}%{_libdir}/libgifutil.so.7.1.0
ln -sf libgifutil.so.7.1.0 %{buildroot}%{_libdir}/libgifutil.so.7
ln -sf libgifutil.so.7 %{buildroot}%{_libdir}/libgifutil.so

%clean
make clean

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%manifest %{name}.manifest
%license COPYING
%{_libdir}/lib*.so.*

%files devel
%manifest %{name}.manifest
%{_libdir}/lib*.so
%{_includedir}/*.h

%files utils
%manifest %{name}.manifest
%{_bindir}/*