Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
a282e39037 dist-git conversion 2010-07-28 14:49:28 +00:00
Michel Alexandre Salim
9716685438 Adjust CFLAGS for compiling fribidi on EL-5 2010-07-08 11:24:59 +00:00
Kevin Fenzi
9f35fb7402 Initialize branch EL-6 for fribidi 2010-07-08 01:23:22 +00:00
Bill Nottingham
4e3e559c82 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:30:50 +00:00
3 changed files with 9 additions and 21 deletions

View file

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: fribidi
# $Id: Makefile,v 1.1 2004/09/09 04:52:46 cvsdist Exp $
NAME := fribidi
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attempt a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -28,9 +28,18 @@ FriBidi.
%setup -q
%build
%if 0%{?el5}
# FORTIFY_SOURCE=2 breaks EL-5 build
export CFLAGS=`echo $RPM_OPT_FLAGS | sed -e 's|FORTIFY_SOURCE=2|FORTIFY_SOURCE=1|'`
%ifarch ppc ppc64 x86_64
export CFLAGS="$CFLAGS -DPAGE_SIZE=4096"
%endif
%else
# outside of EL-5, only ppc* needs modification
%ifarch ppc ppc64
export CFLAGS="$RPM_OPT_FLAGS -DPAGE_SIZE=4096"
%endif
%endif
%configure --disable-static
make %{?_smp_mflags}