9282aab
# Notes about rpmlint
9282aab
# - crypto-policy-non-compliance-gnutls-{1,2} fixed with patch
c1b60e0
#   prelude-lml-5.2.0-gnutls_priority_set_direct.patch
9282aab
9282aab
Name:           prelude-lml
c1b60e0
Version:        5.2.0
0d4c0cf
Release:        20%{?dist}
9282aab
Summary:        Log analyzer sensor with IDMEF output
9282aab
# Prelude is GPL-2.0+
9282aab
# libmissing is LGPL-2.1+
9282aab
License:        GPLv2+
9282aab
URL:            https://www.prelude-siem.org/
c5ebb12
Source0:        https://www.prelude-siem.org/pkg/src/%{version}/%{name}-%{version}.tar.gz
9282aab
Source1:        %{name}.service
9282aab
Source2:        %{name}-tmpfiles.conf
9282aab
# https://www.prelude-siem.org/issues/862
c1b60e0
Patch0:         prelude-lml-5.2.0-gnutls_priority_set_direct.patch
9282aab
# https://www.prelude-siem.org/issues/870
c1b60e0
Patch1:         prelude-lml-5.2.0-fix_etc_perms.patch
9282aab
# https://www.prelude-siem.org/issues/872
c1b60e0
Patch2:         prelude-lml-5.2.0-fix_check.patch
c1b60e0
Patch3:         prelude-lml-5.2.0-fix-test_rwlock1.patch
c1b60e0
Patch4:         prelude-lml-5.2.0-fix_thread_create.patch
c1b60e0
Patch5:         prelude-lml-5.2.0-fix_gnutls_deps.patch
c1b60e0
Patch6:         prelude-lml-5.2.0-fix_test_perror2.patch
a85b6a6
Patch7:         prelude-lml-configure-c99.patch
9282aab
%{?systemd_requires}
c036a65
BuildRequires: make
Igor Gnatenko 234a060
BuildRequires:  gcc
9282aab
BuildRequires:  chrpath
9282aab
BuildRequires:  systemd
9282aab
BuildRequires:  libgpg-error-devel
9282aab
BuildRequires:  pkgconfig(gnutls)
9282aab
BuildRequires:  pkgconfig(icu-io)
9282aab
BuildRequires:  pkgconfig(libevdev)
9282aab
BuildRequires:  pkgconfig(libpcre)
9282aab
BuildRequires:  pkgconfig(libprelude) >= %{version}
9282aab
0d4c0cf
%ifarch %{valgrind_arches}
9282aab
BuildRequires:  valgrind
9282aab
%endif
9282aab
9282aab
# Upstream do not use explicit version of gnulib, just checkout
c1b60e0
# and update files. In prelude-lml 5.2.0, the checkout has been done
bae8089
# on 2018-09-03
bae8089
Provides:       bundled(gnulib) = 20180903
9282aab
9282aab
%description
9282aab
The Prelude Log Monitoring Lackey (LML) is the host-based sensor program part of
9282aab
the Prelude SIEM suite. It can act as a centralized log collector for local or
9282aab
remote systems, or as a simple log analyzer (such as swatch). It can run as a
9282aab
network server listening on a syslog port or analyze log files. It supports log
9282aab
files in the BSD syslog format and is able to analyze any log file by using the
9282aab
PCRE library. It can apply log file specific analysis through plugins such as
9282aab
PAX. It can send an alert to the Prelude Manager when a suspicious log entry is
9282aab
detected.
9282aab
9282aab
%package        devel
9282aab
Summary:        Libraries and headers for Prelude-LML
9282aab
Requires:       %{name}%{?_isa} = %{version}-%{release}
9282aab
9282aab
%description    devel
9282aab
Devel headers for the Prelude Log Monitoring Lackey (LML). It is the host-based
9282aab
sensor program part of the Prelude SIEM suite. It can act as a centralized log
9282aab
collector for local or remote systems, or as a simple log analyzer (such as
9282aab
swatch). It can run as a network server listening on a syslog port or analyze
9282aab
log files. It supports log files in the BSD syslog format and is able to analyze
9282aab
any log file by using the PCRE library. It can apply log file specific analysis
9282aab
through plugins such as PAX. It can send an alert to the Prelude Manager when a
9282aab
suspicious log entry is detected.
9282aab
9282aab
%package doc
9282aab
Summary:        Documentation for prelude-lml
9282aab
BuildArch:      noarch
9282aab
9282aab
%description doc
9282aab
Provides documentation for prelude-lml.
9282aab
9282aab
%prep
9282aab
%autosetup -p1
9282aab
9282aab
%build
ed93652
%ifarch ppc64le
ed93652
# update cdefs.h for __LDBL_REDIR1_DECL, especially for
ed93652
# ppc64le longdouble ieee128 mode switch
ed93652
cp -p %{_includedir}/sys/cdefs.h libmissing/
ed93652
%endif
ed93652
9282aab
%configure \
9282aab
    --bindir=%{_sbindir} \
