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