|
|
@ -1,15 +1,11 @@
|
|
|
|
Name: optipng
|
|
|
|
Name: optipng
|
|
|
|
Version: 0.7.6
|
|
|
|
Version: 0.7.7
|
|
|
|
Release: 9%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: PNG optimizer and converter
|
|
|
|
Summary: PNG optimizer and converter
|
|
|
|
|
|
|
|
|
|
|
|
License: zlib
|
|
|
|
License: zlib
|
|
|
|
URL: http://optipng.sourceforge.net/
|
|
|
|
URL: http://optipng.sourceforge.net/
|
|
|
|
Source0: http://downloads.sourceforge.net/optipng/%{name}-%{version}.tar.gz
|
|
|
|
Source0: http://downloads.sourceforge.net/optipng/%{name}-%{version}.tar.gz
|
|
|
|
# https://sourceforge.net/p/optipng/bugs/65/
|
|
|
|
|
|
|
|
Patch0: 0001-Prevent-integer-overflow-bug-65-CVE-2017-1000229.patch
|
|
|
|
|
|
|
|
# https://sourceforge.net/p/optipng/bugs/69/
|
|
|
|
|
|
|
|
Patch1: optipng-076-sfbug-69.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: zlib-devel libpng-devel
|
|
|
|
BuildRequires: zlib-devel libpng-devel
|
|
|
@ -26,8 +22,6 @@ and corrections.
|
|
|
|
for f in AUTHORS.txt doc/history.txt ; do
|
|
|
|
for f in AUTHORS.txt doc/history.txt ; do
|
|
|
|
iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
|
|
|
|
iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
|
|
|
|
done
|
|
|
|
done
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Ensure system libs and headers are used; as of 0.6.3 pngxtern will use
|
|
|
|
# Ensure system libs and headers are used; as of 0.6.3 pngxtern will use
|
|
|
|
# the bundled headers if present even with -with-system-*, causing failures.
|
|
|
|
# the bundled headers if present even with -with-system-*, causing failures.
|
|
|
@ -59,7 +53,9 @@ make test CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Sat Jul 14 2018 Peter Hanecak <hany@hany.sk> - 0.7.6-9
|
|
|
|
* Sat Jul 14 2018 Peter Hanecak <hany@hany.sk> - 0.7.7-1
|
|
|
|
|
|
|
|
- Update to 0.7.7
|
|
|
|
|
|
|
|
- Dropped pathes (both CVEs fixed in 0.7.7)
|
|
|
|
- Added BuildRequires: gcc
|
|
|
|
- Added BuildRequires: gcc
|
|
|
|
(https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot)
|
|
|
|
(https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot)
|
|
|
|
|
|
|
|
|
|
|
|