Add macro postgresql_default to be able set up default version in distro
Add symbop pgaudit-any
This commit is contained in:
parent
6b83a1a1f6
commit
601e5da399
@ -1,8 +1,10 @@
|
||||
%{!?postgresql_default:%global postgresql_default 1}
|
||||
|
||||
%global majorname pgaudit
|
||||
%global pgversion 16
|
||||
Name: postgresql%{pgversion}-%{majorname}
|
||||
Version: 16.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: PostgreSQL Audit Extension
|
||||
|
||||
License: PostgreSQL
|
||||
@ -10,6 +12,14 @@ 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 >= 16, postgresql-server-devel < 17
|
||||
@ -18,9 +28,13 @@ BuildRequires: openssl-devel
|
||||
Requires(pre): postgresql-server >= 16, postgresql-server < 17
|
||||
|
||||
%global precise_version %{?epoch:%epoch:}%version-%release
|
||||
Provides: %{majorname} = %precise_version
|
||||
Provides: %{majorname}%{?_isa} = %precise_version
|
||||
Conflicts: %{majorname}
|
||||
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
|
||||
@ -36,6 +50,19 @@ 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}
|
||||
@ -49,7 +76,7 @@ trail or audit log. The term audit log is used in this documentation.
|
||||
%make_install USE_PGXS=1 PG_CONFIG=/usr/bin/pg_server_config
|
||||
|
||||
|
||||
%files
|
||||
%files -n %{pkgname}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_libdir}/pgsql/%{majorname}.so
|
||||
@ -62,6 +89,10 @@ trail or audit log. The term audit log is used in this documentation.
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Dec 11 2023 Filip Janus <fjanus@redhat.com> - 16.0-2
|
||||
- Add macro postgresql_default to be able set up default version in distro
|
||||
- Add symbop pgaudit-any
|
||||
|
||||
* Tue Nov 28 2023 Filip Janus <fjanus@redhat.com> - 16.0-1
|
||||
- Update to 16.0
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user