]>
Commit | Line | Data |
---|---|---|
e5a1c5b2 ER |
1 | Summary: RethinkDB - the database for solid drives |
2 | Name: rethinkdb | |
3 | Version: 1.8.1 | |
4 | Release: 0.1 | |
5 | License: AGPL | |
6 | Group: Development/Tools | |
7 | Source0: https://github.com/rethinkdb/rethinkdb/archive/v%{version}.tar.gz | |
8 | # Source0-md5: 466aaf278ae9cf9a57f126c34f068118 | |
9 | URL: http://www.rethinkdb.com/ | |
10 | BuildRequires: bash | |
11 | BuildRequires: boost-devel >= 1.40 | |
12 | #BuildRequires: ctags-etags | |
13 | BuildRequires: curl | |
14 | BuildRequires: git-core | |
15 | #BuildRequires: gperftools-devel | |
16 | BuildRequires: libstdc++-devel | |
17 | BuildRequires: m4 | |
18 | BuildRequires: nodejs-devel | |
19 | BuildRequires: npm | |
20 | BuildRequires: openssl-devel | |
21 | BuildRequires: protobuf-devel | |
22 | #BuildRequires: python-pip | |
7285179a | 23 | BuildRequires: sed >= 4.0 |
e5a1c5b2 ER |
24 | BuildRequires: v8-devel |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | RethinkDB is an open-source distributed database. It has an intuitive | |
29 | query language, automatically parallelized queries, and simple | |
30 | administration. | |
31 | ||
32 | %prep | |
33 | %setup -q | |
34 | ||
7285179a ER |
35 | %{__sed} -i -e '1s,^#!.*python,#!%{__python},' scripts/backup/*.py |
36 | ||
e5a1c5b2 ER |
37 | %build |
38 | CXX="%{__cxx}" | |
39 | if [ "$CXX" != "${CXX#ccache }" ]; then | |
40 | ccache=--ccache | |
41 | CXX=${CXX#ccache } | |
42 | fi | |
43 | ||
44 | # NOTE: not autoconf based configure | |
45 | ./configure \ | |
46 | CXX="$CXX" \ | |
47 | CXXFLAGS="%{rpmcxxflags}" \ | |
48 | LDFLAGS="%{rpmldflags}" \ | |
49 | --prefix %{_prefix} \ | |
50 | --sysconfdir %{_sysconfdir} \ | |
51 | --localstatedir %{_localstatedir} \ | |
52 | --without-tcmalloc \ | |
53 | $ccache \ | |
54 | %{nil} | |
55 | ||
56 | %{__make} \ | |
57 | VERBOSE=1 | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | %{__make} install \ | |
62 | init_dir=/etc/rc.d/init.d \ | |
63 | STRIP_ON_INSTALL=0 \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
7285179a ER |
66 | # omit the .py suffix, invoke tools directly without shell wrapper |
67 | for a in $RPM_BUILD_ROOT%{_bindir}/rethinkdb-*.py; do | |
68 | f=${a%.py} | |
69 | mv -f $a $f | |
70 | done | |
71 | ||
e5a1c5b2 ER |
72 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/etc/bash_completion.d/rethinkdb.bash |
73 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/copyright | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | install -d $RPM_BUILD_ROOT/var/lib/rethinkdb/instances.d | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc README.md COPYRIGHT NOTES DEPENDENCIES | |
82 | %dir %{_sysconfdir}/rethinkdb | |
83 | %dir %{_sysconfdir}/rethinkdb/instances.d | |
84 | %{_sysconfdir}/rethinkdb/default.conf.sample | |
85 | %attr(754,root,root) /etc/rc.d/init.d/rethinkdb | |
86 | %attr(755,root,root) %{_bindir}/rethinkdb | |
87 | %attr(755,root,root) %{_bindir}/rethinkdb-dump | |
e5a1c5b2 | 88 | %attr(755,root,root) %{_bindir}/rethinkdb-export |
e5a1c5b2 | 89 | %attr(755,root,root) %{_bindir}/rethinkdb-import |
e5a1c5b2 | 90 | %attr(755,root,root) %{_bindir}/rethinkdb-restore |
e5a1c5b2 ER |
91 | %{_mandir}/man1/rethinkdb.1* |
92 | ||
93 | /etc/bash_completion.d/rethinkdb.bash | |
94 | ||
95 | %dir %{_datadir}/%{name} | |
96 | %{_datadir}/%{name}/web | |
97 | ||
98 | %dir /var/lib/rethinkdb | |
99 | %dir /var/lib/rethinkdb/instances.d |