f4a004
%global pre Final
f4a004
f4a004
Name:		postgres-decoderbufs
f4a004
Version:	1.9.7
f4a004
Release:	1%{?pre:.%pre}%{?dist}
f4a004
Summary:	PostgreSQL Protocol Buffers logical decoder plugin
f4a004
f4a004
License:	MIT
f4a004
URL:		https://github.com/debezium/postgres-decoderbufs
f4a004
f4a004
%global full_version %{version}.%{?pre:%pre}%{?!pre:Final}
f4a004
f4a004
Source0:	https://github.com/debezium/%{name}/archive/v%{full_version}.tar.gz
f4a004
f4a004
BuildRequires: 	make
f4a004
BuildRequires:	gcc
f4a004
BuildRequires:	postgresql-server-devel >= 15
f4a004
BuildRequires:	protobuf-c-devel
f4a004
f4a004
Requires:	protobuf-c
f4a004
%{?postgresql_module_requires}
f4a004
f4a004
%description
f4a004
A PostgreSQL logical decoder output plugin to deliver data as Protocol Buffers messages.
f4a004
f4a004
f4a004
%if 0%{?postgresql_server_llvmjit}
f4a004
%package llvmjit
f4a004
Summary:	Just-in-time compilation support for %{name}
f4a004
Requires:	%{name}%{?_isa} = %{version}-%{release}
f4a004
f4a004
%description llvmjit
f4a004
Just-in-time compilation support for %{name}.
f4a004
%endif
f4a004
f4a004
f4a004
%prep
f4a004
%setup -qn postgres-decoderbufs-%{full_version}
f4a004
f4a004
f4a004
%build
f4a004
%make_build
f4a004
f4a004
f4a004
%install
f4a004
%make_install
f4a004
f4a004
f4a004
%files
f4a004
%doc README.md
f4a004
%license LICENSE
f4a004
%{_libdir}/pgsql/decoderbufs.so
f4a004
%{_datadir}/pgsql/extension/decoderbufs.control
f4a004
f4a004
%if 0%{?postgresql_server_llvmjit}
f4a004
%files llvmjit
f4a004
%{_libdir}/pgsql/bitcode/decoderbufs.index.bc
f4a004
%{_libdir}/pgsql/bitcode/decoderbufs/
f4a004
%endif
f4a004
f4a004
f4a004
%changelog
f4a004
* Wed Oct 26 2022 Filip Janus <fjanus@redhat.com> - 1.9.7-1.Final
f4a004
- Iitial import for postgresql 15 stream
f4a004
- Related: #2128241
f4a004
f4a004
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.0-4.Final
f4a004
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
f4a004
  Related: rhbz#1991688
f4a004
f4a004
* Thu Apr 22 2021 Honza Horak <hhorak@redhat.com> - 1.4.0-3.Final
f4a004
- Build jit based on what postgresql server does
f4a004
  Related: #1933048
f4a004
f4a004
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.0-2.Final
f4a004
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
f4a004
f4a004
* Wed Feb  3 2021 Honza Horak <hhorak@redhat.com> - 1.4.0-1.Final
f4a004
- Update to new release 1.4.0
f4a004
f4a004
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-0.6.Final
f4a004
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f4a004
f4a004
* Wed Jan 13 16:42:08 CET 2021 Adrian Reber <adrian@lisas.de> - 1.1.0-0.5.Final
f4a004
- Rebuilt for protobuf 3.14
f4a004
f4a004
* Thu Sep 24 2020 Adrian Reber <adrian@lisas.de> - 1.1.0-0.4.Final
f4a004
- Rebuilt for protobuf 3.13
f4a004
f4a004
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-0.3.Final
f4a004
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f4a004
f4a004
* Sun Jun 14 2020 Adrian Reber <adrian@lisas.de> - 1.1.0-0.2.Final
f4a004
- Rebuilt for protobuf 3.12
f4a004
f4a004
* Mon Mar 30 2020 Jiri Pechanec <jpechane@redhat.com> - 1.1.0-0.1.Final
f4a004
- Update to 1.1.0.Final
f4a004
f4a004
* Mon Mar 02 2020 Sandro Mani <manisandro@gmail.com> - 1.0.0-0.1.Beta3
f4a004
- Update to 1.0.0-Beta3
f4a004
- Drop BR: postgis-devel
f4a004
f4a004
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
f4a004
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f4a004
f4a004
* Wed Oct 9 2019 - Jiri Pechanec <jpechane@redhat.com> 0.10.0-1
f4a004
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-2
f4a004
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f4a004
* Tue May 14 2019 - Jiri Pechanec <jpechane@redhat.com> 0.9.5-1
f4a004
- Initial RPM packaging