1 | Name: giflib
|
---|
2 | Summary: A library and utilities for processing GIFs
|
---|
3 | Version: 5.1.4
|
---|
4 | Release: 2%{?dist}
|
---|
5 |
|
---|
6 | License: MIT
|
---|
7 | URL: http://www.sourceforge.net/projects/%{name}/
|
---|
8 | #Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
---|
9 | %scm_source git file://e:/gcc/giflib-5.1.4 giflib-5.1.4
|
---|
10 |
|
---|
11 | BuildRequires: gcc
|
---|
12 | BuildRequires: make
|
---|
13 | #BuildRequires: xmlto
|
---|
14 |
|
---|
15 |
|
---|
16 | %description
|
---|
17 | giflib is a library for reading and writing gif images.
|
---|
18 |
|
---|
19 |
|
---|
20 | %package devel
|
---|
21 | Summary: Development files for programs using the giflib library
|
---|
22 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
---|
23 |
|
---|
24 | %description devel
|
---|
25 | The giflib-devel package includes header files, libraries necessary for
|
---|
26 | developing programs which use the giflib library.
|
---|
27 |
|
---|
28 |
|
---|
29 | %package utils
|
---|
30 | Summary: Programs for manipulating GIF format image files
|
---|
31 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
---|
32 |
|
---|
33 | %description utils
|
---|
34 | The giflib-utils package contains various programs for manipulating GIF
|
---|
35 | format image files.
|
---|
36 |
|
---|
37 |
|
---|
38 | %prep
|
---|
39 | #%autosetup -p1
|
---|
40 | %scm_setup
|
---|
41 | autoreconf -vif
|
---|
42 |
|
---|
43 | %build
|
---|
44 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
---|
45 | export LIBS="-lcx"
|
---|
46 | %configure --disable-static
|
---|
47 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
---|
48 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
---|
49 | %make_build
|
---|
50 |
|
---|
51 |
|
---|
52 | %install
|
---|
53 | %make_install
|
---|
54 |
|
---|
55 | # Don't install any static .a and libtool .la files
|
---|
56 | rm -f %{buildroot}%{_libdir}/libgif.la
|
---|
57 |
|
---|
58 | emximp -o %{buildroot}%{_libdir}/gif_dll.lib %{buildroot}%{_libdir}/gif7.dll
|
---|
59 | emximp -o %{buildroot}%{_libdir}/gif7_dll.lib %{buildroot}%{_libdir}/gif7.dll
|
---|
60 |
|
---|
61 | # Remove makefile relics from documentation
|
---|
62 | rm -f doc/Makefile*
|
---|
63 |
|
---|
64 |
|
---|
65 | #%ldconfig_scriptlets
|
---|
66 |
|
---|
67 |
|
---|
68 | %files
|
---|
69 | %doc AUTHORS ChangeLog NEWS README
|
---|
70 | %license COPYING
|
---|
71 | %{_libdir}/gif7.dll
|
---|
72 |
|
---|
73 | %files devel
|
---|
74 | %doc doc/*
|
---|
75 | %{_libdir}/gif7.dll
|
---|
76 | %{_libdir}/gif*.a
|
---|
77 | %{_libdir}/gif*.lib
|
---|
78 | %{_includedir}/gif_lib.h
|
---|
79 |
|
---|
80 | %files utils
|
---|
81 | %{_bindir}/gif*.exe
|
---|
82 | #%{_mandir}/man1/gif*.1*
|
---|
83 |
|
---|
84 |
|
---|
85 | %changelog
|
---|
86 | * Mon Nov 19 2018 Elbert Pol <elbert.pol@gmail.com> - 5.1.4-2
|
---|
87 | - Some spec changes
|
---|
88 |
|
---|
89 | * Sun Nov 18 2018 Elbert Pol <elbert.pol@gmail.com> - 5.1.4-1
|
---|
90 | - First os2 rpm build
|
---|