view reverse/MonetDB-reverse.spec @ 10:2047fa5d7dd7

Updated to Dec2016 and later releases; Ported RPM building to Fedora 27. BATnew + BATseqbase was replaced by COLnew. On Fedora 27, we need to add the -g option in order to get debug information, we also add the -O option.
author Sjoerd Mullender <sjoerd@acm.org>
date Thu, 07 Dec 2017 16:33:00 +0100 (2017-12-07)
parents 25168f9188a8
children 99b60d4e57ba
line wrap: on
line source
Name:		MonetDB-reverse
Version:	1.1
Release:	1%{?dist}
Summary:	reverse UDF for MonetDB

License:	MPLv2.0
URL:		http://www.monetdb.org/
Source0:	%{name}-%{version}.tar.bz2

BuildRequires:	MonetDB5-server-devel >= 11.25.1
BuildRequires:	/usr/bin/rst2html
BuildRequires:	/usr/bin/rst2pdf
Requires:	MonetDB-SQL-server5%{?_isa} >= 11.25.1

%description
Simple example User-Defined Function (UDF) for MonetDB.


%prep
%setup -q


%build
export CFLAGS='-O -g'
make %{?_smp_mflags} all doc


%install
rm -rf $RPM_BUILD_ROOT
# create directories so that make install has something to install into
mkdir -p $RPM_BUILD_ROOT%{_libdir}/monetdb5
mkdir -p $RPM_BUILD_ROOT%{_libdir}/monetdb5/createdb
mkdir -p $RPM_BUILD_ROOT%{_libdir}/monetdb5/autoload
%make_install


%files
%doc README.*
# do not include the directories, they are owned by MonetDB
%{_libdir}/monetdb5/*.*
%{_libdir}/monetdb5/*/*

%changelog
* Thu Dec  7 2017 Sjoerd Mullender <sjoerd@acm.org> - 1.1-1
- Updated for the Dec2016 and later releases of MonetDB.

* Tue Jun  7 2016 Sjoerd Mullender <sjoerd@acm.org>
- Initial version.