Modsecurity lib updated. RPATH problem fixed in spec files of modsecurity-apache and libmodsecurity

This commit is contained in:
2019-01-22 23:54:20 +01:00
parent f46b376577
commit 8712b8eddb
3 changed files with 155 additions and 374 deletions

View File

@@ -1,18 +1,16 @@
Name: libmodsecurity
Version: 3.0.2
Name: libmodsecurity
Version: 3.0.3
Release: 1%{?dist}
Summary: A library that loads/interprets rules written in the ModSecurity SecRules
License: ASL 2.0
URL: https://www.modsecurity.org/
URL: http://www.modsecurity.org/
Group: System Environment/Daemons
Summary: A library that loads/interprets rules written in the ModSecurity SecRules
Source0: https://github.com/SpiderLabs/ModSecurity/releases/download/v%{version}/modsecurity-v%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: flex
BuildRequires: bison
BuildRequires: bison
BuildRequires: git-core
BuildRequires: ssdeep-devel
BuildRequires: yajl-devel
@@ -26,6 +24,9 @@ BuildRequires: pkgconfig(geoip)
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(lmdb)
#Requires:
BuildRequires: libxml2-devel pcre-devel lua-devel libmaxminddb-devel lmdb-devel ssdeep-devel libcurl-devel
# libinjection is supposed to be bundled (same as with mod_security 2.x)
# See: https://github.com/client9/libinjection#embedding
Provides: bundled(libinjection) = 3.9.2
@@ -60,11 +61,32 @@ applications that use %{name}.
%autosetup -n modsecurity-v%{version}
%build
%configure --libdir=%{_libdir} --with-lua --with-ssdeep --with-lmdb --with-maxmind --with-geoip --with-yajl --with-pic
%configure \
--enable-shared \
--enable-fast-install \
--enable-examples \
--enable-parser-generation \
--enable-mutex-on-pm \
--disable-doxygen-doc \
--enable-valgrind \
--enable-valgrind-sgcheck \
--with-yajl \
--with-maxmind \
--with-geoip \
--with-lmdb \
--with-ssdeep \
--with-lua \
--with-pic
# remove rpath from libtool
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%install
%make_install
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}/*
make install DESTDIR=%{buildroot}
%post -p /sbin/ldconfig
@@ -80,6 +102,7 @@ applications that use %{name}.
%doc README.md AUTHORS
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/modsecurity.pc
%license LICENSE
%files static
@@ -91,5 +114,6 @@ applications that use %{name}.
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
%changelog
* Sun Apr 15 2018 Daniel Steiner <daniel.steiner@greenmail.ch> 3.0.2-1
- Initial build for Fedora 27
* Tue Jan 22 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- New 3.x build for Fedora 29.