File pglogical.spec of Package pglogical
# spec file for package pglogical
#
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# Those variables are important as they are used by pg_* macros below
%define pg_name @BUILD_FLAVOR@%{nil}
%define ext_name pglogical
%{pg_version_from_name}
%define pkg_version REL2_4_5
Name: %{pg_name}-%{ext_name}
Version: 2.4.5
Release: 0
License: PostgreSQL
Summary: The next generation replication system for PostgreSQL
Url: http://2ndquadrant.com/en/resources/pglogical/
Group: Productivity/Databases/Tools
Source: https://github.com/2ndQuadrant/pglogical/archive/refs/tags/%{pkg_version}.tar.gz#/%{ext_name}-%{pkg_version}.tar.gz
BuildRequires: pkgconfig(krb5)
BuildRequires: %{pg_name}-llvmjit-devel
%pg_server_requires
%if "%{pg_name}" == ""
ExclusiveArch: do_not_build
%endif
%description
The pglogical extension provides logical streaming replication for PostgreSQL,
using a publish/subscribe model. It is based on technology developed as part
of the BDR project (http://2ndquadrant.com/BDR).
%prep
%autosetup -p1 -n %{ext_name}-%{pkg_version}
%build
%make_pgxs
%install
%make_install
%post
/usr/share/postgresql/install-alternatives %pg_version
%postun
/usr/share/postgresql/install-alternatives %pg_version
%files
%doc FAQ.md README.md
%license COPYRIGHT
%ghost %{_bindir}/pglogical_create_subscriber
%{pg_config_bindir}/%{ext_name}*
%{pg_config_pkglibdir}/%{ext_name}*.so
%{pg_config_sharedir}/extension/%{ext_name}*
%if %{postgresql_has_llvm}
%{pg_config_pkglibdir}/bitcode/*
%endif
%changelog