%define _localstatedir %{_var} %define major 2 %define libname %mklibname prelude %{major} %define libnamedevel %mklibname prelude -d %define libnamestaticdevel %mklibname prelude -d -s Name: libprelude Version: 0.9.20.1 Release: %mkrel 1 Summary: Prelude Hybrid Intrusion Detection System Library License: GPLv2+ Group: System/Libraries URL: http://www.prelude-ids.org/ Source0: http://www.prelude-ids.org/download/releases/libprelude/%{name}-%{version}.tar.gz Source1: http://www.prelude-ids.org/download/releases/libprelude/%{name}-%{version}.tar.gz.sig Source2: http://www.prelude-ids.org/download/releases/libprelude/%{name}-%{version}.tar.gz.md5 Source3: http://www.prelude-ids.org/download/releases/libprelude/%{name}-%{version}.txt BuildRequires: chrpath BuildRequires: gtk-doc BuildRequires: libgnutls-devel BuildRequires: zlib-devel BuildRequires: perl-devel %py_requires -d %if %mdkversion >= 1020 BuildRequires: multiarch-utils %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description 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 %{libname} Summary: Prelude Hybrid Intrusion Detection System Library Group: System/Libraries Provides: %{name} = %{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 %{libnamedevel} Summary: Libraries, includes, etc. for developing Prelude IDS sensors Group: Development/C Requires: %{libname} = %{version}-%{release} Requires: libltdl-devel Provides: prelude-devel = %{version}-%{release} Obsoletes: %{libname}-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 %{libnamestaticdevel} Summary: Static libraries for developing Prelude IDS sensors Group: Development/C Requires: %{libnamedevel} = %{version}-%{release} Requires: libltdl-devel Provides: prelude-static-devel = %{version}-%{release} Obsoletes: %{libname}-static-devel < %{version}-%{release} %description -n %{libnamestaticdevel} 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} Group: Networking/Other Requires: %{libname} = %{version}-%{release} %description -n prelude-tools Provides a convenient interface for sending alerts to Prelude Manager. %package -n python-prelude Summary: Python bindings for prelude Group: Development/Python Requires: %{libname} = %{version}-%{release} %description -n python-prelude Provides python bindings for prelude. %package -n perl-prelude Summary: Perl bindings for prelude Group: Development/Perl Requires: %{libname} = %{version}-%{release} %description -n perl-prelude Provides perl bindings for prelude. %prep %setup -q %{__perl} -pi -e "s|/lib/|/%{_lib}/|g" configure.in %{__autoconf} %build %{configure2_5x} \ --enable-static \ --enable-shared \ --with-perl-installdirs=vendor \ --enable-python \ --without-included-regex \ --includedir=%{_includedir}/%{name} \ --enable-gtk-doc \ --with-html-dir=%{_docdir}/%{libnamedevel} %{make} %install %{__rm} -rf %{buildroot} %{makeinstall_std} %{makeinstall_std} -C bindings/perl %{_bindir}/chrpath -d %{buildroot}%{_libdir}/libprelude.so.*.*.* %if %mdkversion >= 1020 %multiarch_binaries %{buildroot}%{_bindir}/libprelude-config %endif %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %clean %{__rm} -rf %{buildroot} %files -n %{libname} %defattr(-,root,root,0755) %doc AUTHORS ChangeLog README INSTALL %{_libdir}/lib*.so.* %files -n %{libnamedevel} %defattr(-,root,root,0755) %doc %{_docdir}/%{libnamedevel} %if %mdkversion >= 1020 %{multiarch_bindir}/libprelude-config %endif %{_bindir}/libprelude-config %{_libdir}/*.so %{_libdir}/*.la %dir %{_includedir}/libprelude %{_includedir}/libprelude/*.h %{_datadir}/aclocal/*.m4 %files -n %{libnamestaticdevel} %defattr(-,root,root,0755) %{_libdir}/*.a %files -n prelude-tools %defattr(-,root,root,0755) %doc AUTHORS ChangeLog README INSTALL %{_bindir}/prelude-adduser %{_bindir}/prelude-admin %{_mandir}/man1/prelude-admin.1* %dir %{_sysconfdir}/prelude %dir %{_sysconfdir}/prelude/default %dir %{_sysconfdir}/prelude/profile %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/prelude/default/*.conf %dir %{_var}/spool/prelude %files -n python-prelude %defattr(-,root,root,0755) %{_libdir}/python*/site-packages/* %files -n perl-prelude %defattr(-,root,root,0755) %{perl_vendorarch}/Prelude.pm %{perl_vendorarch}/PreludeEasy.pm %{perl_vendorarch}/auto/Prelude %{perl_vendorarch}/auto/PreludeEasy %changelog * Sat Sep 06 2008 Funda Wang <fundawang@mandriva.org> 0.9.20.1-1mdv2009.0 + Revision: 281996 - New version 0.9.20.1 * Wed Aug 06 2008 Funda Wang <fundawang@mandriva.org> 0.9.19-1mdv2009.0 + Revision: 264167 - fix file list - new version 0.9.19 * Fri Jul 25 2008 Funda Wang <fundawang@mandriva.org> 0.9.18.1-1mdv2009.0 + Revision: 249446 - New version 0.9.18.1 * Fri Jul 18 2008 Funda Wang <fundawang@mandriva.org> 0.9.18-1mdv2009.0 + Revision: 238344 - New version 0.9.18 * Fri Jul 18 2008 Funda Wang <fundawang@mandriva.org> 0.9.17.2-1mdv2009.0 + Revision: 238146 - New version 0.9.17.2 + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Tue Apr 29 2008 David Walluck <walluck@mandriva.org> 0.9.17-1mdv2009.0 + Revision: 199117 - 0.9.17 * Fri Jan 25 2008 David Walluck <walluck@mandriva.org> 0.9.16.2-2mdv2008.1 + Revision: 157831 - rebuild - 0.9.16.2 * Mon Jan 21 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.9.16.1-3mdv2008.1 + Revision: 155662 - rebuild for new perl * Mon Jan 21 2008 Funda Wang <fundawang@mandriva.org> 0.9.16.1-2mdv2008.1 + Revision: 155600 - rebuild against latest gnutls + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Sat Nov 24 2007 David Walluck <walluck@mandriva.org> 0.9.16.1-1mdv2008.1 + Revision: 111738 - 0.9.16.1 * Thu Oct 11 2007 David Walluck <walluck@mandriva.org> 0.9.16-1mdv2008.1 + Revision: 97055 - 0.9.16 * Wed Sep 05 2007 David Walluck <walluck@mandriva.org> 0.9.15.2-1mdv2008.0 + Revision: 80324 - 0.9.15.2 * Thu Aug 23 2007 David Walluck <walluck@mandriva.org> 0.9.15-1mdv2008.0 + Revision: 70678 - 0.9.15 - remove incorrect Conflicts + Funda Wang <fundawang@mandriva.org> - Drop BR libnetfilter Use py_requires macro - BR libnetfilter_queue * Tue Aug 21 2007 Funda Wang <fundawang@mandriva.org> 0.9.14-3mdv2008.0 + Revision: 68212 - Obsoletes old devel name * Mon Aug 20 2007 David Walluck <walluck@mandriva.org> 0.9.14-2mdv2008.0 + Revision: 68082 - new lib policy - add static lib package - regenerate configure in %%prep - more strict directory permissions - change html-dir (still not ideal) * Wed May 16 2007 David Walluck <walluck@mandriva.org> 0.9.14-1mdv2008.0 + Revision: 27203 - 0.9.14 * Sat Mar 31 2007 David Walluck <walluck@mandriva.org> 0.9.13.2-1mdv2007.1 + Revision: 150126 - 0.9.13.2 - 0.9.13.1 * Tue Feb 20 2007 David Walluck <walluck@mandriva.org> 0.9.13-1mdv2007.1 + Revision: 123167 - add libprelude-0.9.13.txt - 0.9.13 * Fri Feb 09 2007 David Walluck <walluck@mandriva.org> 0.9.12.2-1mdv2007.1 + Revision: 118277 - 0.9.12.2 * Sun Jan 07 2007 David Walluck <walluck@mandriva.org> 0.9.12.1-1mdv2007.1 + Revision: 105097 - 0.9.12.1 * Thu Dec 21 2006 David Walluck <walluck@mandriva.org> 0.9.12-1mdv2007.1 + Revision: 100905 - 0.9.12 * Thu Oct 19 2006 David Walluck <walluck@mandriva.org> 0.9.11-3mdv2007.0 + Revision: 71045 - fix build - remove onceonly patch (fixed upstream) - 0.9.11 - Import libprelude * Fri Jul 14 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.10-1mdv2007.0 - 0.9.10 (Major feature enhancements) - added P2 (missing m4 macros) * Wed Jun 07 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.9-1mdv2007.0 - 0.9.9 (Major bugfixes) * Mon May 15 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.8-2mdk - make it build on 2006 * Mon May 15 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.8-1mdk - 0.9.8 - force INSTALLDIRS=vendor (P1) * Wed Mar 22 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.7.1-1mdk - 0.9.7.1 (Major bugfixes) * Thu Mar 09 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.7-1mdk - 0.9.7 (Major bugfixes) * Mon Mar 06 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.6.1-1mdk - 0.9.6.1 * Thu Mar 02 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.6-1mdk - 0.9.6 (Major bugfixes) * Mon Feb 06 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.5-1mdk - 0.9.5 (Minor bugfixes) * Mon Jan 30 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.4-1mdk - 0.9.4 (Minor bugfixes) * Wed Jan 11 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.3-4mdk - fix deps * Tue Jan 10 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.3-3mdk - use conflicts instead of obsoletes for the devel sub package (fcrozat) * Tue Jan 10 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.3-2mdk - fix deps * Tue Jan 10 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.3-1mdk - 0.9.3 - fix spool dir location (P0) - added the python and perl sub packages - fix deps * Sat Jan 07 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.2-1mdk - 0.9.2 * Thu Dec 29 2005 Oden Eriksson <oeriksson@mandriva.com> 0.9.1-1mdk - 0.9.1 * Sun Nov 13 2005 Oden Eriksson <oeriksson@mandriva.com> 0.8.10-3mdk - rebuilt against openssl-0.9.8a * Tue Jan 25 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 0.8.10-2mdk - fix conflicting declaration with MySQL-4.1.x - fix deps and conditional %%multiarch - lib64 fixes * Thu Apr 22 2004 Laurent Culioli <laurent@mandrake.org> 0.8.10-1mdk - 0.8.10