0247910f44923851e1de0fbd46ddae790b27385b
[idzorba-moved-to-github.git] / zorba.spec
1 %define idmetaversion %(. ./IDMETA; printf $VERSION )
2 Summary: XQuery Processor
3 Name: zorba
4 Version: %{idmetaversion}
5 Release: 1.indexdata
6 BuildRequires: cmake
7 BuildRequires: gcc gcc-c++ pkgconfig
8 BuildRequires: wget
9 BuildRequires: xerces-c-devel
10 BuildRequires: libcurl-devel
11 BuildRequires: libxslt-devel
12 BuildRequires: libuuid-devel
13 License: Apache
14 Group: Applications/Internet
15 Vendor: Index Data ApS <info@indexdata.dk>
16 Source: zorba-%{version}.tar.gz
17 BuildRoot: %{_tmppath}/%{name}-%{version}-root
18 Packager: Adam Dickmeiss <adam@indexdata.dk>
19 URL: http://www.indexdata.com/mp-xquery
20
21 %description
22 Zorba - The XQuery Processor developed by the FLWOR Foundation
23
24 Requires: libcurl
25 Requires: xerces-c
26
27 %prep
28 %setup
29 rm -fr tmp
30 mkdir tmp; cd tmp
31 wget http://ftp.indexdata.dk/pub/support/zorba-3.0.tar.gz
32 tar zxf zorba-3.0.tar.gz
33
34 %build
35 cd tmp/zorba-3.0
36 mkdir build
37 cd build
38 cmake \
39         -Wno-dev \
40         -D CMAKE_INSTALL_PREFIX=/opt/zorba \
41         -D ZORBA_SUPPRESS_SWIG:BOOL=ON \
42         ..
43 cd ../../..
44
45 %install
46 cd tmp/zorba-3.0/build
47 rm -fr ${RPM_BUILD_ROOT}
48 make DESTDIR=${RPM_BUILD_ROOT} install
49 cd ../../..
50
51 %clean
52 rm -fr ${RPM_BUILD_ROOT}
53
54 %files
55 %defattr(-,root,root)
56 /opt/zorba