Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %global major 23
- %global libname libprelude%{major}
- %global cppmajor 8
- %global libcpp libpreludecpp%{cppmajor}
- %global libnamedevel libprelude-devel
- Name: libprelude
- Version: 3.1.0
- Release: 24%{?dist}
- Summary: Secure Connections between all Sensors and the Prelude Manager
- # Prelude is GPL-2.0+
- # libmissing is LGPL-2.1+
- # libmissing/test is GPL-3.0+
- License: GPLv2+ and LGPLv2+ and GPLv3+
- Group: System Environment/Libraries
- URL: https://www.prelude-siem.org/
- Source0: https://www.prelude-siem.org/pkg/src/3.1.0/%{name}-%{version}.tar.gz
- # https://www.prelude-siem.org/issues/859
- Patch0: libprelude-3.1.0-linking.patch
- # https://www.prelude-siem.org/issues/860
- Patch1: libprelude-3.1.0-ruby_vendorarchdir.patch
- BuildRequires: bison
- BuildRequires: chrpath
- BuildRequires: flex
- BuildRequires: gtk-doc
- BuildRequires: swig
- BuildRequires: libgcrypt-devel
- BuildRequires: libgpg-error-devel
- BuildRequires: libtool-ltdl-devel
- BuildRequires: perl-devel
- BuildRequires: pkgconfig(gnutls)
- BuildRequires: pkgconfig(lua) >= 5.2
- BuildRequires: pkgconfig(python2)
- BuildRequires: pkgconfig(python3)
- BuildRequires: pkgconfig(ruby)
- BuildRequires: pkgconfig(zlib)
- %description
- Libprelude is a collection of generic functions providing communication
- between all Sensors, like IDS (Intrusion Detection System), and the Prelude
- Manager. It provides a convenient interface for sending and receiving IDMEF
- (Information and Event Message Exchange Format) alerts to Prelude Manager with
- transparent SSL, failover and replication support, asynchronous events and
- timer interfaces, an abstracted configuration API (hooking at the commandline,
- the configuration line, or wide configuration, available from the Manager), and
- a generic plugin API. It allows you to easily turn your favorite security
- program into a Prelude sensor.
- %package -n %{libname}
- Summary: Prelude Hybrid Intrusion Detection System Library
- Provides: %{name}%{?_isa} = %{version}-%{release}
- %description -n %{libname}
- The Prelude Library is a collection of generic functions providing
- communication between the Prelude Hybrid IDS suite components. It
- provides a convenient interface for sending alerts to Prelude
- Manager with transparent SSL, failover and replication support,
- asynchronous events and timer interfaces, an abstracted
- configuration API (hooking at the commandline, the configuration
- line, or wide configuration, available from the Manager), and a
- generic plugin API. It allows you to easily turn your favorite
- security program into a Prelude sensor.
- %package -n %{libcpp}
- Summary: Prelude Hybrid Intrusion Detection System Library
- %description -n %{libcpp}
- The Prelude Library is a collection of generic functions providing
- communication between the Prelude Hybrid IDS suite components. It
- provides a convenient interface for sending alerts to Prelude
- Manager with transparent SSL, failover and replication support,
- asynchronous events and timer interfaces, an abstracted
- configuration API (hooking at the commandline, the configuration
- line, or wide configuration, available from the Manager), and a
- generic plugin API. It allows you to easily turn your favorite
- security program into a Prelude sensor.
- %package -n %{libnamedevel}
- Summary: Libraries, includes, etc. for developing Prelude IDS sensors
- Requires: %{libname}%{?_isa} = %{version}-%{release}
- Requires: %{libcpp}%{?_isa} = %{version}-%{release}
- Requires: libtool-ltdl-devel
- Provides: %{name}%{?_isa}-devel = %{version}-%{release}
- Provides: prelude-devel = %{version}-%{release}
- %description -n %{libnamedevel}
- Libraries, include files, etc you can use to develop Prelude IDS
- sensors using the Prelude Library. The Prelude Library is a
- collection of generic functions providing communication between
- the Prelude Hybrid IDS suite componentst It provides a convenient
- interface for sending alerts to Prelude Manager with transparent
- SSL, failover and replication support, asynchronous events and
- timer interfaces, an abstracted configuration API (hooking at the
- commandline, the configuration line, or wide configuration,
- available from the Manager), and a generic plugin API. It allows
- you to easily turn your favorite security program into a Prelude
- sensor.
- %package -n prelude-tools
- Summary: The interface for %{libname}
- Requires: %{libname}%{?_isa} = %{version}-%{release}
- %description -n prelude-tools
- Provides a convenient interface for sending alerts to Prelude
- Manager.
- %package -n python-prelude
- Summary: Python 2 bindings for prelude
- Requires: %{libname}%{?_isa} = %{version}-%{release}
- %description -n python-prelude
- Provides python 2 bindings for prelude.
- %package -n python3-prelude
- Summary: Python 3 bindings for prelude
- Requires: %{libname}%{?_isa} = %{version}-%{release}
- %description -n python3-prelude
- Provides python 3 bindings for prelude.
- %package -n perl-prelude
- Summary: Perl bindings for prelude
- Requires: %{libname}%{?_isa} = %{version}-%{release}
- %description -n perl-prelude
- Provides perl bindings for prelude.
- %package -n ruby-prelude
- Summary: Ruby bindings for prelude
- Requires: %{libname}%{?_isa} = %{version}-%{release}
- %description -n ruby-prelude
- Provides ruby bindings for prelude.
- %package -n lua-prelude
- Summary: Lua bindings for prelude
- Requires: %{libname}%{?_isa} = %{version}-%{release}
- Requires: lua
- %description -n lua-prelude
- Provides Lua bindings for prelude generated by SWIG.
- %package doc
- Summary: Libprelude documentation
- %description doc
- Libprelude documentation files.
- %prep
- %setup -q
- %autopatch -p1
- %build
- %configure \
- --without-included-ltdl \
- --disable-static \
- --enable-shared \
- --with-swig \
- --with-python2 \
- --with-python3 \
- --with-ruby \
- --with-lua \
- --with-perl-installdirs=vendor \
- --without-included-regex \
- --includedir=%{_includedir}/%{name} \
- --enable-gtk-doc \
- --with-html-dir=%{_docdir}/%{libnamedevel}
- %make_build
- %install
- %make_install
- %{_bindir}/chrpath -d %{buildroot}%{_libdir}/*.so.*
- find %{buildroot} -name '*.la' -delete
- find %{buildroot} -name 'perllocal.pod' -delete
- find %{buildroot} -name '.packlist' -delete
- %post -n %{libname} -p /sbin/ldconfig
- %postun -n %{libname} -p /sbin/ldconfig
- %post -n %{libcpp} -p /sbin/ldconfig
- %postun -n %{libcpp} -p /sbin/ldconfig
- %files -n %{libname}
- %{_libdir}/libprelude.so.%{major}
- %{_libdir}/libprelude.so.%{major}.*
- %files -n %{libcpp}
- %{_libdir}/libpreludecpp.so.%{cppmajor}
- %{_libdir}/libpreludecpp.so.%{cppmajor}.*
- %files -n %{libnamedevel}
- %{_datadir}/%{name}
- %{_datadir}/%{name}/swig
- %{_bindir}/%{name}-config
- %{_libdir}/*.so
- %{_libdir}/pkgconfig/*.pc
- %{_includedir}/%{name}/
- %{_datadir}/aclocal/*.m4
- %{_mandir}/man1/%{name}-config.1*
- %files -n prelude-tools
- # Force default attrs because libprelude force others
- %defattr(- , root, root, 755)
- %{_bindir}/prelude-adduser
- %{_bindir}/prelude-admin
- %{_mandir}/man1/prelude-admin.1*
- %dir %{_sysconfdir}/prelude
- %dir %{_sysconfdir}/prelude/default
- %dir %{_sysconfdir}/prelude/profile
- %config(noreplace) %{_sysconfdir}/prelude/default/*.conf
- %dir %{_var}/spool/prelude
- %files -n python-prelude
- %{python2_sitearch}/*
- %files -n python3-prelude
- %{python3_sitearch}/*
- %files -n perl-prelude
- %{perl_vendorarch}/*.pm
- # Force attrs because libprelude set it to 555
- %attr(755, root, root) %{perl_vendorarch}/auto/Prelude/Prelude.so
- %files -n ruby-prelude
- %{ruby_vendorarchdir}/*
- %files -n lua-prelude
- %{_libdir}/lua/*/prelude.so
- %files doc
- %{_docdir}/%{libnamedevel}
- %license COPYING
- %doc AUTHORS ChangeLog README NEWS LICENSE.README HACKING.README
- %changelog
- * Wed Oct 19 2016 Thomas Andrejak <thomas.andrejak@gmail.com> - 1:3.1.0-1
- - Bump version
- * Sun Mar 10 2013 Steve Grubb <sgrubb@redhat.com> - 1:1.0.0-17
- - Rebuild with new gnutls
- * Thu Sep 06 2012 Steve Grubb <sgrubb@redhat.com> - 1:1.0.0-16
- - Add provides bundled gnulib
- * Wed Aug 08 2012 Petr Pisar <ppisar@redhat.com> - 1:1.0.0-15
- - Fix building with glibc-2.16.6 (bug #839602)
- * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-14
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
- * Thu Jun 07 2012 Petr Pisar <ppisar@redhat.com> - 1:1.0.0-13
- - Perl 5.16 rebuild
- * Tue Mar 13 2012 Steve Grubb <sgrubb@redhat.com> - 1:1.0.0-12
- - Drop support for ruby
- * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-11
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
- * Tue Jul 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.0.0-10
- - Perl mass rebuild
- * Fri Jun 24 2011 Steve Grubb <sgrubb@redhat.com> - 1:1.0.0-9
- - Fix gcc 4.6 C++ bug (#715983)
- * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.0.0-8
- - Perl mass rebuild
- * Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.0.0-7
- - Perl 5.14 mass rebuild
- * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-6
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
- * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1:1.0.0-5
- - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
- * Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:1.0.0-4
- - Mass rebuild with perl-5.12.0
- * Sun May 02 2010 Steve Grubb <sgrubb@redhat.com> - 1.0.0-3
- - Fix requires statements
- * Fri Apr 30 2010 Steve Grubb <sgrubb@redhat.com> - 1.0.0-2
- - New upstream release
- * Sat Jan 30 2010 Steve Grubb <sgrubb@redhat.com> - 1.0.0rc1-1
- - New upstream release
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement