This repository was archived by the owner on Apr 14, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +105
-0
lines changed Expand file tree Collapse file tree 6 files changed +105
-0
lines changed Original file line number Diff line number Diff line change @@ -19,3 +19,6 @@ doc/apidoc
19
19
20
20
# benchmarks results
21
21
bench. * .result.txt
22
+
23
+ # packpack build directory
24
+ /build
Original file line number Diff line number Diff line change 1
1
[submodule "test-run "]
2
2
path = test-run
3
3
url = https://github.com/tarantool/test-run.git
4
+ [submodule "3rd_party/packpack "]
5
+ path = 3rd_party/packpack
6
+ url = https://github.com/packpack/packpack.git
Original file line number Diff line number Diff line change @@ -54,3 +54,7 @@ apidoc:
54
54
.PHONY : serve-apidoc
55
55
serve-apidoc : apidoc
56
56
$(WWW_BROWSER ) ./doc/apidoc/index.html
57
+
58
+ .PHONY : rpm
59
+ rpm :
60
+ OS=el DIST=7 ./3rd_party/packpack/packpack
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -exu # Strict shell (w/o -o pipefail)
4
+
5
+ sudo yum -y install epel-release
6
+
7
+ # XXX: How to enable 1_9, 1_10 or 2_0 conditionally depending on target
8
+ # repository in CI / CD?
9
+
10
+ sudo tee /etc/yum.repos.d/tarantool_1_9.repo << - EOF
11
+ [tarantool_1_9]
12
+ name=EnterpriseLinux-7 - Tarantool
13
+ baseurl=http://download.tarantool.org/tarantool/1.9/el/7/x86_64/
14
+ gpgkey=http://download.tarantool.org/tarantool/1.9/gpgkey
15
+ repo_gpgcheck=1
16
+ gpgcheck=0
17
+ enabled=1
18
+
19
+ [tarantool_1_9-source]
20
+ name=EnterpriseLinux-7 - Tarantool Sources
21
+ baseurl=http://download.tarantool.org/tarantool/1.9/el/7/SRPMS
22
+ gpgkey=http://download.tarantool.org/tarantool/1.9/gpgkey
23
+ repo_gpgcheck=1
24
+ gpgcheck=0
25
+ EOF
26
+
27
+ sudo yum makecache -y --disablerepo=' *' --enablerepo=' tarantool_1_9' --enablerepo=' epel'
28
+
29
+ # XXX: It would be good to have these packages on our RPM repository and
30
+ # install it as BuildRequires.
31
+
32
+ sudo yum -y install luarocks lua-devel
33
+ sudo luarocks install luacheck
34
+
35
+ sudo yum -y install tarantool tarantool-devel \
36
+ msgpuck-devel \
37
+ pcre2 pcre2-devel
38
+ cd / && sudo tarantoolctl rocks install lulpeg
39
+ cd / && sudo tarantoolctl rocks install lrexlib-pcre2
40
+ cd / && sudo tarantoolctl rocks install avro-schema 2.3.2
41
+ cd / && sudo tarantoolctl rocks install shard 2.1
42
+ cd / && sudo tarantoolctl rocks install http
Original file line number Diff line number Diff line change
1
+ Name: tarantool-graphql
2
+ Version: 0.0.0
3
+ Release: 1%{?dist }
4
+ Summary: Set of adapters for GraphQL query language to the Tarantool data model
5
+ Group: Applications/Databases
6
+ License: BSD
7
+ URL: https://github.com/tarantool/graphql
8
+ Source0: https://github.com/tarantool/graphql/archive/%{version }/graphql-%{version }.tar.gz
9
+ BuildArch: noarch
10
+
11
+ # Dependencies for `make test`
12
+ BuildRequires: tarantool >= 1.9.0.0
13
+ #BuildRequires: tarantool-avro-schema >= 2.2.2.4, tarantool-avro-schema < 3.0.0.0
14
+ #BuildRequires: tarantool-shard >= 2.1.0
15
+ BuildRequires: python-virtualenv
16
+ # Dependencies were installed in rpm/prebuild-el-7.sh:
17
+ # * luacheck
18
+ # * lulpeg
19
+ # * lrexlib-pcre2
20
+ # * avro-schema
21
+ # * shard
22
+ # * http
23
+
24
+ # Dependencies for a user
25
+ Requires: tarantool >= 1.9.0.0
26
+ #Requires: tarantool-avro-schema >= 2.0.71, tarantool-avro-schema < 3.0.0.0
27
+ #Requires: lulpeg
28
+
29
+ %description
30
+ Set of adapters for GraphQL query language to the Tarantool data model
31
+
32
+ # /usr/share/tarantool
33
+ %define module_dir %{_datadir }/tarantool
34
+ %define br_module_dir %{buildroot }%{module_dir }
35
+
36
+ %prep
37
+ %setup -q -n %{name }-%{version }
38
+
39
+ %check
40
+ make test
41
+
42
+ %install
43
+ mkdir -p %{br_module_dir }
44
+ cp -r graphql %{br_module_dir }
45
+
46
+ %files
47
+ %{module_dir }/graphql
48
+
49
+ %changelog
50
+
51
+ * Sun May 20 2018 Alexander Turenko <alexander.turenko@tarantool.org>
52
+ - create pseudo-release 0.0.0 for testing deployment
You can’t perform that action at this time.
0 commit comments