forked from nahanni/rw_redis_fdw
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrw_redis_fdw.spec
63 lines (53 loc) · 2.14 KB
/
rw_redis_fdw.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
%define redis_fdw_ver 1.0.10
%define postgresql_ver 11
Summary: Redis FDW for PostgreSQL %{postgresql_ver}
Name: luxms-redis_fdw_%{postgresql_ver}
Version: %{redis_fdw_ver}
Release: 1%{?dist}
License: PostgreSQL
URL: https://github.com/pg-redis-fdw/redis_fdw
Vendor: YASP Ltd, Luxms Group
Source0: https://codeload.github.com/luxms/rw_redis_fdw/tar.gz/v1.0.10#/luxms_rw_redis_fdw_%{postgresql_ver}.tar.gz
BuildRequires: hiredis-devel llvm-toolset-7-clang postgresql%{postgresql_ver}-devel gcc
Requires: postgresql%{postgresql_ver}-server
Requires: hiredis
%description
This extension implements a Foreign Data Wrapper for Redis. It is supported on PostgreSQL %{postgresql_ver}
%prep
rm -rf %{name}-%{version}
%{__mkdir} -p %{name}-%{version}
tar -xzvf %{SOURCE0} -C %{_builddir}/%{name}-%{version} --strip-components=1
%build
cd %{name}-%{version}
export PATH=/usr/pgsql-%{postgresql_ver}/bin:$PATH
%{__make}
%install
cd %{name}-%{version}
export PATH=/usr/pgsql-%{postgresql_ver}/bin:$PATH
%{__make} install DESTDIR=%{buildroot}
%files
%defattr(644,root,root,755)
%{_prefix}/pgsql-11/lib/bitcode/redis_fdw.index.bc
%dir %{_prefix}/pgsql-11/lib/bitcode/redis_fdw/
%{_prefix}/pgsql-11/lib/bitcode/redis_fdw/redis_fdw.bc
%attr(0755,root,root) %{_prefix}/pgsql-11/lib/redis_fdw.so
%doc %{name}-%{version}/README.md
%{_prefix}/pgsql-11/share/extension/redis_fdw--*.sql
%{_prefix}/pgsql-11/share/extension/redis_fdw.control
%changelog
* Mon Oct 07 2024 p
- Fix errors running with --enable-cassert, fix memory issues on error handling
* Mon Jul 22 2024 p
- Fix formatting, fix key is NULL error, fix previous release
* Mon Jan 15 2024 p
- Fix error with UPDATE/DELETE operations with function calls
* Sat Aug 26 2023 p
- PostreSQL 15 support
* Wed Dec 07 2022 Andrei Chistyakov
- PostreSQL 14 support
* Mon Aug 29 2022 Dmitri Dorofeev
- Removed %jd from all format strings, using %lld everywhere for 64 bit integers
* Thu Feb 11 2021 Dmitri Dorofeev
- Fix redisCommand() format string, it does not support %jd, so we are using %ld
* Thu Jul 16 2020 Andrei Surgutanov
- Initial RPM specification