thomas: server/gmp Makefile,NONE,1.1 kolab.patch,NONE,1.1

cvs at kolab.org cvs at kolab.org
Mon Aug 25 18:37:19 CEST 2008


Author: thomas

Update of /kolabrepository/server/gmp
In directory doto:/tmp/cvs-serv18599

Added Files:
	Makefile kolab.patch 
Log Message:
Fix kolab/issue2928 (gmp-4.2.2-20080101 does not compile on Debian lenny/amd64)

Idea for the fix by Andrea Soliva, patch provided by Antonio Larrosa.


--- NEW FILE: Makefile ---
ifeq "x$(KOLABPKGURI)" "x"
	KOLABPKGURI = http://ftp.gwdg.de/pub/linux/kolab/server/release/kolab-server-2.2.0/sources/
endif
ifeq "x$(KOLABRPMSRC)" "x"
	KOLABRPMSRC = $(HOME)/RPM/SRC
endif
ifeq "x$(KOLABRPMPKG)" "x"
	KOLABRPMPKG = $(HOME)/RPM/PKG
endif
ifeq "x$(KOLABCVSDIR)" "x"
	KOLABCVSDIR = $(CURDIR)
endif
ifeq "x$(RPM)" "x"
	RPM = $(HOME)/bin/openpkg rpm
endif

PACKAGE=gmp
VERSION=4.2.2
RELEASE=20080101
KOLABRELEASE=20080101_kolab

all: $(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm

$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm $(KOLABCVSDIR)/kolab.patch Makefile
	$(RPM) -ihv $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm

	cd $(KOLABRPMSRC)/$(PACKAGE) && patch < $(KOLABCVSDIR)/kolab.patch && $(RPM) -ba $(PACKAGE).spec
	cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm $(KOLABCVSDIR)

$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm:
	wget -c $(KOLABPKGURI)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm

dist: all
	cp $(KOLABCVSDIR)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm ../stage/

clean:
	rm -f $(KOLABCVSDIR)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm

--- NEW FILE: kolab.patch ---
--- gmp.spec	2008-01-01 15:31:54.000000000 +0100
+++ /tmp/gmp.spec	2008-08-25 16:07:30.000000000 +0200
@@ -32,7 +32,7 @@
 Group:        Algorithm
 License:      LGPL
 Version:      4.2.2
-Release:      20080101
+Release:      20080101_kolab
 
 #   package options
 %option       with_cxx  no
@@ -84,7 +84,7 @@
         amd64-solaris* ) CFLAGS="$CFLAGS -DNO_ASM"; export ABI=32 ;;
     esac
     ./configure \
-        --prefix=%{l_prefix} \
+        --prefix=%{l_prefix} --build=`gcc -dumpmachine` \
 %if "%{with_cxx}" == "yes"
         --enable-cxx \
 %endif





More information about the commits mailing list