Name: ndpi Version: 4.8 Release: 1mamba Summary: A library for deep-packet inspection Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/ntop/nDPI Source: https://github.com/ntop/nDPI.git/%{version}/nDPI-%{version}.tar.bz2 License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libpcap-devel ## AUTOBUILDREQ-END Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} %description nDPI® is an open source LGPLv3 library for deep-packet inspection. Based on OpenDPI it includes ntop extensions. We have tried to push them into the OpenDPI source tree but nobody answered emails so we have decided to create our own source tree %package -n lib%{name} Group: System/Libraries Summary: Shared libraries for %{name} %description -n lib%{name} This package contains shared libraries for %{name}. %package -n lib%{name}-devel Group: Development/Libraries Summary: Development files for %{name} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: pkg-config %description -n lib%{name}-devel This package contains libraries and header files for developing applications that use %{name}. %debug_package %prep %setup -q -n nDPI-%{version} ./autogen.sh %build %configure \ --prefix=/ %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall libdir=%{_libdir} # FIXME: workaround since 4.6 install -d -m0755 %{buildroot}%{_bindir} %{buildroot}%{_datadir} mv %{buildroot}/bin/* %{buildroot}%{_bindir}/ mv %{buildroot}/share/* %{buildroot}%{_datadir}/ %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/ndpiReader %dir %{_datadir}/ndpi %{_datadir}/ndpi/ndpi*.txt %files -n lib%{name} %defattr(-,root,root) %{_libdir}/libndpi.so.* %doc COPYING %files -n lib%{name}-devel %defattr(-,root,root) %dir %{_includedir}/ndpi %{_includedir}/ndpi/ndpi_*.h %{_libdir}/libndpi.a %{_libdir}/libndpi.so %{_libdir}/pkgconfig/libndpi.pc %doc README.md %changelog * Tue Oct 24 2023 Automatic Build System 4.8-1mamba - automatic version update by autodist * Mon Feb 13 2023 Automatic Build System 4.6-1mamba - automatic version update by autodist * Sun Jul 10 2022 Automatic Build System 4.4-1mamba - automatic version update by autodist * Mon Feb 07 2022 Automatic Build System 4.2-1mamba - automatic version update by autodist * Sat Jul 31 2021 Automatic Build System 4.0-1mamba - automatic version update by autodist * Mon Dec 14 2020 Silvan Calarco 3.4-1mamba - package created using the webbuild interface