85ff5e
Name:		pgaudit
85ff5e
Version:	1.5.0
85ff5e
Release:	6%{?dist}
85ff5e
Summary:	PostgreSQL Audit Extension
85ff5e
85ff5e
License:	PostgreSQL
85ff5e
URL:		http://pgaudit.org
85ff5e
85ff5e
Source0:	https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
85ff5e
85ff5e
BuildRequires: make
85ff5e
BuildRequires:	gcc
85ff5e
BuildRequires:	postgresql-server-devel >= 13, postgresql-server-devel < 14
85ff5e
BuildRequires:	openssl-devel
85ff5e
85ff5e
%{?postgresql_module_requires}
85ff5e
85ff5e
%description
85ff5e
The PostgreSQL Audit extension (pgaudit) provides detailed session
85ff5e
and/or object audit logging via the standard PostgreSQL logging
85ff5e
facility.
85ff5e
85ff5e
The goal of the PostgreSQL Audit extension (pgaudit) is to provide
85ff5e
PostgreSQL users with capability to produce audit logs often required to
85ff5e
comply with government, financial, or ISO certifications.
85ff5e
85ff5e
An audit is an official inspection of an individual's or organization's
85ff5e
accounts, typically by an independent body. The information gathered by
85ff5e
the PostgreSQL Audit extension (pgaudit) is properly called an audit
85ff5e
trail or audit log. The term audit log is used in this documentation.
85ff5e
85ff5e
85ff5e
%prep
85ff5e
%setup -q -n %{name}-%{version}
85ff5e
85ff5e
85ff5e
%build
85ff5e
%make_build USE_PGXS=1 PG_CONFIG=/usr/bin/pg_server_config
85ff5e
85ff5e
85ff5e
%install
85ff5e
%make_install USE_PGXS=1 PG_CONFIG=/usr/bin/pg_server_config
85ff5e
85ff5e
85ff5e
%files
85ff5e
%doc README.md
85ff5e
%license LICENSE
85ff5e
%{_libdir}/pgsql/%{name}.so
85ff5e
%{_datadir}/pgsql/extension/%{name}--1.5.sql
85ff5e
%{_datadir}/pgsql/extension/%{name}.control
85ff5e
85ff5e
85ff5e
%changelog
85ff5e
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.0-6
85ff5e
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
85ff5e
  Related: rhbz#1991688
85ff5e
85ff5e
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.0-5
85ff5e
- Rebuilt for RHEL 9 BETA for openssl 3.0
85ff5e
  Related: rhbz#1971065
85ff5e
85ff5e
* Thu Apr 22 2021 Honza Horak <hhorak@redhat.com> - 1.5.0-4
85ff5e
- Remove llvmjit parts
85ff5e
  Resolves: #1951268
85ff5e
85ff5e
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com>
85ff5e
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
85ff5e
85ff5e
* Mon Feb 08 2021 Pavel Raiskup <praiskup@redhat.com> - 1.5.0-2
85ff5e
- rebuild for libpq ABI fix rhbz#1908268
85ff5e
85ff5e
* Fri Feb  5 2021 Honza Horak <hhorak@redhat.com> - 1.5.0-1
85ff5e
- Update to 1.5.0 for PostgreSQL 13 support
85ff5e
85ff5e
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
85ff5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
85ff5e
85ff5e
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
85ff5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
85ff5e
85ff5e
* Fri Mar 13 2020 Devrim Gündüz <devrim@gunduz.org> - 1.4.0-1
85ff5e
- Update to 1.4.0 for PostgreSQL 12 support
85ff5e
85ff5e
* Sun Mar 08 2020 Patrik Novotný <panovotn@redhat.com> - 1.3.0-5
85ff5e
- Rebuild for PostgreSQL 12
85ff5e
85ff5e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
85ff5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
85ff5e
85ff5e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
85ff5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
85ff5e
85ff5e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
85ff5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
85ff5e
85ff5e
* Thu Oct 18 2018 Petr Kubat <pkubat@redhat.com> - 1.3.0-1
85ff5e
- rebase to latest upstream release
85ff5e
85ff5e
* Wed Sep 05 2018 Pavel Raiskup <praiskup@redhat.com> - 1.2.0-4
85ff5e
- rebuild against postgresql-server-devel (rhbz#1618698)
85ff5e
85ff5e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
85ff5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
85ff5e
85ff5e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
85ff5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
85ff5e
85ff5e
* Wed Dec 20 2017 - Filip Čáp <ficap@redhat.com> 1.2.0-1
85ff5e
- Initial RPM packaging for Fedora
85ff5e
- Based on Devrim Gündüz's packaging for PostgreSQL RPM Repo
85ff5e
85ff5e
* Thu Oct 27 2016 - Devrim Gündüz <devrim@gunduz.org> 1.0.0-1
85ff5e
- Update to 1.0.0
85ff5e
85ff5e
* Fri Oct 21 2016 - Devrim Gündüz <devrim@gunduz.org> 0.0.4-1
85ff5e
- Initial RPM packaging for PostgreSQL RPM Repository