From 19854792ffb3a7f20374a83b758e371170ce266f Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 13 Nov 2014 17:28:26 +0000 Subject: [PATCH] RPM using regular cmake, build in tmp --- zorba.spec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/zorba.spec b/zorba.spec index 2fffc47..35edba9 100644 --- a/zorba.spec +++ b/zorba.spec @@ -3,13 +3,14 @@ Summary: XQuery Processor Name: zorba Version: %{idmetaversion} Release: 1.indexdata +BuildRequires: cmake BuildRequires: gcc gcc-c++ pkgconfig BuildRequires: wget BuildRequires: xerces-c-devel BuildRequires: libcurl-devel -BuildRequires: libedit-devel BuildRequires: libxslt-devel BuildRequires: bison +BuildRequires: libuuid-devel License: Apache Group: Applications/Internet Vendor: Index Data ApS @@ -26,22 +27,27 @@ Requires: xerces-c %prep %setup +rm -fr tmp +mkdir tmp; cd tmp +wget http://ftp.indexdata.dk/pub/support/zorba-3.0.tar.gz +tar zxf zorba-3.0.tar.gz %build +cd tmp/zorba-3.0 mkdir build cd build -/opt/cmake/bin/cmake \ +cmake \ -Wno-dev \ -D CMAKE_INSTALL_PREFIX=/opt/zorba \ -D ZORBA_SUPPRESS_SWIG:BOOL=ON \ .. -cd .. +cd ../../.. %install -cd build +cd tmp/zorba-3.0/build rm -fr ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install -cd .. +cd ../../.. %clean rm -fr ${RPM_BUILD_ROOT} -- 1.7.10.4