# # MIT License # # Copyright © 2022 TANGENT NETWORKS # # Permission is hereby granted, free of charge, to any person ob- # taining a copy of this software and associated documentation # files (the "Software"), to deal in the Software without restric- # tion, including without limitation the rights to use, copy, modi- # fy, merge, publish, distribute, sublicense, and/or sell copies of # the Software, and to permit persons to whom the Software is fur- # nished to do so, subject to the following conditions: # # THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE # INCLUDED IN ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONIN- # FRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # %define sover 2 %define lname %{name}%{sover} Name: libhtp Version: 0.5.48 Release: 1.1 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 * Thu May 30 2024 David Peter 0.5.48-1.1 - Built aarch64 packages for Fedora rawhide, fc-40, fc-39, and epel9 - Fixed build options and repaired spec file