97 lines
2.9 KiB
RPMSpec
97 lines
2.9 KiB
RPMSpec
%{!?postgresql_default:%global postgresql_default 0}
|
|
|
|
%global majorname pgaudit
|
|
%global pgversion 18
|
|
Name: postgresql%{pgversion}-%{majorname}
|
|
Version: 18.0
|
|
Release: 1%{?dist}
|
|
Summary: PostgreSQL Audit Extension
|
|
|
|
License: PostgreSQL
|
|
URL: http://pgaudit.org
|
|
|
|
# Temporary source until postgresql18 support is released
|
|
Source0: https://github.com/%{majorname}/%{majorname}/archive/refs/heads/main.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: postgresql18-server-devel
|
|
BuildRequires: openssl-devel
|
|
|
|
Requires(pre): postgresql18-server
|
|
|
|
%global precise_version %{?epoch:%epoch:}%version-%release
|
|
Provides: %{pkgname} = %precise_version
|
|
%if %?postgresql_default
|
|
Provides: %name = %precise_version
|
|
Provides: postgresql-%{majorname} = %precise_version
|
|
%endif
|
|
Provides: %{pkgname}%{?_isa} = %precise_version
|
|
Provides: %{majorname}-any
|
|
Conflicts: %{majorname}-any
|
|
|
|
%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
|
|
%autosetup -p1 -n %{majorname}-main
|
|
|
|
|
|
%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*.sql
|
|
%{_datadir}/pgsql/extension/%{majorname}.control
|
|
|
|
|
|
%changelog
|
|
* Mon Dec 01 2025 Lukas Javorsky <ljavorsk@redhat.com> - 17.1-1
|
|
- Initial commit on c10s
|
|
- Resolves: RHEL-128174
|