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