| 1 | Name: giflib
|
|---|
| 2 | Summary: A library and utilities for processing GIFs
|
|---|
| 3 | Version: 5.2.1
|
|---|
| 4 | Release: 1%{?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 github https://git.code.sf.net/p/giflib/code giflib-5.2.1
|
|---|
| 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 | %debug_package
|
|---|
| 38 |
|
|---|
| 39 | %prep
|
|---|
| 40 | #%autosetup -p1
|
|---|
| 41 | %scm_setup
|
|---|
| 42 | autoreconf -vif
|
|---|
| 43 |
|
|---|
| 44 | %build
|
|---|
| 45 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 46 | export LIBS="-lcx"
|
|---|
| 47 | %configure --disable-static
|
|---|
| 48 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|---|
| 49 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|---|
| 50 | %make_build
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 | %install
|
|---|
| 54 | %make_install
|
|---|
| 55 |
|
|---|
| 56 | # Don't install any static .a and libtool .la files
|
|---|
| 57 | rm -f %{buildroot}%{_libdir}/libgif.la
|
|---|
| 58 |
|
|---|
| 59 | #emximp -o %{buildroot}%{_libdir}/gif_dll.lib %{buildroot}%{_libdir}/gif7.dll
|
|---|
| 60 | #emximp -o %{buildroot}%{_libdir}/gif7_dll.lib %{buildroot}%{_libdir}/gif7.dll
|
|---|
| 61 |
|
|---|
| 62 | # Remove makefile relics from documentation
|
|---|
| 63 | rm -f doc/Makefile*
|
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 | #%ldconfig_scriptlets
|
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 69 | %files
|
|---|
| 70 | %doc AUTHORS ChangeLog NEWS README
|
|---|
| 71 | %license COPYING
|
|---|
| 72 | %{_libdir}/gif7.dll
|
|---|
| 73 |
|
|---|
| 74 | %files devel
|
|---|
| 75 | %doc doc/*
|
|---|
| 76 | %{_libdir}/gif7.dll
|
|---|
| 77 | %{_libdir}/gif*.a
|
|---|
| 78 | #%{_libdir}/gif*.lib
|
|---|
| 79 | %{_includedir}/gif_lib.h
|
|---|
| 80 |
|
|---|
| 81 | %files utils
|
|---|
| 82 | %{_bindir}/gif*.exe
|
|---|
| 83 | #%{_mandir}/man1/gif*.1*
|
|---|
| 84 |
|
|---|
| 85 | %changelog
|
|---|
| 86 | * Sun Jul 07 2019 Elbert Pol <elbert.pol@gmail.com> - 5.2.1-1
|
|---|
| 87 | - Updated to latest source
|
|---|
| 88 | - Add debug package
|
|---|
| 89 |
|
|---|
| 90 | * Mon Nov 19 2018 Elbert Pol <elbert.pol@gmail.com> - 5.1.4-2
|
|---|
| 91 | - Some spec changes
|
|---|
| 92 |
|
|---|
| 93 | * Sun Nov 18 2018 Elbert Pol <elbert.pol@gmail.com> - 5.1.4-1
|
|---|
| 94 | - First os2 rpm build
|
|---|