From 5cbbbe04c463288e8304c7734df6d9b8fb2866cd Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Thu, 4 Jun 2009 15:23:53 +0000 Subject: [PATCH] don't build against aalib on RHEL --- gimp.spec | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/gimp.spec b/gimp.spec index 1d63851..d737aee 100644 --- a/gimp.spec +++ b/gimp.spec @@ -19,12 +19,19 @@ %bcond_without gutenprint # convenience: install convenience symlinks %bcond_without convenience +# aalib: build with AAlib (ASCII art gfx library) +%if 0%{?rhel} != 0 +# don't use aalib on RHEL +%bcond_with aalib +%else +%bcond_without aalib +%endif Summary: GNU Image Manipulation Program Name: gimp Epoch: 2 Version: 2.6.6 -Release: 3%{?dist} +Release: 4%{?dist} %define binver 2.6 %define gimp_lang_ver 20 %define interfacever 2.0 @@ -38,7 +45,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%__id_u -n) Obsoletes: gimp-perl < 2:2.0 Obsoletes: gimp < 2:2.6.0-3 BuildRequires: chrpath +%if %{with aalib} BuildRequires: aalib-devel +%endif BuildRequires: alsa-lib-devel >= 1.0.0 BuildRequires: babl-devel >= 0.0.22 BuildRequires: cairo-devel >= 1.4.10 @@ -182,6 +191,7 @@ build the print plugin: %{with print} prefer gutenprint over (external) gimp-print plugin: %{with gutenprint} %endif +build ASCII art plugin %{with aalib} EOF @@ -192,9 +202,10 @@ EOF %patch2 -p1 -b .minimize-dialogs %build -if [ ! -f configure ]; then - ./autogen.sh --quiet $MYARCH_FLAGS --prefix=%{_prefix} -fi +# if [ ! -f configure ]; then +# ./autogen.sh --quiet $MYARCH_FLAGS --prefix=%{_prefix} +# fi + # Use PIC/PIE because gimp is likely to deal with files coming from untrusted # sources CFLAGS='-fPIC %optflags -fno-strict-aliasing' @@ -228,7 +239,11 @@ LDFLAGS='-pie' --without-lcms \ %endif --enable-gimp-console \ +%if %{with aalib} --with-aa \ +%else + --without-aa \ +%endif %ifos linux --with-linux-input \ %endif @@ -475,6 +490,9 @@ fi %{_libdir}/gimp/%{interfacever}/plug-ins/help-browser %changelog +* Thu Jun 04 2009 Nils Philippsen - 2:2.6.6-4 +- don't build against aalib on RHEL + * Tue Apr 14 2009 Nils Philippsen - 2:2.6.6-3 - remove rpaths from binaries (#495670)