From 39d416f3a2fce198bf9382ba5335ef34fdb8cff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Fri, 24 May 2013 06:03:06 +0200 Subject: [PATCH] add el5-build related conditonals --- pngquant.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pngquant.spec b/pngquant.spec index 7cc2ae2..e3286e4 100644 --- a/pngquant.spec +++ b/pngquant.spec @@ -3,7 +3,7 @@ Name: pngquant Version: 1.8.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: PNG quantization tool for reducing image file size Group: Applications/Multimedia License: BSD with advertising @@ -13,6 +13,7 @@ Source0: http://%{name}.org/%{name}-%{version}-src.tar.bz2 # this will be in the next version Patch0: pngquant_respect_system_flags.patch +%{?el5:BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)} BuildRequires: libpng-devel @@ -47,7 +48,11 @@ make %{?_smp_mflags} # proper compiler-flags %configure -%make_install PREFIX=%{_prefix} +%if 0%{?el5} + make install DESTDIR="%{buildroot}" PREFIX=%{_prefix} +%else + %make_install PREFIX=%{_prefix} +%endif install -Dpm0644 %{name}.1 \ %{buildroot}/%{_mandir}/man1/%{name}.1 @@ -60,6 +65,9 @@ install -Dpm0644 %{name}.1 \ %changelog +* Fri May 24 2013 Björn Esser - 1.8.3-5 +- add el5-build related conditonals + * Wed May 22 2013 Björn Esser - 1.8.3-4 - add Group-Tag to make el5-build happy