add el5-build related conditonals

epel9
Björn Esser 12 years ago
parent cdc3bb57f9
commit 39d416f3a2

@ -3,7 +3,7 @@
Name: pngquant Name: pngquant
Version: 1.8.3 Version: 1.8.3
Release: 4%{?dist} Release: 5%{?dist}
Summary: PNG quantization tool for reducing image file size Summary: PNG quantization tool for reducing image file size
Group: Applications/Multimedia Group: Applications/Multimedia
License: BSD with advertising License: BSD with advertising
@ -13,6 +13,7 @@ Source0: http://%{name}.org/%{name}-%{version}-src.tar.bz2
# this will be in the next version # this will be in the next version
Patch0: pngquant_respect_system_flags.patch Patch0: pngquant_respect_system_flags.patch
%{?el5:BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)}
BuildRequires: libpng-devel BuildRequires: libpng-devel
@ -47,7 +48,11 @@ make %{?_smp_mflags}
# proper compiler-flags # proper compiler-flags
%configure %configure
%if 0%{?el5}
make install DESTDIR="%{buildroot}" PREFIX=%{_prefix}
%else
%make_install PREFIX=%{_prefix} %make_install PREFIX=%{_prefix}
%endif
install -Dpm0644 %{name}.1 \ install -Dpm0644 %{name}.1 \
%{buildroot}/%{_mandir}/man1/%{name}.1 %{buildroot}/%{_mandir}/man1/%{name}.1
@ -60,6 +65,9 @@ install -Dpm0644 %{name}.1 \
%changelog %changelog
* Fri May 24 2013 Björn Esser <bjoern.esser@gmail.com> - 1.8.3-5
- add el5-build related conditonals
* Wed May 22 2013 Björn Esser <bjoern.esser@gmail.com> - 1.8.3-4 * Wed May 22 2013 Björn Esser <bjoern.esser@gmail.com> - 1.8.3-4
- add Group-Tag to make el5-build happy - add Group-Tag to make el5-build happy

Loading…
Cancel
Save