-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhydra.spec
91 lines (79 loc) · 2.31 KB
/
hydra.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
%define debug_package %{nil}
%global pname columnar
%global sname hydra
%global pginstdir /usr/pgsql-%{pgmajorversion}
%ifarch ppc64 ppc64le s390 s390x armv7hl
%if 0%{?rhel} && 0%{?rhel} == 7
%{!?llvm:%global llvm 0}
%else
%{!?llvm:%global llvm 1}
%endif
%else
%{!?llvm:%global llvm 1}
%endif
Name: %{sname}_%{pgmajorversion}
Version: 1.1.2
Release: 1PIGSTY%{?dist}
Summary: Hydra: Column-oriented Postgres. Add scalable analytics to your project in minutes.
License: AGPLv3
URL: https://github.com/hydradatabase/hydra
Source0: hydra-%{version}.tar.gz
# https://github.com/hydradatabase/hydra/archive/refs/tags/v1.1.2.tar.gz
BuildRequires: postgresql%{pgmajorversion}-devel pgdg-srpm-macros >= 1.0.27
Requires: postgresql%{pgmajorversion}-server
%description
Hydra is open source, column-oriented Postgres.
You can query billions of rows instantly on Postgres without code changes.
Parallelized analytics in minutes, not weeks.
%if %llvm
%package llvmjit
Summary: Just-in-time compilation support for %{sname}
Requires: %{name}%{?_isa} = %{version}-%{release}
%if 0%{?rhel} && 0%{?rhel} == 7
%ifarch aarch64
Requires: llvm-toolset-7.0-llvm >= 7.0.1
%else
Requires: llvm5.0 >= 5.0
%endif
%endif
%if 0%{?suse_version} >= 1315 && 0%{?suse_version} <= 1499
BuildRequires: llvm6-devel clang6-devel
Requires: llvm6
%endif
%if 0%{?suse_version} >= 1500
BuildRequires: llvm15-devel clang15-devel
Requires: llvm15
%endif
%if 0%{?fedora} || 0%{?rhel} >= 8
Requires: llvm => 13.0
%endif
%description llvmjit
This packages provides JIT support for %{sname}
%endif
%prep
%setup -q -n %{sname}-%{version}
%build
cd columnar
./configure
PATH=%{pginstdir}/bin:$PATH %{__make} %{?_smp_mflags}
%install
cd columnar
%{__rm} -rf %{buildroot}
PATH=%{pginstdir}/bin:$PATH %{__make} %{?_smp_mflags} install DESTDIR=%{buildroot}
%files
%doc README.md
%{pginstdir}/lib/%{pname}.so
%{pginstdir}/share/extension/%{pname}.control
%{pginstdir}/share/extension/%{pname}*sql
%{pginstdir}/include/server/citus_version.h
%exclude /usr/lib/.build-id/*
%if %llvm
%files llvmjit
%{pginstdir}/lib/bitcode/*
%endif
%changelog
* Sat Apr 27 2024 Vonng <[email protected]> - 1.1.2
* Sat Feb 17 2024 Vonng <[email protected]> - 1.1.1
* Thu Jan 11 2024 Vonng <[email protected]> - 1.1.0
* Sat Sep 23 2023 Vonng <[email protected]> - 1.0.0
- Initial RPM release, used by Pigsty <https://pigsty.io>