From: Adam Dickmeiss Date: Thu, 13 Nov 2014 12:32:44 +0000 (+0100) Subject: First files X-Git-Tag: v3.0.1~12 X-Git-Url: http://git.indexdata.com/?p=idzorba-moved-to-github.git;a=commitdiff_plain;h=a1d2e8eca0728b16d20fc45d30a92eb95da7d0a2;ds=sidebyside First files --- a1d2e8eca0728b16d20fc45d30a92eb95da7d0a2 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