%{!?postgresql_default:%global postgresql_default 0} %global majorname pgaudit %global pgversion 15 Name: postgresql%{pgversion}-%{majorname} Version: 1.7.0 Release: 10%{?dist} Summary: PostgreSQL Audit Extension License: PostgreSQL URL: http://pgaudit.org Source0: https://github.com/%{majorname}/%{majorname}/archive/%{version}/%{majorname}-%{version}.tar.gz %if %?postgresql_default %global pkgname %{majorname} %package -n %{pkgname} Summary: PostgreSQL Audit Extension %else %global pkgname %name %endif BuildRequires: make BuildRequires: gcc BuildRequires: postgresql-server-devel >= 15, postgresql-server-devel < 16 BuildRequires: openssl-devel Requires(pre): postgresql-server >= 15, postgresql-server < 16 %global precise_version %{?epoch:%epoch:}%version-%release Provides: %{pkgname} = %precise_version %if %?postgresql_default Provides: postgresql-%{majorname} = %precise_version %endif Provides: %{pkgname}%{?_isa} = %precise_version Provides: %{majorname}-any Conflicts: %{pkgname} %description The PostgreSQL Audit extension (pgaudit) provides detailed session and/or object audit logging via the standard PostgreSQL logging facility. The goal of the PostgreSQL Audit extension (pgaudit) is to provide PostgreSQL users with capability to produce audit logs often required to comply with government, financial, or ISO certifications. An audit is an official inspection of an individual's or organization's accounts, typically by an independent body. The information gathered by the PostgreSQL Audit extension (pgaudit) is properly called an audit trail or audit log. The term audit log is used in this documentation. %description -n %{pkgname} The PostgreSQL Audit extension (pgaudit) provides detailed session and/or object audit logging via the standard PostgreSQL logging facility. The goal of the PostgreSQL Audit extension (pgaudit) is to provide PostgreSQL users with capability to produce audit logs often required to comply with government, financial, or ISO certifications. An audit is an official inspection of an individual's or organization's accounts, typically by an independent body. The information gathered by the PostgreSQL Audit extension (pgaudit) is properly called an audit trail or audit log. The term audit log is used in this documentation. %prep %setup -q -n %{majorname}-%{version} %build %make_build USE_PGXS=1 PG_CONFIG=/usr/bin/pg_server_config %install %make_install USE_PGXS=1 PG_CONFIG=/usr/bin/pg_server_config %files -n %{pkgname} %doc README.md %license LICENSE %{_libdir}/pgsql/%{majorname}.so %if 0%{?postgresql_server_llvmjit} %{_libdir}/pgsql/bitcode/%{majorname}.index.bc %{_libdir}/pgsql/bitcode/%{majorname}/%{majorname}.bc %endif %{_datadir}/pgsql/extension/%{majorname}--1.7.sql %{_datadir}/pgsql/extension/%{majorname}.control %changelog * Fri Jul 19 2024 Fedora Release Engineering - 1.7.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 1.7.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.7.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Dec 11 2023 Filip Janus - 1.7.0-7 - Add macro postgresql_default to be able set up default version in distro - Add symbop pgaudit-any * Tue Nov 28 2023 Filip Janus - 1.7.0-6 - Import demodularized version * Fri Jan 20 2023 Fedora Release Engineering - 1.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Nov 16 2022 Ondřej Sloup - 1.7.0-3 - Rebuild for new PostgreSQL 15 * Mon Oct 17 2022 Ondrej Sloup - 1.7.0-2 - Allow PostgreSQL server 15 build requirement * Wed Oct 12 2022 Ondrej Sloup - 1.7.0-1 - Add pgaudit sql 1.7 removed 1.6.2 and 1.6.1-1.6.2 - Rebase to the latest upstream version * Fri Jul 22 2022 Fedora Release Engineering - 1.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 10 2022 Ondrej Sloup - 1.6.2-1 - Add pgaudit sql 1.6.2 and 1.6.1-1.6.2, removed 1.6.1 - Rebase to the latest upstream version * Fri Jan 21 2022 Fedora Release Engineering - 1.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jan 06 2022 Filip Januš - 1.6.1-2 - Update to postgresql 14 * Wed Jan 05 2022 Filip Januš - 1.6.1-1 - Update to v1.6.1 * Fri Jul 23 2021 Fedora Release Engineering - 1.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Apr 16 2021 Honza Horak - 1.5.0-3 - Make llvmjit features optional, follow what is enabled in postgresql * Mon Feb 08 2021 Pavel Raiskup - 1.5.0-2 - rebuild for libpq ABI fix rhbz#1908268 * Fri Feb 5 2021 Honza Horak - 1.5.0-1 - Update to 1.5.0 for PostgreSQL 13 support * Wed Jan 27 2021 Fedora Release Engineering - 1.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Mar 13 2020 Devrim Gündüz - 1.4.0-1 - Update to 1.4.0 for PostgreSQL 12 support * Sun Mar 08 2020 Patrik Novotný - 1.3.0-5 - Rebuild for PostgreSQL 12 * Thu Jan 30 2020 Fedora Release Engineering - 1.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Oct 18 2018 Petr Kubat - 1.3.0-1 - rebase to latest upstream release * Wed Sep 05 2018 Pavel Raiskup - 1.2.0-4 - rebuild against postgresql-server-devel (rhbz#1618698) * Fri Jul 13 2018 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Dec 20 2017 - Filip Čáp 1.2.0-1 - Initial RPM packaging for Fedora - Based on Devrim Gündüz's packaging for PostgreSQL RPM Repo * Thu Oct 27 2016 - Devrim Gündüz 1.0.0-1 - Update to 1.0.0 * Fri Oct 21 2016 - Devrim Gündüz 0.0.4-1 - Initial RPM packaging for PostgreSQL RPM Repository