Skip to content

Commit c1a5f51

Browse files
jpechanegunnarmorling
authored andcommitted
DBZ-1272 Spec file for RPM package
1 parent c719d3f commit c1a5f51

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

rpms/postgres-decoderbufs.spec

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
Name: postgres-decoderbufs
2+
Version: 0.9.5
3+
Release: 1%{?dist}
4+
Summary: PostgreSQL Protocol Buffers logical decoder plugin
5+
6+
License: MIT
7+
URL: https://github.com/debezium/postgres-decoderbufs
8+
9+
%global full_version %{version}.Final
10+
11+
Source0: https://github.com/debezium/%{name}/archive/v%{full_version}.tar.gz
12+
13+
BuildRequires: gcc
14+
BuildRequires: postgresql-devel >= 11, postgresql-server-devel >= 11, postgresql-devel < 12, postgresql-server-devel < 12, postgis-devel < 12
15+
BuildRequires: postgis-devel >= 2
16+
BuildRequires: protobuf-c-devel
17+
18+
Requires: protobuf-c
19+
%{?postgresql_module_requires}
20+
21+
Recommends: postgis
22+
23+
%description
24+
A PostgreSQL logical decoder output plugin to deliver data as Protocol Buffers messages.
25+
26+
%prep
27+
%setup -qn postgres-decoderbufs-%{full_version}
28+
29+
30+
%build
31+
%make_build
32+
33+
34+
%install
35+
%make_install
36+
37+
38+
%files
39+
%doc README.md
40+
%license LICENSE
41+
%{_libdir}/pgsql/decoderbufs.so
42+
%{_datadir}/pgsql/extension/decoderbufs.control
43+
44+
45+
%changelog
46+
* Tue May 14 2019 - Jiri Pechanec <jpechane@redhat.com> 0.9.5-1
47+
- Initial RPM packaging

0 commit comments

Comments
 (0)