Update to 0.7.

- Build with $RPM_LD_FLAGS.
epel9
Ville Skyttä 13 years ago
parent 8aa5fdba23
commit e566c22751

2
.gitignore vendored

@ -1 +1 @@
/optipng-0.6.5.tar.gz
/*.tar.*

@ -1,17 +0,0 @@
diff -up optipng-0.6.5/src/opngoptim.c~ optipng-0.6.5/src/opngoptim.c
--- optipng-0.6.5/src/opngoptim.c~ 2010-12-22 19:08:00.000000000 +0200
+++ optipng-0.6.5/src/opngoptim.c 2011-04-28 13:16:11.846000052 +0300
@@ -19,12 +19,12 @@
#include "proginfo.h"
#include "cbitset.h"
-#include "cexcept.h"
#include "opngreduc.h"
#include "osys.h"
#include "png.h"
#include "pngx.h"
#include "pngxtern.h"
+#include "cexcept.h"
#include "zlib.h"

@ -1,16 +1,12 @@
%global makefile gcc.mak
Name: optipng
Version: 0.6.5
Release: 3%{?dist}
Version: 0.7
Release: 1%{?dist}
Summary: PNG optimizer and converter
Group: Applications/Multimedia
License: zlib
URL: http://optipng.sourceforge.net/
Source0: http://downloads.sourceforge.net/optipng/%{name}-%{version}.tar.gz
# http://sf.net/tracker/?func=detail&aid=3294326&group_id=151404&atid=780915
Patch0: %{name}-0.6.5-setjmp-include.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: zlib-devel libpng-devel
@ -24,26 +20,26 @@ and corrections.
%prep
%setup -q
%patch0 -p1
# 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.
rm -rf lib/libpng lib/zlib
rm -rf src/libpng src/zlib
%build
./configure -with-system-zlib -with-system-libpng
cd src/
make -f scripts/%{makefile} %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"\
LDFLAGS="$RPM_OPT_FLAGS"
./configure -prefix=%{_prefix} -mandir=%{_mandir} \
-with-system-zlib -with-system-libpng
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
cd src/
make -f scripts/%{makefile} install DESTDIR="$RPM_BUILD_ROOT"\
prefix="%{_prefix}" \
man1dir="%{_mandir}/man1"
make install DESTDIR=$RPM_BUILD_ROOT
chmod -c 755 $RPM_BUILD_ROOT%{_bindir}/optipng
%check
make test
%clean
@ -58,6 +54,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Mar 2 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.7-1
- Update to 0.7.
- Build with $RPM_LD_FLAGS.
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

@ -1 +1 @@
9df5fa7bb45ae096ed6c6e0d8dc43dc7 optipng-0.6.5.tar.gz
9b2f526ce79ea779c7004c7964ee8bcc optipng-0.7.tar.gz

Loading…
Cancel
Save