%define idmetaversion %(. ./IDMETA; printf $VERSION ) 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: libxslt-devel BuildRequires: bison BuildRequires: libuuid-devel 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 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 cmake \ -Wno-dev \ -D CMAKE_INSTALL_PREFIX=/opt/zorba \ -D ZORBA_SUPPRESS_SWIG:BOOL=ON \ .. cd ../../.. %install cd tmp/zorba-3.0/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