]>
Commit | Line | Data |
---|---|---|
ce14e998 | 1 | # |
e5a8c0d8 | 2 | # Conditional build: |
49caa03e | 3 | %bcond_without kerberos5 # Kerberos V support via heimdal |
49caa03e | 4 | %bcond_without golang # Go language bindings |
b7895bd5 | 5 | %bcond_with gccgo # use GCC go frontend instead of golang implementation |
659527ec | 6 | %bcond_without python # Python bindings (any) |
3c5110f4 | 7 | %bcond_without python2 # Python 2 bindings |
659527ec | 8 | %bcond_without python3 # Python 3 bindings |
49caa03e | 9 | %bcond_without zos_remote # zos-remote audisp plugin (LDAP dep) |
f99a4738 | 10 | |
73250644 | 11 | %ifnarch %{go_arches} |
b7895bd5 | 12 | %define with_gccgo 1 |
f99a4738 JR |
13 | %endif |
14 | ||
659527ec | 15 | %if %{without python} |
3c5110f4 | 16 | %undefine with_python2 |
659527ec JB |
17 | %undefine with_python3 |
18 | %endif | |
17421987 | 19 | |
54697230 | 20 | Summary: User space tools for 2.6 kernel auditing |
7f0a1e1e | 21 | Summary(pl.UTF-8): Narzędzia przestrzeni użytkownika do audytu jąder 2.6 |
54697230 | 22 | Name: audit |
24af7ada JB |
23 | Version: 3.1.2 |
24 | Release: 1 | |
ab8f94cb | 25 | License: GPL v2+ |
54697230 | 26 | Group: Daemons |
3e98c4b4 | 27 | Source0: https://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz |
24af7ada | 28 | # Source0-md5: 9d325b543f79b20a8f7ff2021ebac0c3 |
de2a21fd JB |
29 | Source2: %{name}d.init |
30 | Source3: %{name}d.sysconfig | |
80475ae6 | 31 | Patch0: %{name}-install.patch |
ace84936 JP |
32 | Patch1: %{name}-nolibs.patch |
33 | Patch2: %{name}-systemd-notonly.patch | |
34 | Patch3: %{name}-no-refusemanualstop.patch | |
35 | Patch4: golang-paths.patch | |
54697230 JB |
36 | URL: http://people.redhat.com/sgrubb/audit/ |
37 | BuildRequires: autoconf >= 2.59 | |
4faf4930 | 38 | BuildRequires: automake >= 1:1.12.6 |
10583781 | 39 | BuildRequires: glibc-headers >= 6:2.3.6 |
220b3c30 | 40 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
693afa1c | 41 | BuildRequires: libcap-ng-devel |
129cf746 | 42 | BuildRequires: libtool >= 2:2 |
61d763d9 | 43 | BuildRequires: libwrap-devel |
d80f3483 | 44 | BuildRequires: linux-libc-headers >= 7:2.6.30 |
220b3c30 | 45 | %{?with_zos_remote:BuildRequires: openldap-devel} |
3c5110f4 | 46 | %if %{with python2} |
84214962 | 47 | BuildRequires: python-devel >= 1:2.5 |
c7fb6821 | 48 | BuildRequires: python-modules |
9ee6c1ce | 49 | BuildRequires: rpm-pythonprov |
7e695d35 | 50 | BuildRequires: swig-python |
57f09668 | 51 | %endif |
2d0ad02a JR |
52 | %if %{with python3} |
53 | BuildRequires: python3-devel | |
54 | BuildRequires: rpm-pythonprov | |
55 | BuildRequires: swig-python | |
56 | %endif | |
73250644 | 57 | BuildRequires: rpmbuild(macros) >= 2.009 |
ab8f94cb | 58 | BuildRequires: sed >= 4.0 |
b7895bd5 JB |
59 | %if %{with golang} |
60 | %{?with_gccgo:BuildRequires: gcc-go >= 5.1} | |
61 | %{!?with_gccgo:BuildRequires: golang >= 1.4} | |
62 | %endif | |
54697230 | 63 | Requires(post,preun): /sbin/chkconfig |
195529ba | 64 | Requires(post,preun,postun): systemd-units >= 38 |
54697230 | 65 | Requires: %{name}-libs = %{version}-%{release} |
96102055 | 66 | Requires: rc-scripts |
195529ba | 67 | Requires: systemd-units >= 38 |
d50aaacc | 68 | Obsoletes: audit-audispd-plugins < 1.6.7 |
487566eb | 69 | Obsoletes: audit-plugin-prelude < 3 |
d50aaacc | 70 | Obsoletes: audit-systemd < 2.2-2 |
54697230 JB |
71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
72 | ||
73 | %define _sbindir /sbin | |
ab8f94cb JB |
74 | # use /lib, because this path is put in /usr/share/.../settings.py |
75 | %define _libexecdir %{_prefix}/lib | |
54697230 JB |
76 | |
77 | %description | |
78 | The audit package contains the user space utilities for storing and | |
79 | processing the audit records generate by the audit subsystem in the | |
80 | Linux 2.6 kernel. | |
81 | ||
b27e8f95 JR |
82 | %description -l pl.UTF-8 |
83 | Ten pakiet zawiera narzędzia przestrzeni użytkownika do przechowywania | |
84 | i przetwarzania rekordów audytu generowanych przez podsystem audytu w | |
85 | jądrach Linuksa 2.6. | |
54697230 JB |
86 | |
87 | %package libs | |
5a56b716 | 88 | Summary: Dynamic audit libraries |
7f0a1e1e | 89 | Summary(pl.UTF-8): Biblioteki dynamiczne audit |
ab8f94cb | 90 | License: LGPL v2.1+ |
54697230 JB |
91 | Group: Libraries |
92 | ||
93 | %description libs | |
5a56b716 | 94 | The audit-libs package contains the dynamic libraries needed for |
54697230 JB |
95 | applications to use the audit framework. |
96 | ||
b27e8f95 | 97 | %description libs -l pl.UTF-8 |
5a56b716 | 98 | Ten pakiet zawiera biblioteki dynamiczne potrzebne dla aplikacji |
b27e8f95 | 99 | używających środowiska audytu. |
54697230 JB |
100 | |
101 | %package libs-devel | |
5a56b716 | 102 | Summary: Header files for audit libraries |
7f0a1e1e | 103 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek audit |
ab8f94cb | 104 | License: LGPL v2.1+ |
54697230 JB |
105 | Group: Development/Libraries |
106 | Requires: %{name}-libs = %{version}-%{release} | |
d80f3483 | 107 | Requires: linux-libc-headers >= 7:2.6.30 |
9a4de669 | 108 | Requires: libcap-ng-devel |
54697230 JB |
109 | |
110 | %description libs-devel | |
111 | The audit-libs-devel package contains the header files needed for | |
112 | developing applications that need to use the audit framework library. | |
113 | ||
b27e8f95 JR |
114 | %description libs-devel -l pl.UTF-8 |
115 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji | |
116 | używających biblioteki środowiska audytu. | |
54697230 JB |
117 | |
118 | %package libs-static | |
5a56b716 | 119 | Summary: Static audit libraries |
7f0a1e1e | 120 | Summary(pl.UTF-8): Statyczne biblioteki audit |
ab8f94cb | 121 | License: LGPL v2.1+ |
54697230 JB |
122 | Group: Development/Libraries |
123 | Requires: %{name}-libs-devel = %{version}-%{release} | |
124 | ||
125 | %description libs-static | |
5a56b716 JB |
126 | The audit-libs-static package contains the static libraries for |
127 | developing applications that need to use the audit framework. | |
54697230 | 128 | |
b27e8f95 | 129 | %description libs-static -l pl.UTF-8 |
5a56b716 | 130 | Ten pakiet zawiera statyczne biblioteki do tworzenia aplikacji |
b27e8f95 | 131 | używających środowiska audytu. |
54697230 | 132 | |
49caa03e JB |
133 | %package -n golang-audit |
134 | Summary: Go language interface to libaudit library | |
135 | Summary(pl.UTF-8): Interfejs języka Go do biblioteki libaudit | |
136 | License: LGPL v2.1+ | |
137 | Group: Development/Languages | |
138 | Requires: %{name}-libs = %{version}-%{release} | |
b7895bd5 JB |
139 | %if %{with gccgo} |
140 | Requires: gcc-go >= 5.1 | |
141 | %else | |
659527ec | 142 | Requires: golang >= 1.4 |
b7895bd5 | 143 | %endif |
49caa03e JB |
144 | |
145 | %description -n golang-audit | |
146 | Go language interface to libaudit library. | |
147 | ||
148 | %description -n golang-audit -l pl.UTF-8 | |
149 | Interfejs języka Go do biblioteki libaudit. | |
150 | ||
9ee6c1ce | 151 | %package -n python-audit |
659527ec JB |
152 | Summary: Python 2.x interface to libaudit library |
153 | Summary(pl.UTF-8): Interfejs Pythona 2.x do biblioteki libaudit | |
ab8f94cb | 154 | License: LGPL v2.1+ |
9ee6c1ce JB |
155 | Group: Libraries/Python |
156 | Requires: %{name}-libs = %{version}-%{release} | |
157 | ||
158 | %description -n python-audit | |
659527ec | 159 | Python 2.x interface to libaudit library. |
9ee6c1ce | 160 | |
b27e8f95 | 161 | %description -n python-audit -l pl.UTF-8 |
659527ec | 162 | Interfejs Pythona 2.x do biblioteki libaudit. |
9ee6c1ce | 163 | |
2d0ad02a | 164 | %package -n python3-audit |
659527ec JB |
165 | Summary: Python 3.x interface to libaudit library |
166 | Summary(pl.UTF-8): Interfejs Pythona 3.x do biblioteki libaudit | |
2d0ad02a JR |
167 | License: LGPL v2.1+ |
168 | Group: Libraries/Python | |
169 | Requires: %{name}-libs = %{version}-%{release} | |
170 | ||
171 | %description -n python3-audit | |
659527ec | 172 | Python 3.x interface to libaudit library. |
2d0ad02a JR |
173 | |
174 | %description -n python3-audit -l pl.UTF-8 | |
659527ec | 175 | Interfejs Pythona 3.x do biblioteki libaudit. |
2d0ad02a | 176 | |
54697230 JB |
177 | %prep |
178 | %setup -q | |
eb9b3ab9 | 179 | %patch0 -p1 |
ace84936 | 180 | %patch1 -p1 |
61d763d9 | 181 | %patch2 -p1 |
d1e0ebb3 | 182 | %patch3 -p1 |
ace84936 | 183 | %patch4 -p1 |
487566eb | 184 | |
68d62ac9 | 185 | %if %{without python} |
99572413 JP |
186 | sed 's#[^ ]*swig/[^ ]*/Makefile ##g' -i configure.ac |
187 | sed 's/swig//' -i bindings/Makefile.am | |
57f09668 | 188 | %endif |
189 | ||
54697230 JB |
190 | %build |
191 | %{__libtoolize} | |
192 | %{__aclocal} | |
193 | %{__autoconf} | |
194 | %{__autoheader} | |
195 | %{__automake} | |
cc094a3e | 196 | %configure \ |
56096462 JP |
197 | CC_FOR_BUILD="%{__cc}" \ |
198 | CPPFLAGS_FOR_BUILD="%{rpmcppflags}" \ | |
199 | CFLAGS_FOR_BUILD="%{rpmcflags}" \ | |
200 | LDFLAGS_FOR_BUILD="%{rpmldflags}" \ | |
220b3c30 | 201 | %{?with_kerberos5:--enable-gssapi-krb5} \ |
ffa39469 | 202 | --enable-systemd \ |
61d763d9 | 203 | --with-apparmor \ |
129cf746 | 204 | --with-io_uring \ |
61d763d9 | 205 | --with-libwrap \ |
d1e0ebb3 | 206 | %{!?with_zos_remote:--disable-zos-remote} |
54697230 | 207 | |
738da8d6 | 208 | %{__make} |
bf2e6acc | 209 | |
54697230 JB |
210 | %install |
211 | rm -rf $RPM_BUILD_ROOT | |
0167336b | 212 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/audit/rules.d,%{_var}/log/audit} |
54697230 JB |
213 | |
214 | %{__make} install \ | |
215 | DESTDIR=$RPM_BUILD_ROOT | |
216 | ||
0167336b JB |
217 | # default to no audit (and no overhead) |
218 | cp -p rules/10-no-audit.rules $RPM_BUILD_ROOT%{_sysconfdir}/audit/rules.d | |
219 | ||
738da8d6 JR |
220 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/auditd |
221 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/auditd | |
bf2e6acc | 222 | |
54697230 | 223 | install -d $RPM_BUILD_ROOT/%{_lib} |
129cf746 | 224 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libaudit.so.* $RPM_BUILD_ROOT/%{_lib} |
fef538cf | 225 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libaudit.so.*.*.*) \ |
1a8b063a | 226 | $RPM_BUILD_ROOT%{_libdir}/libaudit.so |
129cf746 | 227 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libauparse.so.* $RPM_BUILD_ROOT/%{_lib} |
fef538cf | 228 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libauparse.so.*.*.*) \ |
8ba70267 | 229 | $RPM_BUILD_ROOT%{_libdir}/libauparse.so |
54697230 | 230 | |
738da8d6 JR |
231 | # RH initscripts-specific |
232 | %{__rm} -r $RPM_BUILD_ROOT%{_libexecdir}/initscripts | |
6c98eb8c | 233 | |
3c5110f4 | 234 | %if %{with python2} |
68d62ac9 JB |
235 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
236 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
738da8d6 | 237 | %py_postclean |
487566eb | 238 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la |
57f09668 | 239 | %endif |
9ee6c1ce | 240 | |
659527ec | 241 | %if %{with python3} |
487566eb | 242 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/*.la |
2d0ad02a JR |
243 | %endif |
244 | ||
54697230 JB |
245 | %clean |
246 | rm -rf $RPM_BUILD_ROOT | |
247 | ||
248 | %post libs -p /sbin/ldconfig | |
249 | %postun libs -p /sbin/ldconfig | |
250 | ||
251 | %post | |
738da8d6 JR |
252 | # Copy default rules into place on new installation |
253 | if [ ! -e %{_sysconfdir}/audit/audit.rules ] ; then | |
0167336b | 254 | cp -a %{_sysconfdir}/audit/rules.d/10-no-audit.rules %{_sysconfdir}/audit/audit.rules |
738da8d6 | 255 | fi |
54697230 | 256 | /sbin/chkconfig --add auditd |
2a6b8c9c | 257 | %service auditd restart "audit daemon" |
7ede5762 | 258 | %systemd_post auditd.service |
54697230 JB |
259 | |
260 | %preun | |
261 | if [ "$1" = "0" ]; then | |
2a6b8c9c | 262 | %service auditd stop |
54697230 JB |
263 | /sbin/chkconfig --del auditd |
264 | fi | |
9a3b9076 BZ |
265 | %systemd_preun auditd.service |
266 | ||
7ede5762 JR |
267 | %postun |
268 | %systemd_reload | |
269 | ||
487566eb JB |
270 | %triggerpostun -- audit < 3.0 |
271 | if [ -f %{_sysconfdir}/audisp/audisp-remote.conf.rpmsave -a ! -f %{_sysconfdir}/audit/audisp-remote.conf.rpmnew ]; then | |
272 | mv -f %{_sysconfdir}/audit/audisp-remote.conf %{_sysconfdir}/audit/audisp-remote.conf.rpmnew | |
273 | mv -f %{_sysconfdir}/audisp/audisp-remote.conf.rpmsave %{_sysconfdir}/audit/audisp-remote.conf | |
274 | fi | |
275 | if [ -f %{_sysconfdir}/audisp/plugins.d/af_unix.conf.rpmsave -a ! -f %{_sysconfdir}/audit/plugins.d/af_unix.conf.rpmnew ]; then | |
276 | mv -f %{_sysconfdir}/audit/plugins.d/af_unix.conf %{_sysconfdir}/audit/plugins.d/af_unix.conf.rpmnew | |
277 | mv -f %{_sysconfdir}/audisp/plugins.d/af_unix.conf.rpmsave %{_sysconfdir}/audit/plugins.d/af_unix.conf | |
278 | fi | |
279 | if [ -f %{_sysconfdir}/audisp/plugins.d/au-remote.conf.rpmsave -a ! -f %{_sysconfdir}/audit/plugins.d/au-remote.conf.rpmnew ]; then | |
280 | mv -f %{_sysconfdir}/audit/plugins.d/au-remote.conf %{_sysconfdir}/audit/plugins.d/au-remote.conf.rpmnew | |
281 | mv -f %{_sysconfdir}/audisp/plugins.d/au-remote.conf.rpmsave %{_sysconfdir}/audit/plugins.d/au-remote.conf | |
282 | fi | |
283 | if [ -f %{_sysconfdir}/audisp/plugins.d/syslog.conf.rpmsave -a ! -f %{_sysconfdir}/audit/plugins.d/syslog.conf.rpmnew ]; then | |
284 | mv -f %{_sysconfdir}/audit/plugins.d/syslog.conf %{_sysconfdir}/audit/plugins.d/syslog.conf.rpmnew | |
285 | mv -f %{_sysconfdir}/audisp/plugins.d/syslog.conf.rpmsave %{_sysconfdir}/audit/plugins.d/syslog.conf | |
286 | fi | |
287 | %if %{with zos_remote} | |
288 | if [ -f %{_sysconfdir}/audisp/zos-remote.conf.rpmsave -a ! -f %{_sysconfdir}/audit/zos-remote.conf.rpmnew ]; then | |
289 | mv -f %{_sysconfdir}/audit/zos-remote.conf %{_sysconfdir}/audit/zos-remote.conf.rpmnew | |
290 | mv -f %{_sysconfdir}/audisp/zos-remote.conf.rpmsave %{_sysconfdir}/audit/zos-remote.conf | |
291 | fi | |
292 | if [ -f %{_sysconfdir}/audisp/plugins.d/audisp-zos-remote.conf.rpmsave -a ! -f %{_sysconfdir}/audit/plugins.d/audisp-zos-remote.conf.rpmnew ]; then | |
293 | mv -f %{_sysconfdir}/audit/plugins.d/audisp-zos-remote.conf %{_sysconfdir}/audit/plugins.d/audisp-zos-remote.conf.rpmnew | |
294 | mv -f %{_sysconfdir}/audisp/plugins.d/audisp-zos-remote.conf.rpmsave %{_sysconfdir}/audit/plugins.d/audisp-zos-remote.conf | |
295 | fi | |
296 | %endif | |
297 | ||
54697230 JB |
298 | %files |
299 | %defattr(644,root,root,755) | |
a32d4fda | 300 | %doc AUTHORS ChangeLog README THANKS rules/{README-rules,*.rules} init.d/auditd.cron |
2bfdaebd | 301 | %attr(750,root,root) %{_bindir}/aulast |
08b12da9 JB |
302 | %attr(750,root,root) %{_bindir}/aulastlog |
303 | %attr(750,root,root) %{_bindir}/ausyscall | |
d80f3483 | 304 | %attr(750,root,root) %{_bindir}/auvirt |
54697230 JB |
305 | %attr(750,root,root) %{_sbindir}/auditctl |
306 | %attr(750,root,root) %{_sbindir}/auditd | |
896d27e1 | 307 | %attr(750,root,root) %{_sbindir}/augenrules |
e5a8c0d8 | 308 | %attr(750,root,root) %{_sbindir}/aureport |
54697230 JB |
309 | %attr(750,root,root) %{_sbindir}/ausearch |
310 | %attr(750,root,root) %{_sbindir}/autrace | |
129cf746 | 311 | %attr(755,root,root) %{_sbindir}/audisp-af_unix |
08b12da9 | 312 | %attr(755,root,root) %{_sbindir}/audisp-remote |
487566eb JB |
313 | %attr(755,root,root) %{_sbindir}/audisp-syslog |
314 | %{_libexecdir}/audit-functions | |
315 | %dir %{_datadir}/audit | |
316 | %{_datadir}/audit/sample-rules | |
7630c8d3 | 317 | %dir %{_sysconfdir}/audit |
487566eb | 318 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audit/audisp-remote.conf |
9a4de669 | 319 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audit/audit-stop.rules |
7630c8d3 | 320 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audit/auditd.conf |
487566eb JB |
321 | %dir %{_sysconfdir}/audit/plugins.d |
322 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audit/plugins.d/af_unix.conf | |
323 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audit/plugins.d/au-remote.conf | |
324 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audit/plugins.d/syslog.conf | |
896d27e1 | 325 | %dir %{_sysconfdir}/audit/rules.d |
0167336b | 326 | %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/audit/rules.d/10-no-audit.rules |
80475ae6 | 327 | %attr(754,root,root) /etc/rc.d/init.d/auditd |
f6ae0a53 | 328 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/auditd |
7ede5762 | 329 | %{systemdunitdir}/auditd.service |
54697230 | 330 | %attr(750,root,root) %dir %{_var}/log/audit |
08b12da9 | 331 | %{_mandir}/man5/audisp-remote.conf.5* |
80475ae6 | 332 | %{_mandir}/man5/auditd.conf.5* |
487566eb | 333 | %{_mandir}/man5/auditd-plugins.5* |
526a1f46 | 334 | %{_mandir}/man5/ausearch-expression.5* |
693afa1c | 335 | %{_mandir}/man7/audit.rules.7* |
129cf746 | 336 | %{_mandir}/man8/audisp-af_unix.8* |
08b12da9 | 337 | %{_mandir}/man8/audisp-remote.8* |
487566eb | 338 | %{_mandir}/man8/audisp-syslog.8* |
526a1f46 JB |
339 | %{_mandir}/man8/auditctl.8* |
340 | %{_mandir}/man8/auditd.8* | |
896d27e1 | 341 | %{_mandir}/man8/augenrules.8* |
2bfdaebd | 342 | %{_mandir}/man8/aulast.8* |
526a1f46 JB |
343 | %{_mandir}/man8/aulastlog.8* |
344 | %{_mandir}/man8/aureport.8* | |
345 | %{_mandir}/man8/ausearch.8* | |
08b12da9 | 346 | %{_mandir}/man8/ausyscall.8* |
526a1f46 | 347 | %{_mandir}/man8/autrace.8* |
d80f3483 | 348 | %{_mandir}/man8/auvirt.8* |
54697230 | 349 | |
487566eb JB |
350 | %if %{with zos_remote} |
351 | %attr(755,root,root) %{_sbindir}/audispd-zos-remote | |
352 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audit/zos-remote.conf | |
353 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audit/plugins.d/audispd-zos-remote.conf | |
354 | %{_mandir}/man5/zos-remote.conf.5* | |
355 | %{_mandir}/man8/audispd-zos-remote.8* | |
356 | %endif | |
357 | ||
54697230 JB |
358 | %files libs |
359 | %defattr(644,root,root,755) | |
360 | %attr(755,root,root) /%{_lib}/libaudit.so.*.*.* | |
82313177 | 361 | %attr(755,root,root) %ghost /%{_lib}/libaudit.so.1 |
8ba70267 | 362 | %attr(755,root,root) /%{_lib}/libauparse.so.*.*.* |
fef538cf | 363 | %attr(755,root,root) %ghost /%{_lib}/libauparse.so.0 |
7630c8d3 | 364 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libaudit.conf |
693afa1c | 365 | %{_mandir}/man5/libaudit.conf.5* |
54697230 JB |
366 | |
367 | %files libs-devel | |
368 | %defattr(644,root,root,755) | |
369 | %attr(755,root,root) %{_libdir}/libaudit.so | |
8ba70267 | 370 | %attr(755,root,root) %{_libdir}/libauparse.so |
54697230 | 371 | %{_libdir}/libaudit.la |
8ba70267 | 372 | %{_libdir}/libauparse.la |
6d3a6f20 | 373 | %{_includedir}/auparse*.h |
54697230 | 374 | %{_includedir}/libaudit.h |
49caa03e | 375 | %{_pkgconfigdir}/audit.pc |
2d0ad02a | 376 | %{_pkgconfigdir}/auparse.pc |
0167336b | 377 | %{_aclocaldir}/audit.m4 |
526a1f46 JB |
378 | %{_mandir}/man3/audit_*.3* |
379 | %{_mandir}/man3/auparse_*.3* | |
380 | %{_mandir}/man3/ausearch_*.3* | |
381 | %{_mandir}/man3/get_auditfail_action.3* | |
382 | %{_mandir}/man3/set_aumessage_mode.3* | |
54697230 JB |
383 | |
384 | %files libs-static | |
385 | %defattr(644,root,root,755) | |
386 | %{_libdir}/libaudit.a | |
8ba70267 | 387 | %{_libdir}/libauparse.a |
9ee6c1ce | 388 | |
49caa03e JB |
389 | %if %{with golang} |
390 | %files -n golang-audit | |
391 | %defattr(644,root,root,755) | |
2d0ad02a JR |
392 | %dir %{_libdir}/golang/src/redhat.com |
393 | %{_libdir}/golang/src/redhat.com/audit | |
49caa03e JB |
394 | %endif |
395 | ||
3c5110f4 | 396 | %if %{with python2} |
9ee6c1ce JB |
397 | %files -n python-audit |
398 | %defattr(644,root,root,755) | |
399 | %attr(755,root,root) %{py_sitedir}/_audit.so | |
84214962 | 400 | %attr(755,root,root) %{py_sitedir}/auparse.so |
4c11c375 | 401 | %{py_sitedir}/audit.py[co] |
57f09668 | 402 | %endif |
2d0ad02a JR |
403 | |
404 | %if %{with python3} | |
405 | %files -n python3-audit | |
406 | %defattr(644,root,root,755) | |
407 | %attr(755,root,root) %{py3_sitedir}/_audit.so | |
408 | %attr(755,root,root) %{py3_sitedir}/auparse.so | |
409 | %{py3_sitedir}/audit.py | |
4faf4930 | 410 | %{py3_sitedir}/__pycache__/audit.cpython-*.py[co] |
2d0ad02a | 411 | %endif |