%define major 0 %define libname %mklibname preludedb %{major} %define libnamedevel %mklibname preludedb -d %define libnamestaticdevel %mklibname preludedb -d -s Name: libpreludedb Version: 0.9.13 Release: %mkrel 3 Summary: Provide the framework for easy access to the Prelude database License: GPL Group: System/Libraries URL: http://www.prelude-ids.org/ Source0: http://www.prelude-ids.org/download/releases/%{name}-%{version}.tar.gz Source1: http://www.prelude-ids.org/download/releases/%{name}-%{version}.tar.gz.sig Source2: http://www.prelude-ids.org/download/releases/%{name}-%{version}.tar.gz.md5 Source3: http://www.prelude-ids.org/download/releases/%{name}-%{version}.txt Source4: libpreludedb-addIndices.sql Patch0: libpreludedb-0.9.6-postgresql-headers.patch BuildRequires: chrpath BuildRequires: openssl-devel BuildRequires: libltdl-devel BuildRequires: libgnutls-devel BuildRequires: zlib-devel BuildRequires: prelude-devel BuildRequires: MySQL-devel BuildRequires: postgresql-devel BuildRequires: python-devel BuildRequires: perl-devel BuildRequires: gtk-doc BuildRequires: sqlite3-devel BuildRequires: swig-devel %if %mdkversion >= 1020 BuildRequires: multiarch-utils %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description The PreludeDB Library provides an abstraction layer upon the type and the format of the database used to store IDMEF alerts. It allows developers to use the Prelude IDMEF database easily and efficiently wi thout worrying about SQL, and to access the database independently of the type/format of the database. %package -n %{libname} Summary: Provide the framework for easy access to the Prelude database Group: System/Libraries Provides: %{name} = %{version}-%{release} %description -n %{libname} The PreludeDB Library provides an abstraction layer upon the type and the format of the database used to store IDMEF alerts. It allows developers to use the Prelude IDMEF database easily and efficiently wi thout worrying about SQL, and to access the database independently of the type/format of the database. %package -n %{libnamedevel} Summary: Libraries and headers for PreludeDB Group: Development/C Requires: %{libname} = %{version}-%{release} Requires: openssl-devel Requires: libltdl-devel Provides: preludedb-devel = %{version}-%{release} Provides: %{_lib}preludedb-devel = %{version}-%{release} Provides: preludedb-devel = %{version}-%{release} Obsoletes: %mklibname -d preludedb 0 %description -n %{libnamedevel} The PreludeDB Library provides an abstraction layer upon the type and the format of the database used to store IDMEF alerts. It allows developers to use the Prelude IDMEF database easily and efficiently wi thout worrying about SQL, and to access the database independently of the type/format of the database. This package contains the development libraries and headers for PreludeDB. %package -n %{libnamestaticdevel} Summary: Static libraries for PreludeDB Group: Development/C Requires: %{libnamedevel} = %{version}-%{release} Requires: openssl-static-devel Requires: libltdl-devel Provides: preludedb-static-devel = %{version}-%{release} %description -n %{libnamestaticdevel} The PreludeDB Library provides an abstraction layer upon the type and the format of the database used to store IDMEF alerts. It allows developers to use the Prelude IDMEF database easily and efficiently wi thout worrying about SQL, and to access the database independently of the type/format of the database. This package contains the static libraries for PreludeDB. %package -n preludedb-tools Summary: The interface for %{libname} Group: Networking/Other Requires: %{libname} = %{version}-%{release} %description -n preludedb-tools Provides a convenient interface for sending alerts to Prelude Manager. %package -n python-preludedb Summary: Python bindings for PreludeDB Group: Development/Python Requires: %{libname} = %{version}-%{release} %description -n python-preludedb Provides python bindings for PreludeDB. %package -n perl-preludedb Summary: Perl bindings for PreludeDB Group: Development/Perl Requires: %{libname} = %{version}-%{release} %description -n perl-preludedb Provides perl bindings for PreludeDB. %package -n preludedb-mysql Summary: Plugin to use prelude with a MySQL database Group: System/Servers Requires: %{libname} = %{version}-%{release} Obsoletes: prelude-manager-mysql-plugin < %{version}-%{release} Provides: prelude-manager-mysql-plugin = %{version}-%{release} %description -n preludedb-mysql This plugin authorise prelude to store alerts into a MySQL database. %package -n preludedb-pgsql Summary: Plugin to use prelude with a PostgreSQL database Group: System/Servers Requires: %{libname} = %{version}-%{release} Obsoletes: prelude-manager-pgsql-plugin < %{version}-%{release} Provides: prelude-manager-pgsql-plugin = %{version}-%{release} %description -n preludedb-pgsql This plugin authorise prelude to store alerts into a PostgreSQL database. %package -n preludedb-sqlite3 Summary: Plugin to use prelude with a SQLite3 database Group: System/Servers Requires: %{libname} = %{version}-%{release} %description -n preludedb-sqlite3 This plugin authorise prelude to store alerts into a SQLite3 database. %prep %setup -q %patch0 -p0 %{__perl} -pi -e "s|/lib/|/%{_lib}/|g" configure.in %{__autoconf} %build %{configure2_5x} \ --enable-static \ --enable-shared \ --localstatedir=%{_var} \ --includedir=%{_includedir}/%{name} \ --with-libprelude-prefix=%{_prefix} \ --with-mysql=%{_prefix} \ --with-pgsql=%{_prefix} \ --with-sqlite3=%{_prefix} \ --with-swig \ --with-perl-installdirs=vendor \ --with-python \ --enable-gtk-doc \ --with-html-dir=%{_docdir}/%{libnamedevel} %{make} %install %{__rm} -rf %{buildroot} %{makeinstall_std} %{makeinstall_std} -C bindings/perl %{__cp} -a %{SOURCE4} %{buildroot}%{_datadir}/%{name}/classic/addIndices.sql %{_bindir}/chrpath -d %{buildroot}%{_libdir}/libpreludedb.so.0.?.? \ %{buildroot}%{_libdir}/libpreludedb/plugins/formats/classic.so \ %{buildroot}%{_libdir}/libpreludedb/plugins/sql/mysql.so \ %{buildroot}%{_libdir}/libpreludedb/plugins/sql/pgsql.so \ %{buildroot}%{_libdir}/libpreludedb/plugins/sql/sqlite3.so %if %mdkversion >= 1020 %multiarch_binaries %{buildroot}%{_bindir}/libpreludedb-config %endif %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean %{__rm} -rf %{buildroot} %files -n %{libname} %defattr(-,root,root,0755) %doc COPYING ChangeLog HACKING.README LICENSE.README NEWS README %{_libdir}/lib*.so.* %dir %{_libdir}/%{name}/plugins %dir %{_libdir}/%{name}/plugins/formats %dir %{_libdir}/%{name}/plugins/sql %{_libdir}/%{name}/plugins/formats/classic.so %files -n %{libnamedevel} %defattr(-,root,root,0755) %doc %{_docdir}/%{libnamedevel} %if %mdkversion >= 1020 %{multiarch_bindir}/%{name}-config %endif %{_bindir}/%{name}-config %{_libdir}/*.so %{_libdir}/*.la %dir %{_includedir}/%{name} %{_includedir}/%{name}/*.h %{_datadir}/aclocal/*.m4 %{_libdir}/%{name}/plugins/formats/*.a %{_libdir}/%{name}/plugins/formats/*.la %{_libdir}/%{name}/plugins/sql/*.la %{_libdir}/%{name}/plugins/sql/*.a %files -n %{libnamestaticdevel} %defattr(-,root,root,0755) %{_libdir}/*.a %files -n preludedb-tools %defattr(-,root,root,0755) %{_bindir}/preludedb-admin %{_mandir}/man1/preludedb-admin.1* %files -n python-preludedb %defattr(-,root,root,0755) %{_libdir}/python*/site-packages/* %files -n perl-preludedb %defattr(-,root,root,0755) %{perl_vendorlib}/*/auto/PreludeDB/PreludeDB.so %{perl_vendorlib}/*/PreludeDB.pm %files -n preludedb-mysql %defattr(-,root,root,0755) %{_libdir}/%{name}/plugins/sql/mysql.so %attr(0755,root,root) %{_datadir}/%{name}/classic/mysql2sqlite.sh %attr(0755,root,root) %{_datadir}/%{name}/classic/mysql2pgsql.sh %{_datadir}/%{name}/classic/*.sql %dir %{_datadir}/%{name}/classic %files -n preludedb-pgsql %defattr(-,root,root,0755) %{_libdir}/%{name}/plugins/sql/pgsql.so %{_datadir}/%{name}/classic/pgsql* %dir %{_datadir}/%{name}/classic %files -n preludedb-sqlite3 %defattr(-,root,root,0755) %{_libdir}/%{name}/plugins/sql/sqlite3.so %{_datadir}/%{name}/classic/sqlite* %dir %{_datadir}/%{name}/classic %changelog * Wed Sep 05 2007 Funda Wang <fundawang@mandriva.org> 0.9.13-3mdv2008.0 + Revision: 80181 - fix BR - obsoletes old devel package * Mon Aug 20 2007 David Walluck <walluck@mandriva.org> 0.9.13-2mdv2008.0 + Revision: 68089 - fix some typos - fix html-dir * Mon Aug 20 2007 David Walluck <walluck@mandriva.org> 0.9.13-1mdv2008.0 + Revision: 68081 - regenerate configure in %%prep - 0.9.13 - new lib policy - add static lib package - remove numeric_to_bigint patch (fixed upstream) - no need to regenerate configure - more strict directory permissions - move %%{_datadir}/%%{name}/classic out of lib package (still does not fix multi-owership problem) - change html-dir from %%{_datadir}/doc/%%{name}-devel-%%{version} to %%{_docdir}/%%{name}-devel (still not ideal) * Tue Aug 07 2007 David Walluck <walluck@mandriva.org> 0.9.12-1mdv2008.0 + Revision: 59751 - 0.9.12 * Wed May 16 2007 David Walluck <walluck@mandriva.org> 0.9.11.3-3mdv2008.0 + Revision: 27258 - add patch from <https://trac.prelude-ids.org/ticket/225> * Sat May 12 2007 David Walluck <walluck@mandriva.org> 0.9.11.3-2mdv2008.0 + Revision: 26470 - add additional SQL file * Fri Feb 09 2007 David Walluck <walluck@mandriva.org> 0.9.11.3-1mdv2007.0 + Revision: 118271 - 0.9.11.3 * Sun Jan 07 2007 David Walluck <walluck@mandriva.org> 0.9.11.1-1mdv2007.1 + Revision: 105075 - 0.9.11.1 * Thu Dec 21 2006 David Walluck <walluck@mandriva.org> 0.9.11-2mdv2007.1 + Revision: 100901 - fix some macros * Thu Dec 21 2006 David Walluck <walluck@mandriva.org> 0.9.11-1mdv2007.1 + Revision: 100893 - 9.11-1 * Thu Oct 19 2006 David Walluck <walluck@mandriva.org> 0.9.10-2mdv2007.0 + Revision: 71044 - fix build - 0.9.10 - Import libpreludedb * Tue Sep 05 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.8.1-1mdv2007.0 - rebuilt against MySQL-5.0.24a-1mdv2007.0 due to ABI changes * Tue Jul 11 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.8.1-1mdv2007.0 - 0.9.8.1 * Fri Jun 16 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.8-1mdv2007.0 - 0.9.8 (Major bugfixes) * Fri Mar 31 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.7.1-1mdk - 0.9.7.1 (Minor bugfixes) * Thu Mar 09 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.6-1mdk - 0.9.6 (Minor bugfixes) - rediffed P0 * Mon Mar 06 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.5.1-1mdk - 0.9.5.1 * Wed Feb 22 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.5-1mdk - 0.9.5 (Major bugfixes) - added P0 to make it find the postgresql headers * Wed Feb 08 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.4-1mdk - 0.9.4 (Major bugfixes) * Mon Jan 16 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.3-1mdk - 0.9.3 - added the sqlite sub package - fix autofoo * Tue Jan 10 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.2-1mdk - initial Mandriva package