9282aab
    --enable-shared \
9282aab
    --disable-static \
9282aab
    --with-libprelude-prefix=%{_prefix}
9282aab
%make_build
9282aab
9282aab
%install
9282aab
%make_install
9282aab
9282aab
find %{buildroot} -name '*.la' -delete
9282aab
9282aab
# Empty dir but kept by debuginfo
9282aab
rm -rf src/.libs
9282aab
9282aab
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
9282aab
9282aab
chrpath -d %{buildroot}%{_sbindir}/%{name}
9282aab
9282aab
# install init script
9282aab
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
9282aab
9282aab
# tmpfiles
9282aab
mkdir -p %{buildroot}%{_tmpfilesdir}
9282aab
install -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf
9282aab
mkdir -p %{buildroot}/run
9282aab
install -d -m 0755 %{buildroot}/run/%{name}/
9282aab
9282aab
%check
9282aab
make check
9282aab
9282aab
%post
9282aab
%systemd_post %{name}.service
9282aab
9282aab
%preun
9282aab
%systemd_preun %{name}.service
9282aab
9282aab
%postun
9282aab
%systemd_postun_with_restart %{name}.service 
9282aab
9282aab
%files
9282aab
%license COPYING HACKING.README
9282aab
%doc README
9282aab
%{_sbindir}/%{name}
9282aab
%{_unitdir}/%{name}.service
9282aab
%dir %{_libdir}/%{name}
9282aab
%{_libdir}/%{name}/*.so
9282aab
%dir %{_localstatedir}/lib/%{name}
9282aab
%dir %{_sysconfdir}/%{name}
9282aab
%config(noreplace) %{_sysconfdir}/%{name}/*.rules
9282aab
%config(noreplace) %{_sysconfdir}/%{name}/*.conf
9282aab
%dir %{_localstatedir}/lib/%{name}
9282aab
%dir /run/%{name}/
9282aab
%{_tmpfilesdir}/%{name}.conf
9282aab
9282aab
%files devel
9282aab
%dir %{_includedir}/%{name}
9282aab
%{_includedir}/%{name}/*.h
9282aab
9282aab
%files doc
9282aab
%license COPYING HACKING.README
9282aab
%doc ChangeLog README NEWS AUTHORS
9282aab
9282aab
%changelog
0d4c0cf
* Fri Feb 23 2024 Richard W.M. Jones <rjones@redhat.com> - 5.2.0-20
0d4c0cf
- Remove valgrind on riscv64, use valgrind_arches
0d4c0cf
83d5c1b
* Wed Jan 31 2024 Pete Walter <pwalter@fedoraproject.org> - 5.2.0-19
83d5c1b
- Rebuild for ICU 74
83d5c1b
c843dc0
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-18
c843dc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c843dc0
e1e2909
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-17
e1e2909
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
e1e2909
5e99fdd
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-16
5e99fdd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
5e99fdd
fa3d4a2
* Tue Jul 11 2023 František Zatloukal <fzatlouk@redhat.com> - 5.2.0-15
fa3d4a2
- Rebuilt for ICU 73.2
fa3d4a2
3f45c95
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-14
3f45c95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
3f45c95
b076142
* Sat Dec 31 2022 Pete Walter <pwalter@fedoraproject.org> - 5.2.0-13
b076142
- Rebuild for ICU 72
b076142
a85b6a6
* Fri Dec  9 2022 Florian Weimer <fweimer@redhat.com> - 5.2.0-12
a85b6a6
- Port configure script to C99
a85b6a6
ed93652
* Thu Aug 04 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 5.2.0-11
ed93652
- ppc64le: update cdefs.h for __LDBL_REDIR1_DECL
ed93652
fe0a769
* Mon Aug 01 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 5.2.0-10
fe0a769
- Rebuilt for ICU 71.1
fe0a769
f9ef6bf
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-9
f9ef6bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
f9ef6bf
bb4fb65
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-8
bb4fb65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
bb4fb65
f46dbd8
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-7
f46dbd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
f46dbd8
726fab3
* Thu May 20 2021 Pete Walter <pwalter@fedoraproject.org> - 5.2.0-6
726fab3
- Rebuild for ICU 69
726fab3
d40fb38
* Wed May 19 2021 Pete Walter <pwalter@fedoraproject.org> - 5.2.0-5
d40fb38
- Rebuild for ICU 69
d40fb38
d662bf9
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.2.0-4
d662bf9
- Rebuilt for updated systemd-rpm-macros
d662bf9
  See https://pagure.io/fesco/issue/2583.
d662bf9
789b8c3
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-3
789b8c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
789b8c3
940d0b3
* Fri Oct 09 2020 Jeff Law <law@redhat.com> - 5.2.0-2
940d0b3
- Re-enable LTO
940d0b3
c1b60e0
* Thu Sep 17 2020 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.2.0-1
c1b60e0
- Bump version 5.2.0
c1b60e0
285b883
* Tue Aug 04 2020 Jeff Law <law@redhat.com> - 5.1.0-6
285b883
- Disable LTO
285b883
45b5f8f
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.0-5
45b5f8f
- Second attempt - Rebuilt for
45b5f8f
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
45b5f8f
3bfed3c
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.0-4
3bfed3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3bfed3c
39c5a66
* Fri May 15 2020 Pete Walter <pwalter@fedoraproject.org> - 5.1.0-3
39c5a66
- Rebuild for ICU 67
39c5a66
a4c62d2
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.0-2
a4c62d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a4c62d2
478dd7f
* Fri Nov 08 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.1.0-1
478dd7f
- Bump version 5.1.0
478dd7f
ac76925
* Fri Nov 01 2019 Pete Walter <pwalter@fedoraproject.org> - 5.0.0-3
ac76925
- Rebuild for ICU 65
ac76925
602b51d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
602b51d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
602b51d
bae8089
* Sun Jul 14 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.0.0-1
bae8089
- Bump version 5.0.0
bae8089
7adfbba
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-5
7adfbba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7adfbba
862d438
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-4
862d438
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
862d438
1b42256
* Tue Jul 10 2018 Pete Walter <pwalter@fedoraproject.org> - 4.1.0-3
1b42256
- Rebuild for ICU 62
1b42256
5032e40
* Mon Apr 30 2018 Pete Walter <pwalter@fedoraproject.org> - 4.1.0-2
5032e40
- Rebuild for ICU 61.1
5032e40
4af0a77
* Tue Apr 24 2018 Thomas Andrejak <thomas.andrejak@gmail.com> - 4.1.0-1
4af0a77
- Bump version 4.1.0
4af0a77
2edd22a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-3
2edd22a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2edd22a
fe70d14
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 4.0.0-2
fe70d14
- Rebuild for ICU 60.1
fe70d14
c5ebb12
* Wed Oct 4 2017 Thomas Andrejak <thomas.andrejak@gmail.com> - 4.0.0-1
c5ebb12
- Bump version 4.0.0
c5ebb12
ec6b3f4
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-4
ec6b3f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ec6b3f4
e70fb65
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-3
e70fb65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e70fb65
2406dd1
* Tue Feb 07 2017 Thomas Andrejak <thomas.andrejak@gmail.com> - 3.1.0-2
2406dd1
- Fix GnuTLS patch
2406dd1
9282aab
* Wed Jan 25 2017 Thomas Andrejak <thomas.andrejak@gmail.com> - 3.1.0-1
9282aab
- Bump version
9282aab
9282aab
* Sun Mar 10 2013 Steve Grubb <sgrubb@redhat.com> - 1:1.0.0-10
9282aab
- Add libtool-ltdl-devel BuildRequires
9282aab
9282aab
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-9
9282aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9282aab
9282aab
* Thu Sep 06 2012 Steve Grubb <sgrubb@redhat.com> - 1:1.0.0-8
9282aab
- Add provides bundled gnulib
9282aab
- Add systemd service file
9282aab
9282aab
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-7
9282aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9282aab
9282aab
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 1:1.0.0-6
9282aab
- Rebuild against PCRE 8.30
9282aab
9282aab
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-5
9282aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9282aab
9282aab
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-4
9282aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9282aab
9282aab
* Sun May 02 2010 Steve Grubb <sgrubb@redhat.com> 1.0.0-3
9282aab
- Fixed requires
9282aab
9282aab
* Fri Apr 30 2010 Steve Grubb <sgrubb@redhat.com> 1.0.0-2
9282aab
- new upstream release
9282aab
9282aab
* Mon Feb 08 2010 Steve Grubb <sgrubb@redhat.com> 1.0.0rc2-1
9282aab
- new upstream release
9282aab
9282aab
* Sat Jan 30 2010 Steve Grubb <sgrubb@redhat.com> 1.0.0rc1-1
9282aab
- new upstream release
9282aab
9282aab
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.15-2
9282aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9282aab
9282aab
* Tue Jul 21 2009 Steve Grubb <sgrubb@redhat.com> 0.9.15-1
9282aab
- new upstream release
9282aab
9282aab
* Wed Apr 22 2009 Steve Grubb <sgrubb@redhat.com> 0.9.14-3
9282aab
- Adjust dir and config file permissions
9282aab
9282aab
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-2
9282aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9282aab
9282aab
* Fri Oct 17 2008 Steve Grubb <sgrubb@redhat.com> 0.9.14-1
9282aab
- new upstream release fixing bz #463459
9282aab
9282aab
* Sat Oct 11 2008 Steve Grubb <sgrubb@redhat.com> 0.9.13-2
9282aab
- improved mod_security rules
9282aab
9282aab
* Wed Aug 27 2008 Steve Grubb <sgrubb@redhat.com> 0.9.13-1
9282aab
- new upstream release
9282aab
9282aab
* Wed Jun 25 2008 Tomas Mraz <tmraz@redhat.com> - 0.9.12.2-2
9282aab
- rebuild with new gnutls
9282aab
9282aab
* Thu Apr 24 2008 Steve Grubb <sgrubb@redhat.com> 0.9.12.2-1
9282aab
- new upstream release
9282aab
9282aab
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.11-2
9282aab
- Autorebuild for GCC 4.3
9282aab
9282aab
* Mon Jan 14 2008 Steve Grubb <sgrubb@redhat.com> 0.9.11-1
9282aab
- new upstream version 0.9.11
9282aab
9282aab
* Tue Jan 09 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.8.1-5
9282aab
- changed init-script description 
9282aab
9282aab
* Mon Jan 08 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.8.1-4
9282aab
- added new /var/lib directory 
9282aab
9282aab
* Fri Jan 05 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.8.1-3
9282aab
- added init-script
9282aab
- changed some macros in %%files
9282aab
9282aab
* Tue Jan 02 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.8.1-2
9282aab
- fixed debug problems
9282aab
- fixed encoding problems
9282aab
9282aab
* Fri Dec 29 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.8.1-1
9282aab
- moved to new upstream version 0.9.8.1
9282aab
- changed dirowner of /etc/prelude-lml
9282aab
9282aab
* Mon Nov 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.7-2
9282aab
- Some minor fixes in requirements
9282aab
9282aab
* Mon Oct 23 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.7-1
9282aab
- New Fedora build based on release 0.9.7
9282aab