# # spec file for package audit-libs-python (Version 1.2.9) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: audit-libs-python %define _name audit BuildRequires: audit-devel gcc-c++ python-devel swig Summary: Python bindings for libaudit Version: 1.2.9 Release: 2 License: GNU General Public License (GPL) Group: System/Monitoring URL: http://people.redhat.com/sgrubb/audit/ Source0: audit-%{version}.tar.bz2 Patch0: audit-change-paths.patch Patch1: audit-disable-syscall-contexts.patch Patch2: audit-auparse_missing_return.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: audit-libs = %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' audit-libs`) PreReq: %insserv_prereq %fillup_prereq %description The audit-libs-python package contains the bindings so that libaudit can be used by python. Authors: -------- Steve Grubb %prep %setup -q -n audit-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %build autoreconf -fv --install export CFLAGS="%{optflags} -fno-strict-aliasing" export CXXFLAGS="$CFLAGS" ./configure --prefix=%{_prefix} --sbindir=/sbin --mandir=%{_mandir} --libdir=/%{_lib} --sysconfdir=/etc --with-apparmor pushd src/mt make libaudit.h popd make %install make DESTDIR=$RPM_BUILD_ROOT install -C swig make DESTDIR=$RPM_BUILD_ROOT install -C audisp LIBDIR=$RPM_BUILD_ROOT/%{_libdir}/python%{py_ver}/site-packages mkdir $RPM_BUILD_ROOT/usr/sbin mv $RPM_BUILD_ROOT/sbin/audispd $RPM_BUILD_ROOT/usr/sbin/audispd rm -f $RPM_BUILD_ROOT/%{_libdir}/python%{py_ver}/site-packages/_audit.a rm -f $RPM_BUILD_ROOT/%{_libdir}/python%{py_ver}/site-packages/_audit.la %clean rm -rf $RPM_BUILD_ROOT %post if [ -f /etc/audit/auditd.conf ]; then tmp=`mktemp /etc/audit/auditd-post.$$` if [ -n $tmp ]; then sed 's|^#dispatcher|dispatcher|g' /etc/audit/auditd.conf > $tmp && \ cat $tmp > /etc/audit/auditd.conf rm -f $tmp fi fi %files %defattr(-,root,root,-) %attr(750,root,root) /usr/sbin/audispd %{_libdir}/python%{py_ver}/site-packages/_audit.so %{_libdir}/python%{py_ver}/site-packages/audit.py* %{_libdir}/python%{py_ver}/site-packages/AuditMsg.py* %changelog -n audit-libs-python * Wed Nov 29 2006 - tonyj@suse.de - Upgrade to 1.2.9 (drop several patches which are now upstream) - /usr/sbin/audispd now packaged by audit-libs-python * Sun Nov 05 2006 - ro@suse.de - fix requires * Thu Aug 31 2006 - tonyj@suse.de - Upgrade to 1.2.6-1 * Wed Aug 16 2006 - cthiel@suse.de - split off package