Undo fix to libaudit.h before installing

This commit is contained in:
Steve Grubb 2022-02-24 08:37:51 -05:00
parent 04a979b02d
commit 2a2075268e
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
diff -urp audit-3.0.8.orig/lib/libaudit.h audit-3.0.8/lib/libaudit.h
--- audit-3.0.8.orig/lib/libaudit.h 2022-02-14 14:14:08.000000000 -0500
+++ audit-3.0.8/lib/libaudit.h 2022-02-23 13:35:52.638340789 -0500
diff -urp /usr/include/libaudit.h.orig /usr/include/libaudit.h
--- /usr/include/libaudit.h.orig 2022-02-14 14:14:08.000000000 -0500
+++ /usr/include/libaudit.h 2022-02-23 13:35:52.638340789 -0500
@@ -39,7 +39,7 @@ extern "C" {
#include <stdint.h>
#include <sys/socket.h>

View File

@ -119,7 +119,6 @@ mkdir -p $RPM_BUILD_ROOT/%{_lib}
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/audit
mkdir -p --mode=0700 $RPM_BUILD_ROOT/%{_var}/log/audit
mkdir -p $RPM_BUILD_ROOT/%{_var}/spool/audit
%patch4 -p1
make DESTDIR=$RPM_BUILD_ROOT install
# Remove these items so they don't get picked up.
@ -133,6 +132,9 @@ find $RPM_BUILD_ROOT/%{_libdir}/python%{python3_version}/site-packages -name '*.
touch -r ./audit.spec $RPM_BUILD_ROOT/etc/libaudit.conf
touch -r ./audit.spec $RPM_BUILD_ROOT/usr/share/man/man5/libaudit.conf.5.gz
# undo the workaround
%patch4 -p1
%check
make check
# Get rid of make files so that they don't get packaged.