First files
[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: gcc gcc-c++ pkgconfig
7 BuildRequires: wget
8 BuildRequires: xerces-c-devel
9 BuildRequires: libcurl-devel
10 BuildRequires: libedit-devel
11 BuildRequires: libxslt-devel
12 BuildRequires: bison
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
30 %build
31 mkdir build
32 cd build
33 /opt/cmake/bin/cmake \
34         -Wno-dev \
35         -D CMAKE_INSTALL_PREFIX=/opt/zorba \
36         -D ZORBA_SUPPRESS_SWIG:BOOL=ON \
37         ..
38 cd ..
39
40 %install
41 cd build
42 rm -fr ${RPM_BUILD_ROOT}
43 make DESTDIR=${RPM_BUILD_ROOT} install
44 cd ..
45
46 %clean
47 rm -fr ${RPM_BUILD_ROOT}
48
49 %files
50 %defattr(-,root,root)
51 /opt/zorba