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