forked from pool/libhtp
e65f673fb3
- Update to version 0.5.46 * tx: configurable number of maximum transactions * htp: offers possibility to remove transactions * headers: limit the size of folded headers * request: be more liberal about transfer-encoding value * request: continue processing even with invalid headers * http0.9: process headers if there are non-space characters * htp_util: fix spelling issue * src: fix -Wshorten-64-to-32 warnings * uri: normalization removes trailing spaces * CVE-2024-23837 - Critical severity OBS-URL: https://build.opensuse.org/request/show/1147511 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/libhtp?expand=0&rev=37
81 lines
2.7 KiB
RPMSpec
81 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package libhtp
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define sover 2
|
|
%define lname %{name}%{sover}
|
|
Name: libhtp
|
|
Version: 0.5.46
|
|
Release: 0
|
|
Summary: HTTP normalizer and parser
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/C and C++
|
|
URL: http://www.openinfosecfoundation.org/
|
|
Source: https://github.com/OISF/libhtp/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
%description
|
|
The HTP Library is an HTTP normalizer and parser written by Ivan Ristic of Mod Security fame for the OISF. This integrates and provides very advanced processing of HTTP streams for Suricata. The HTP library is required by the engine, but may also be used independently in a range of applications and tools.
|
|
|
|
%package -n %{lname}
|
|
Summary: Library for HTTP normalizer and parser
|
|
Group: System/Libraries
|
|
|
|
%description -n %{lname}
|
|
The HTP Library is an HTTP normalizer and parser written by Ivan Ristic of Mod Security fame for the OISF. This integrates and provides very advanced processing of HTTP streams for Suricata. The HTP library is required by the engine, but may also be used independently in a range of applications and tools.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{lname} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
sed -i 's/\r$//' ChangeLog
|
|
|
|
%build
|
|
autoreconf -fi
|
|
%configure --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
%files -n %{lname}
|
|
%license COPYING LICENSE
|
|
%doc AUTHORS ChangeLog README
|
|
%{_libdir}/libhtp.so.%{sover}*
|
|
|
|
%files devel
|
|
%{_includedir}/htp
|
|
%{_libdir}/libhtp.so
|
|
%{_libdir}/pkgconfig/htp.pc
|
|
|
|
%changelog
|