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