From a1d2e8eca0728b16d20fc45d30a92eb95da7d0a2 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 13 Nov 2014 13:32:44 +0100 Subject: [PATCH 1/1] First files --- IDMETA | 5 +++++ mkdist.sh | 16 ++++++++++++++++ zorba.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 IDMETA create mode 100755 mkdist.sh create mode 100644 zorba.spec diff --git a/IDMETA b/IDMETA new file mode 100644 index 0000000..a981aaf --- /dev/null +++ b/IDMETA @@ -0,0 +1,5 @@ +NAME=zorba +DEBIAN_DIST="jessie wheezy squeeze" +UBUNTU_DIST="utopic trusty saucy precise" +CENTOS_DIST="centos6" +VERSION=3.0 diff --git a/mkdist.sh b/mkdist.sh new file mode 100755 index 0000000..fbcf90a --- /dev/null +++ b/mkdist.sh @@ -0,0 +1,16 @@ +#!/bin/sh +. ./IDMETA +set -x +git log >ChangeLog +git archive --format=tar --prefix=$NAME-$VERSION/ HEAD > $NAME-$VERSION.tar +tar xf $NAME-$VERSION.tar +cp ChangeLog $NAME-$VERSION +cd $NAME-$VERSION +rm -fr debian +cd .. +tar cfz $NAME-$VERSION.tar.gz $NAME-$VERSION +rm $NAME-$VERSION.tar +rm -r $NAME-$VERSION +exit 0 + + diff --git a/zorba.spec b/zorba.spec new file mode 100644 index 0000000..2fffc47 --- /dev/null +++ b/zorba.spec @@ -0,0 +1,51 @@ +%define idmetaversion %(. ./IDMETA; printf $VERSION ) +Summary: XQuery Processor +Name: zorba +Version: %{idmetaversion} +Release: 1.indexdata +BuildRequires: gcc gcc-c++ pkgconfig +BuildRequires: wget +BuildRequires: xerces-c-devel +BuildRequires: libcurl-devel +BuildRequires: libedit-devel +BuildRequires: libxslt-devel +BuildRequires: bison +License: Apache +Group: Applications/Internet +Vendor: Index Data ApS +Source: zorba-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root +Packager: Adam Dickmeiss +URL: http://www.indexdata.com/mp-xquery + +%description +Zorba - The XQuery Processor developed by the FLWOR Foundation + +Requires: libcurl +Requires: xerces-c + +%prep +%setup + +%build +mkdir build +cd build +/opt/cmake/bin/cmake \ + -Wno-dev \ + -D CMAKE_INSTALL_PREFIX=/opt/zorba \ + -D ZORBA_SUPPRESS_SWIG:BOOL=ON \ + .. +cd .. + +%install +cd build +rm -fr ${RPM_BUILD_ROOT} +make DESTDIR=${RPM_BUILD_ROOT} install +cd .. + +%clean +rm -fr ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root) +/opt/zorba -- 1.7.10.4