-
Notifications
You must be signed in to change notification settings - Fork 11
/
aushape.spec
65 lines (51 loc) · 1.68 KB
/
aushape.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Name: aushape
Version: 2
Release: 1%{?dist}
Summary: Audit message format conversion library and utility
Group: Applications/System
License: GPLv2+ and LGPLv2+
URL: https://github.com/Scribery/%{name}
Source: https://github.com/Scribery/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: audit-libs-devel
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description
Aushape is a library and a tool for converting audit messages to other
formats.
%global _hardened_build 1
%prep
%setup -q
%build
%configure --disable-rpath --disable-static
make %{?_smp_mflags}
%check
make %{?_smp_mflags} check
%install
make install DESTDIR=%{buildroot}
rm %{buildroot}/%{_libdir}/*.la
# Remove development files as we're not doing a devel package yet
rm %{buildroot}/%{_libdir}/*.so
rm -r %{buildroot}/usr/include/%{name}
rm -r %{buildroot}/usr/include/%{name}.h
%files
%{!?_licensedir:%global license %doc}
%license COPYING
%license COPYING.LESSER
%doc %{_defaultdocdir}/%{name}
%{_bindir}/%{name}
%{_libdir}/lib%{name}.so*
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%changelog
* Fri Feb 03 2017 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> - 2-1
- Release v2.
* Fri Feb 03 2017 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> - 1-1
- Release v1. Not ready for production. Following features are included.
- Conversion to both XML and JSON.
- Can output bare events or complete documents.
- Output to file or syslog.
- Can be used both single-shot or streaming under audispd.
- Arbitrary output indentation and syntax folding.
- Original log messages can be included in the output.
- Can trim events to specified size.