2016-10-03 14:43:42 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package libhtp
|
|
|
|
|
#
|
2025-07-09 15:29:33 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2024-06-03 13:57:24 +00:00
|
|
|
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
|
2016-10-03 14:43:42 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-09-26 00:46:48 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-10-03 14:43:42 +00:00
|
|
|
#
|
|
|
|
|
|
2019-09-26 00:46:48 +00:00
|
|
|
|
2018-06-04 18:40:57 +00:00
|
|
|
%define sover 2
|
2019-03-17 01:31:22 +00:00
|
|
|
%define lname %{name}%{sover}
|
2024-06-03 13:57:24 +00:00
|
|
|
%bcond_without tests
|
2016-10-03 14:43:42 +00:00
|
|
|
Name: libhtp
|
2025-07-09 15:29:33 +00:00
|
|
|
Version: 0.5.50
|
2016-10-03 14:43:42 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: HTTP normalizer and parser
|
2019-05-07 09:31:23 +00:00
|
|
|
License: BSD-3-Clause
|
2016-10-03 14:43:42 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2024-06-03 13:57:24 +00:00
|
|
|
URL: https://www.openinfosecfoundation.org/
|
2018-06-04 18:40:57 +00:00
|
|
|
Source: https://github.com/OISF/libhtp/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2016-10-03 14:43:42 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: pkgconfig
|
2018-06-04 18:40:57 +00:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2024-06-03 13:57:24 +00:00
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: c++_compiler
|
|
|
|
|
%endif
|
2016-10-03 14:43:42 +00:00
|
|
|
|
|
|
|
|
%description
|
2025-07-09 15:29:33 +00:00
|
|
|
LibHTP is a security-aware parser for the HTTP protocol and the related bits
|
|
|
|
|
and pieces. The goal of the project is mainly to support the Suricata use case.
|
|
|
|
|
Other use cases might not fully be supported, and we encourage you to cover these.
|
2016-10-03 14:43:42 +00:00
|
|
|
|
|
|
|
|
%package -n %{lname}
|
|
|
|
|
Summary: Library for HTTP normalizer and parser
|
2018-06-04 18:40:57 +00:00
|
|
|
Group: System/Libraries
|
2016-10-03 14:43:42 +00:00
|
|
|
|
|
|
|
|
%description -n %{lname}
|
2025-07-09 15:29:33 +00:00
|
|
|
LibHTP is a security-aware parser for the HTTP protocol and the related bits
|
|
|
|
|
and pieces. The goal of the project is mainly to support the Suricata use case.
|
|
|
|
|
Other use cases might not fully be supported, and we encourage you to cover these.
|
2016-10-03 14:43:42 +00:00
|
|
|
|
|
|
|
|
%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
|
2024-06-03 13:57:24 +00:00
|
|
|
%autosetup -p1
|
2018-06-04 18:40:57 +00:00
|
|
|
sed -i 's/\r$//' ChangeLog
|
2016-10-03 14:43:42 +00:00
|
|
|
|
|
|
|
|
%build
|
2024-06-03 13:57:24 +00:00
|
|
|
autoreconf -fiv
|
|
|
|
|
%configure \
|
|
|
|
|
--disable-static
|
|
|
|
|
%make_build
|
2016-10-03 14:43:42 +00:00
|
|
|
|
|
|
|
|
%install
|
2018-06-04 18:40:57 +00:00
|
|
|
%make_install
|
2016-10-03 14:43:42 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
2024-06-03 13:57:24 +00:00
|
|
|
%check
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%make_build test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets -n %{lname}
|
2016-10-03 14:43:42 +00:00
|
|
|
|
|
|
|
|
%files -n %{lname}
|
2018-06-04 18:40:57 +00:00
|
|
|
%license COPYING LICENSE
|
|
|
|
|
%doc AUTHORS ChangeLog README
|
2024-06-03 13:57:24 +00:00
|
|
|
%{_libdir}/libhtp.so.%{sover}
|
|
|
|
|
%{_libdir}/libhtp.so.%{sover}.*
|
2016-10-03 14:43:42 +00:00
|
|
|
|
|
|
|
|
%files devel
|
2024-06-03 13:57:24 +00:00
|
|
|
%license COPYING LICENSE
|
2018-06-04 18:40:57 +00:00
|
|
|
%{_includedir}/htp
|
|
|
|
|
%{_libdir}/libhtp.so
|
2016-10-03 14:43:42 +00:00
|
|
|
%{_libdir}/pkgconfig/htp.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|