30e74a
Name:		pgaudit
30e74a
Version:	1.5.0
30e74a
Release:	1%{?dist}
30e74a
Summary:	PostgreSQL Audit Extension
30e74a
30e74a
License:	PostgreSQL
30e74a
URL:		http://pgaudit.org
30e74a
30e74a
Source0:	https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
30e74a
30e74a
BuildRequires: gcc
30e74a
BuildRequires: postgresql-server-devel >= 13, postgresql-server-devel < 14
30e74a
BuildRequires: libpq-devel >= 13, libpq-devel < 14
30e74a
BuildRequires: openssl-devel
30e74a
30e74a
30e74a
%description
30e74a
The PostgreSQL Audit extension (pgaudit) provides detailed session
30e74a
and/or object audit logging via the standard PostgreSQL logging
30e74a
facility.
30e74a
30e74a
The goal of the PostgreSQL Audit extension (pgaudit) is to provide
30e74a
PostgreSQL users with capability to produce audit logs often required to
30e74a
comply with government, financial, or ISO certifications.
30e74a
30e74a
An audit is an official inspection of an individual's or organization's
30e74a
accounts, typically by an independent body. The information gathered by
30e74a
the PostgreSQL Audit extension (pgaudit) is properly called an audit
30e74a
trail or audit log. The term audit log is used in this documentation.
30e74a
30e74a
30e74a
%prep
30e74a
set -ex
30e74a
%setup -q -n %{name}-%{version}
30e74a
30e74a
30e74a
%build
30e74a
set -ex
30e74a
%{__make} USE_PGXS=1 %{?_smp_mflags}
30e74a
30e74a
30e74a
%install
30e74a
set -ex
30e74a
%{__make}  USE_PGXS=1 %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT install
30e74a
30e74a
30e74a
%files
30e74a
%doc README.md
30e74a
%license LICENSE
30e74a
%{_libdir}/pgsql/%{name}.so
30e74a
%{_datadir}/pgsql/extension/%{name}--1*.sql
30e74a
%{_datadir}/pgsql/extension/%{name}.control
30e74a
30e74a
30e74a
%changelog
30e74a
* Wed Nov 18 2020 Honza Horak <hhorak@redhat.com> - 1.5.0-1
30e74a
- Update to version 1.5.0
30e74a
  Related: #1855776
30e74a
30e74a
* Wed Nov 20 2019 Patrik Novotný <panovotn@redhat.com> - 1.4.0-4
30e74a
- Bump release for rebuild against libpq-12.1-3
30e74a
30e74a
* Tue Nov 12 2019 Patrik Novotný <panovotn@redhat.com> - 1.4.0-3
30e74a
- BuildRequires libpq-devel
30e74a
30e74a
* Tue Nov 12 2019 Patrik Novotný <panovotn@redhat.com> - 1.4.0-2
30e74a
- BuildRequires postgresql-server-devel
30e74a
30e74a
* Wed Oct 02 2019 Patrik Novotný <panovotn@redhat.com> - 1.4.0-1
30e74a
- Update to 1.4.0
30e74a
30e74a
* Sat Jul 27 2019 Honza Horak <hhorak@redhat.com> - 1.3.1-1
30e74a
- Update to 1.3.1 and apply patch for pgsql v12 compatibility
30e74a
30e74a
* Thu Jul 25 2019 Honza Horak <hhorak@redhat.com> - 1.2.0-4
30e74a
- SCLize the SPEC
30e74a
30e74a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
30e74a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
30e74a
30e74a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
30e74a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
30e74a
30e74a
* Wed Dec 20 2017 - Filip Čáp <ficap@redhat.com> 1.2.0-1
30e74a
- Initial RPM packaging for Fedora
30e74a
- Based on Devrim Gündüz's packaging for PostgreSQL RPM Repo
30e74a
30e74a
* Thu Oct 27 2016 - Devrim Gündüz <devrim@gunduz.org> 1.0.0-1
30e74a
- Update to 1.0.0
30e74a
30e74a
* Fri Oct 21 2016 - Devrim Gündüz <devrim@gunduz.org> 0.0.4-1
30e74a
- Initial RPM packaging for PostgreSQL RPM Repository