- Apply sf.net patch #1790969 to fix crash with -log.

- Cosmetic specfile changes.
epel9
Ville Skyttä 17 years ago
parent 33b64b93a0
commit ebaf312e97

@ -0,0 +1,11 @@
--- src/optipng.c_orig 2007-09-09 10:02:38.000000000 +0200
+++ src/optipng.c 2007-09-09 10:03:56.000000000 +0200
@@ -298,6 +298,8 @@
vfprintf(confile, fmt, arg_ptr);
if (global.logfile != NULL)
{
+ va_end(arg_ptr);
+ va_start(arg_ptr, fmt);
vfprintf(global.logfile, fmt, arg_ptr);
fflush(global.logfile);
}

@ -1,12 +1,14 @@
Name: optipng
Version: 0.5.5
Release: 3%{?dist}
Summary: A PNG optimizer and converter
Release: 4%{?dist}
Summary: PNG optimizer and converter
Group: Applications/Multimedia
License: zlib
URL: http://optipng.sourceforge.net/
Source0: http://surfnet.dl.sourceforge.net/sourceforge/optipng/optipng-%{version}.tar.gz
Source0: http://downloads.sourceforge.net/optipng/%{name}-%{version}.tar.gz
# Patch0: http://sourceforge.net/tracker/index.php?func=detail&aid=1790969&group_id=151404&atid=780913
Patch0: optipng-0.5.5-log.patch
Patch1: optipng-0.5.4-makefile-externlibs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -21,6 +23,7 @@ integrity checks and corrections.
%prep
%setup -q
%patch0 -p0
%patch1 -p1
%define makefile gcc.mak
@ -47,10 +50,14 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-)
%doc README.txt LICENSE.txt doc/*
%{_bindir}/optipng
%{_mandir}/man1/optipng.1.gz
%{_mandir}/man1/optipng.1*
%changelog
* Thu Feb 14 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.5.5-4
- Apply sf.net patch #1790969 to fix crash with -log.
- Cosmetic specfile changes.
* Thu Aug 02 2007 Till Maas <opensource till name> - 0.5.5-3
- update License: Tag according to new Guidelines

Loading…
Cancel
Save