giflib/giflib.spec

106 lines
2.6 KiB
RPMSpec
Raw Normal View History

2020-07-24 17:30:37 +08:00
%define debug_package %{nil}
2019-09-30 10:40:34 -04:00
Name: giflib
2020-07-24 17:09:17 +08:00
Version: 5.2.1
2022-06-15 14:49:31 +08:00
Release: 5
2019-09-30 10:40:34 -04:00
Summary: A library and utilities for processing GIFs
License: MIT
URL: http://www.sourceforge.net/projects/giflib/
2020-07-24 17:09:17 +08:00
Source: http://downloads.sourceforge.net/giflib/giflib-%{version}.tar.gz
2019-09-30 10:40:34 -04:00
2020-07-29 17:44:43 +08:00
# Move quantize.c back into libgif.so (#1750122)
Patch0:giflib_quantize.patch
# Fix several defects found by Coverity scan
Patch1:giflib_coverity.patch
# Generate HTML docs with consistent section IDs to avoid multilib difference
Patch2:giflib_html-docs-consistent-ids.patch
2022-06-15 14:49:31 +08:00
Patch3:CVE-2022-28506.patch
2020-07-29 17:44:43 +08:00
2020-07-24 17:09:17 +08:00
BuildRequires: make xmlto gcc
2019-09-30 10:40:34 -04:00
provides: giflib-utils
%description
giflib is a library of gif images and provides utilities for processing images.
%package devel
Summary: files for developing programs which use the giflib library
2020-01-15 02:04:41 +08:00
Requires: %{name} = %{version}-%{release}
2019-09-30 10:40:34 -04:00
%description devel
development header files, libraries for programs using the giflib library.
2021-05-20 11:39:17 +08:00
%package utils
Summary: Programs for manipulating GIF format image files
Requires: %{name}%{?_isa} = %{version}-%{release}
%description utils
The giflib-utils package contains various programs for manipulationg GIF
format imange files.
2019-12-26 15:16:43 +08:00
%package_help
2019-09-30 10:40:34 -04:00
%prep
%autosetup -n %{name}-%{version} -p1
%build
2021-09-04 10:46:55 +08:00
%make_build CFLAGS="$RPM_OPT_FLAGS -s"
2019-09-30 10:40:34 -04:00
%install
2020-07-24 17:09:17 +08:00
%make_install PREFIX="%{_prefix}" LIBDIR="%{_libdir}"
2019-09-30 10:40:34 -04:00
rm -f doc/Makefile*
2020-07-24 17:09:17 +08:00
rm -f %{buildroot}/debugsourcefiles.list
2019-09-30 10:40:34 -04:00
%ldconfig_scriptlets
%files
2019-12-26 15:16:43 +08:00
%defattr(-,root,root)
2020-07-24 17:09:17 +08:00
%doc ChangeLog NEWS README
2019-12-26 15:16:43 +08:00
%license COPYING
2019-09-30 10:40:34 -04:00
%{_libdir}/libgif.so.7*
2020-07-24 17:09:17 +08:00
%exclude %{_libdir}/*.a
2019-09-30 10:40:34 -04:00
%files devel
2019-12-26 15:16:43 +08:00
%defattr(-,root,root)
2019-09-30 10:40:34 -04:00
%doc doc/*
%{_libdir}/libgif.so
%{_includedir}/gif_lib.h
%files help
2019-12-26 15:16:43 +08:00
%defattr(-,root,root)
2019-09-30 10:40:34 -04:00
%{_mandir}/man1/gif*.1*
2021-05-20 11:39:17 +08:00
%files utils
%{_bindir}/gif*
2019-09-30 10:40:34 -04:00
%changelog
2022-06-15 14:49:31 +08:00
* Wed Jun 15 2022 duyiwei <duyiwei@kylinos.cn> - 5.2.1-5
- fix CVE-2022-28506
2021-09-04 10:46:55 +08:00
* Sat Sep 4 2021 zhanzhimin <zhanzhimin@huawei.com> - 5.2.1-4
- strip binary files
2021-05-20 11:39:17 +08:00
* Thu May 20 2021 liuyumeng <liuyumeng5@huawei.com> - 5.2.1-3
- Add a package named utils
2020-07-29 17:44:43 +08:00
* Wed Jul 29 2020 hanhui <hanhui15@huawei.com> - 5.2.1-2
- add bugfix
2020-07-24 17:09:17 +08:00
* Thu Jul 23 2020 hanhui <hanhui15@huawei.com> - 5.2.1-1
- update to 5.2.1
2020-01-15 02:04:41 +08:00
* Wed Jan 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.1.4-6
- add the require for devel
2019-12-26 15:16:43 +08:00
* Tue Dec 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.1.4-5
- change the path of files
2019-12-25 15:46:31 +08:00
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.1.4-4
- Type:cves
- ID:NA
- SUG:NA
- DESC:Add CVE patches
2019-09-30 10:40:34 -04:00
* Tue Sep 10 2019 Lijin Yang <yanglijin@huawei.com> - 5.1.4-3
2019-12-25 15:46:31 +08:00
- Package init