Bump version 5.0.0

This commit is contained in:
Thomas Andrejak 2019-07-19 07:36:01 +02:00
parent 24a7e83179
commit efef8a9bb6
7 changed files with 2093 additions and 8 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/libpreludedb-4.1.0.tar.gz
/libpreludedb-5.0.0.tar.gz

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
--- ./bindings/python/_preludedb.cxx 2019-07-13 08:39:59.744285379 +0200
+++ ./bindings/python/_preludedb.cxx 2019-07-13 08:41:47.364117843 +0200
@@ -3133,7 +3133,7 @@
SWIGINTERN void
SwigPyStaticVar_dealloc(PyDescrObject *descr) {
- _PyObject_GC_UNTRACK(descr);
+ PyObject_GC_UnTrack(descr);
Py_XDECREF(PyDescr_TYPE(descr));
Py_XDECREF(PyDescr_NAME(descr));
PyObject_GC_Del(descr);

View File

@ -1,11 +1,17 @@
%if 0%{?python3_other_pkgversion}
%bcond_without python3_other
%else
%bcond_with python3_other
%endif
# API version for libpreludedb
%global major 7
# API version for libpreludedb c++ binding
%global cppmajor 2
Name: libpreludedb
Version: 4.1.0
Release: 3%{?dist}
Version: 5.0.0
Release: 1%{?dist}
Summary: Framework for easy access to the IDMEF database
# Prelude is GPL-2.0+
# libmissing is LGPL-2.1+
@ -13,9 +19,11 @@ 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/866
Patch0: libpreludedb-4.1.0-manpages.patch
Patch0: libpreludedb-5.0.0-manpages.patch
# https://www.prelude-siem.org/issues/867
Patch1: libpreludedb-4.1.0-undefined_non_weak_symbol.patch
Patch1: libpreludedb-5.0.0-undefined_non_weak_symbol.patch
Patch2: libpreludedb-5.0.0-bump_swig_files_to_swig4.patch
Patch3: libpreludedb-5.0.0-fix_py38.patch
BuildRequires: bison
BuildRequires: chrpath
BuildRequires: flex
@ -40,9 +48,9 @@ BuildRequires: valgrind
%endif
# Upstream do not use explicit version of gnulib, just checkout
# and update files. In libprelude 4.0.0, the checkout has been done
# on 2017-07-10
Provides: bundled(gnulib) = 20170710
# and update files. In libpreludedb 5.0.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
@ -87,6 +95,20 @@ Requires: python%{python3_pkgversion}-prelude
%description -n python%{python3_pkgversion}-preludedb
Provides python 3 bindings for preludedb.
%if 0%{?with_python3_other}
%package -n python%{python3_other_pkgversion}-preludedb
Summary: Python 3 bindings for preludedb
BuildRequires: python%{python3_other_pkgversion}-devel
BuildRequires: python%{python3_other_pkgversion}-setuptools
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: python%{python3_other_pkgversion}-prelude
%{?python_provide:%python_provide python%{python3_other_pkgversion}-preludedb}
%description -n python%{python3_other_pkgversion}-preludedb
Provides python 3 bindings for preludedb.
# with_python3_other
%endif
%package -n preludedb-mysql
Summary: Plugin to use prelude with a MySQL database
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -134,9 +156,13 @@ Provides documentation for preludedb generated by gtk-doc.
--with-html-dir=%{_docdir}/%{name}-devel
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
%make_build
cd %{_builddir}/%{name}-%{version}/bindings/python
%{?with_python3_other: %py3_other_build}
%install
%make_install
cd %{_builddir}/%{name}-%{version}/bindings/python
%{?with_python3_other: %py3_other_install}
chrpath -d %{buildroot}%{_libdir}/*.so.*
@ -191,6 +217,16 @@ chmod +x %{buildroot}%{_datadir}/%{name}/classic/mysql2sqlite.sh
%{python3_sitearch}/preludedb-%{version}-py?.?.egg-info
%{python3_sitearch}/preludedb.py
%if 0%{?with_python3_other}
%files -n python%{python3_other_pkgversion}-preludedb
%{python3_other_sitearch}/_preludedb.*so
%{python3_other_sitearch}/__pycache__/preludedb.cpython-??.*pyc
%{python3_other_sitearch}/__pycache__/preludedb.cpython-??.*pyo
%{python3_other_sitearch}/preludedb-%{version}-py?.?.egg-info
%{python3_other_sitearch}/preludedb.py
# with_python3_other
%endif
%files -n preludedb-mysql
%{_libdir}/%{name}/plugins/sql/mysql.so
%dir %{_datadir}/%{name}/classic
@ -212,6 +248,9 @@ chmod +x %{buildroot}%{_datadir}/%{name}/classic/mysql2sqlite.sh
%doc ChangeLog README NEWS
%changelog
* Wed Jul 17 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.0.0-1
- Bump version 5.0.0
* Wed Jul 17 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 4.1.0-3
- Rebuilt because soname bump of libprelude

View File

@ -1 +1 @@
SHA512 (libpreludedb-4.1.0.tar.gz) = de1fa5106d7f34edb5a23e726c968de84bb8b10257587b6ee36276ed75ddc54f4f9539aecb7836e114eb3bfa90104dd3b5e097be0c3d12347dcbded94f293dc4
SHA512 (libpreludedb-5.0.0.tar.gz) = 5e0a59abed2e62107ffd9532ebd7b60315239589060604a0481284e98986c92736c9a15aeab557287fa55d47424b91e29315a23c8705b8d6778aff4960e606ca