Blame SPECS/pgaudit.spec

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