# API version for libpreludedb %global major 7 # API version for libpreludedb c++ binding %global cppmajor 2 Name: libpreludedb Version: 5.2.0 Release: 10%{?dist} Summary: Framework for easy access to the IDMEF database # Prelude is GPL-2.0+ # libmissing is LGPL-2.1+ License: GPLv2+ URL: https://www.prelude-siem.org/ Source0: https://www.prelude-siem.org/pkg/src/%{version}/%{name}-%{version}.tar.gz # https://www.prelude-siem.org/issues/867 Patch0: libpreludedb-5.2.0-undefined_non_weak_symbol.patch Patch1: libpreludedb-5.2.0-fix_gtkdoc_1.32.patch Patch2: libpreludedb-5.2.0-force_preludedb_admin_with_py3.patch Patch3: libpreludedb-5.2.0-update_m4_postgresql.patch Patch4: libpreludedb-5.2.0-Add-pkg-config-file.patch Patch5: libpreludedb-5.2.0-fix-test_rwlock1.patch Patch6: libpreludedb-5.2.0-fix_thread_create.patch Patch7: libpreludedb-5.2.0-Clean_libpreludedb-config.patch BuildRequires: make BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: bison BuildRequires: chrpath BuildRequires: flex BuildRequires: gtk-doc BuildRequires: glib2-devel BuildRequires: swig BuildRequires: pkgconfig(gnutls) BuildRequires: libgpg-error-devel BuildRequires: mariadb-connector-c-devel BuildRequires: libpq-devel BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(libprelude) >= %{version} BuildRequires: pkgconfig(openssl) BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: python3-devel BuildRequires: pkgconfig(zlib) %ifnarch s390 BuildRequires: valgrind %endif Suggests: preludedb-mysql Suggests: preludedb-pgsql Suggests: preludedb-sqlite3 # Upstream do not use explicit version of gnulib, just checkout # and update files. In libprelude 5.2.0, the checkout has been done # on 2018-09-03 Provides: bundled(gnulib) = 20180903 %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 without worrying about SQL, and to access the database independently of the type/format of the database. %package devel Summary: Libraries and headers for PreludeDB Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Libraries and headers you can use to access Prelude database using the Prelude Library. 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 without worrying about SQL, and to access the database independently of the type/format of the database. %package -n preludedb-tools Summary: Command-line tools for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description -n preludedb-tools Provides a convenient interface for accessing Prelude alerts. %package -n python3-preludedb Summary: Python 3 bindings for preludedb Requires: %{name}%{?_isa} = %{version}-%{release} %{?python_provide:%python_provide python3-prelude} Requires: python3-prelude %description -n python3-preludedb Provides python 3 bindings for preludedb. %package -n preludedb-mysql Summary: Plugin to use prelude with a MySQL database Requires: %{name}%{?_isa} = %{version}-%{release} %description -n preludedb-mysql This plugin authorize prelude to store alerts into a MySQL database. %package -n preludedb-pgsql Summary: Plugin to use prelude with a PostgreSQL database Requires: %{name}%{?_isa} = %{version}-%{release} %description -n preludedb-pgsql This plugin authorize prelude to store alerts into a PostgreSQL database. %package -n preludedb-sqlite3 Summary: Plugin to use prelude with a SQLite3 database Requires: %{name}%{?_isa} = %{version}-%{release} %description -n preludedb-sqlite3 This plugin authorize prelude to store alerts into a SQLite3 database. %package doc Summary: Documentation for preludedb BuildArch: noarch %description doc Provides documentation for preludedb generated by gtk-doc. %prep %autosetup -p1 %build %configure \ --disable-rpath \ --disable-static \ --enable-shared \ --includedir=%{_includedir}/%{name} \ --with-swig \ --with-perl-installdirs=vendor \ --without-python2 \ --with-python3 \ --enable-gtk-doc \ --with-html-dir=%{_docdir}/%{name}-devel sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool %make_build %install %make_install chrpath -d %{buildroot}%{_libdir}/*.so.* find %{buildroot} -name '*.la' -delete find %{buildroot} -name 'perllocal.pod' -delete find %{buildroot} -name '.packlist' -delete chmod +x %{buildroot}%{_datadir}/%{name}/classic/mysql2pgsql.sh chmod +x %{buildroot}%{_datadir}/%{name}/classic/mysql2sqlite.sh # Enable test again after fixing #1629893 #%check #%make_build check %ldconfig_scriptlets -n %{name} %files %{_libdir}/%{name}.so.%{major} %{_libdir}/%{name}.so.%{major}.* %{_libdir}/%{name}cpp.so.%{cppmajor} %{_libdir}/%{name}cpp.so.%{cppmajor}.* %dir %{_libdir}/%{name}/ %dir %{_libdir}/%{name}/plugins %dir %{_libdir}/%{name}/plugins/formats %dir %{_libdir}/%{name}/plugins/sql %{_libdir}/%{name}/plugins/formats/classic.so %license COPYING LICENSE.README HACKING.README %doc README NEWS %files devel %{_datadir}/%{name} %{_bindir}/%{name}-config %{_libdir}/%{name}.so %{_libdir}/%{name}cpp.so %{_includedir}/%{name} %{_datadir}/aclocal/%{name}.m4 %{_mandir}/man1/%{name}-config.1.gz %files -n preludedb-tools %{_bindir}/preludedb-admin %{_mandir}/man1/preludedb-admin.1.gz %files -n python3-preludedb %{python3_sitearch}/_preludedb.*so %{python3_sitearch}/__pycache__/preludedb.cpython-%{python3_version_nodots}.*pyc %{python3_sitearch}/preludedb-%{version}-py%{python3_version}.egg-info %{python3_sitearch}/preludedb.py %files -n preludedb-mysql %{_libdir}/%{name}/plugins/sql/mysql.so %dir %{_datadir}/%{name}/classic %{_datadir}/%{name}/classic/mysql*.sql %files -n preludedb-pgsql %{_libdir}/%{name}/plugins/sql/pgsql.so %dir %{_datadir}/%{name}/classic %{_datadir}/%{name}/classic/pgsql*.sql %files -n preludedb-sqlite3 %{_libdir}/%{name}/plugins/sql/sqlite3.so %dir %{_datadir}/%{name}/classic %{_datadir}/%{name}/classic/sqlite*.sql %files doc %{_docdir}/%{name}-devel %license COPYING LICENSE.README HACKING.README %doc ChangeLog README NEWS %changelog * Thu Jul 21 2022 Fedora Release Engineering - 5.2.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 5.2.0-9 - Rebuilt for Python 3.11 * Thu Jan 20 2022 Fedora Release Engineering - 5.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 5.2.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 5.2.0-6 - Rebuilt for Python 3.10 * Mon Feb 08 2021 Pavel Raiskup - 5.2.0-5 - rebuild for libpq ABI fix rhbz#1908268 * Tue Jan 26 2021 Fedora Release Engineering - 5.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Sep 21 2020 Thomas Andrejak - 5.2.0-3 - Fix libpreludedb-config * Fri Sep 18 2020 Thomas Andrejak - 5.2.0-2 - Clean libpreludedb-config * Thu Sep 17 2020 Thomas Andrejak - 5.2.0-1 - Bump version 5.2.0 * Tue Jul 28 2020 Fedora Release Engineering - 5.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 5.1.0-4 - Rebuilt for Python 3.9 * Wed Jan 29 2020 Fedora Release Engineering - 5.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Nov 10 2019 Thomas Andrejak - 5.1.0-2 - Add missing patches * Fri Nov 08 2019 Thomas Andrejak - 5.1.0-1 - Bump version 5.1.0 * Thu Oct 03 2019 Miro Hrončok - 5.0.0-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 5.0.0-4 - Rebuilt for Python 3.8 * Thu Jul 25 2019 Fedora Release Engineering - 5.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Jul 13 2019 Thomas Andrejak - 5.0.0-2 - Fix FTBFS with Python 3.8 (#1706207) * Tue Feb 26 2019 Thomas Andrejak - 5.0.0-1 - Bump version 5.0.0 * Fri Feb 01 2019 Fedora Release Engineering - 4.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Sep 23 2018 Thomas Andrejak - 4.1.0-5 - Remove Python2 packages * Tue Jul 24 2018 Thomas Andrejak - 4.1.0-4 - Fix FTBFS, #1604645 * Fri Jul 13 2018 Fedora Release Engineering - 4.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 4.1.0-2 - Rebuilt for Python 3.7 * Tue Mar 20 2018 Thomas Andrejak - 4.1.0-1 - Bump version 4.1.0 * Wed Feb 07 2018 Fedora Release Engineering - 4.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Sep 23 2017 Thomas Andrejak - 4.0.0-1 - Bump version 4.0.0 - Fix #1493632 * Thu Aug 03 2017 Fedora Release Engineering - 3.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 3.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 3.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Jan 9 2017 Thomas Andrejak - 3.1.0-1 - Bump version * Sun Mar 10 2013 Steve Grubb - 1:1.0.0-16 - Add -i to autoreconf to add missing test-driver - Add libtool as build dependency * Thu Feb 14 2013 Fedora Release Engineering - 1:1.0.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Sep 06 2012 Steve Grubb - 1:1.0.0-14 - Add provides bundled gnulib * Wed Aug 08 2012 Petr Pisar - 1:1.0.0-13 - Fix building with glibc-2.16.6 (bug #839607) * Thu Jul 19 2012 Fedora Release Engineering - 1:1.0.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sun Jun 10 2012 Petr Pisar - 1:1.0.0-11 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 1:1.0.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Jun 17 2011 Marcela Maslanova - 1:1.0.0-9 - Perl mass rebuild * Fri Jun 10 2011 Marcela Maslanova - 1:1.0.0-8 - Perl 5.14 mass rebuild * Wed Mar 23 2011 Dan Horák - 1:1.0.0-7 - rebuilt for mysql 5.5.10 (soname bump in libmysqlclient) * Wed Feb 09 2011 Fedora Release Engineering - 1:1.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Jul 21 2010 David Malcolm - 1:1.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Tue Jun 01 2010 Marcela Maslanova - 1:1.0.0-4 - Mass rebuild with perl-5.12.0 * Sun May 02 2010 Steve Grubb 1.0.0-3 - Fix requires * Fri Apr 30 2010 Steve Grubb 1.0.0-2 - new upstream release * Sat Jan 30 2010 Steve Grubb 1.0.0rc1-1 - new upstream bugfix release * Thu Dec 17 2009 Steve Grubb 0.9.15.3-1 - new upstream bugfix release * Mon Dec 7 2009 Stepan Kasal - 0.9.15.1-6 - rebuild against perl 5.10.1 * Tue Aug 25 2009 Steve Grubb - 0.9.15.1-5 - rebuild for new openssl * Wed Feb 25 2009 Fedora Release Engineering - 0.9.15.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Jan 24 2009 Caolán McNamara - 0.9.15.1-3 - rebuild for dependencies * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.9.15.1-2 - Rebuild for Python 2.6 * Sun Sep 14 2008 Steve Grubb 0.9.15.1-1 - new upstream bugfix release * Wed Aug 27 2008 Steve Grubb 0.9.15-1 - new upstream release * Fri Jul 04 2008 Steve Grubb - 0.9.14.1-4 - Fix perl bindings (#453935) * Wed Jun 25 2008 Tomas Mraz - 0.9.14.1-3 - rebuild with new gnutls - fix install of perl bindings * Wed Feb 20 2008 Fedora Release Engineering - 0.9.14.1-2 - Autorebuild for GCC 4.3 * Mon Jan 14 2008 Steve Grubb 0.9.14.1-1 - new upstream version 0.9.14.1 * Sun Dec 09 2007 - 0.9.11.1-4 - Add missing BR: perl-devel * Thu Dec 06 2007 Release Engineering - 0.9.11.1-3 - Rebuild for deps * Fri Jan 05 2007 Thorsten Scherf 0.9.11.1-2 - moved to new upstream version 0.9.11.1 * Mon Jan 01 2007 Thorsten Scherf 0.9.11-4 - added x86_64-sqlite3.patch to resolve x86_86 build problems * Sun Dec 31 2006 Thorsten Scherf 0.9.11-3 - resolved macro problem in changelog - changed several dirowner - moved html docs into -devel * Sat Dec 30 2006 Thorsten Scherf 0.9.11-2 - corrected file list entries - added new BuildReqs to the devel-package - changed dirowner - fixed x86_86 arch build problem with %%python_sitearch * Fri Dec 29 2006 Thorsten Scherf 0.9.11-1 - resolved rpath issue - added python_sitearch and python_sitelib - fixed permissions problem - moved to new upstream version 0.9.11 * Mon Nov 20 2006 Thorsten Scherf 0.9.10-2 - Some minor fixes in requirements * Tue Oct 24 2006 Thorsten Scherf 0.9.10-1 - New fedora build based on release 0.9.10 - New fedora build based on release 0.9.10