forked from pool/giflib
- prep section should just extract and patch, further modifications have to be done in the build section OBS-URL: https://build.opensuse.org/request/show/886252 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/giflib?expand=0&rev=55
104 lines
2.8 KiB
RPMSpec
104 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package giflib
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define lname libgif7
|
|
Name: giflib
|
|
Version: 5.2.1
|
|
Release: 0
|
|
Summary: A Library for Working with GIF Images
|
|
License: MIT
|
|
URL: http://giflib.sf.net/
|
|
Source: http://downloads.sf.net/giflib/%{name}-%{version}.tar.gz
|
|
Source2: baselibs.conf
|
|
Patch1: PIE.patch
|
|
BuildRequires: libtool >= 2
|
|
|
|
%description
|
|
This Library allows manipulating GIF Image files. Since the LZW patents
|
|
have expired, giflib can again be used instead of libungif.
|
|
|
|
%package -n %{lname}
|
|
Summary: A Library for Working with GIF Images
|
|
|
|
%description -n %{lname}
|
|
This Library allows manipulating GIF Image files. Since the LZW patents
|
|
have expired, giflib can again be used instead of libungif.
|
|
|
|
%package progs
|
|
Summary: Tools for Working with the GIF Library
|
|
Provides: ungif = %{version}
|
|
Obsoletes: ungif < %{version}
|
|
|
|
%description progs
|
|
A tool for converting GIFs to various formats.
|
|
|
|
%package devel
|
|
Summary: Library for Working with GIF Images - Files Mandatory for Development
|
|
Requires: %{lname} = %{version}
|
|
|
|
%description devel
|
|
This Library allows manipulating GIF Image files. Since the LZW patents
|
|
have expired, giflib can again be used instead of libungif.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
for file in `find util -name "*.c"`; do
|
|
touch -r $file $file.stamp
|
|
done
|
|
|
|
# USE __TIMESTAMP__ instead of __DATE__ , __TIME__
|
|
# this change is pointless unless we preserve the original
|
|
# file modification time
|
|
for file in `find util -name "*.c"`; do
|
|
sed -i -e s@'__DATE__ ", " __TIME__'@__TIMESTAMP__@g $file;
|
|
touch -r $file.stamp $file;
|
|
rm -v $file.stamp
|
|
done
|
|
|
|
export CFLAGS="%optflags"
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install PREFIX="%{_prefix}" LIBDIR="%{_libdir}"
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
find doc -name "Makefile*" -print -delete
|
|
|
|
# Drop static library
|
|
rm -f %{buildroot}%{_libdir}/libgif.a
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
%files -n %{lname}
|
|
%license COPYING
|
|
%{_libdir}/lib*.so.*
|
|
|
|
%files devel
|
|
%{_includedir}/gif_lib.h
|
|
%{_libdir}/lib*.so
|
|
|
|
%files progs
|
|
%license COPYING
|
|
%doc NEWS README doc
|
|
%{_bindir}/*
|
|
%{_mandir}/man1/*.1%{?ext_man}
|
|
|
|
%changelog
|