From c5c19054b345db50a422aa84631ec2635cb587ec Mon Sep 17 00:00:00 2001 From: Lukas Javorsky Date: Mon, 1 Dec 2025 15:34:07 +0000 Subject: [PATCH] Initial commit on c10s Resolves: RHEL-128174 --- .gitignore | 2 + README.md | 3 ++ postgresql18-pgaudit.spec | 96 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 102 insertions(+) create mode 100644 README.md create mode 100644 postgresql18-pgaudit.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..fa690fd 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/main.tar.gz +/18.0.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..0a27824 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# postgresql18-pgaudit + +The postgresql18-pgaudit package diff --git a/postgresql18-pgaudit.spec b/postgresql18-pgaudit.spec new file mode 100644 index 0000000..b33e391 --- /dev/null +++ b/postgresql18-pgaudit.spec @@ -0,0 +1,96 @@ +%{!?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 - 17.1-1 +- Initial commit on c10s +- Resolves: RHEL-128174 diff --git a/sources b/sources new file mode 100644 index 0000000..39ba6c8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (main.tar.gz) = 52e1cee53a789c645c6978127e3c2ebf2738a719f07dfd249d1f3d6917a0273a2df415d17669f8a3c3e4c90a57a68bccd80e8f5c1af0f6b43c7efa40785cd807