85 lines
2.3 KiB
RPMSpec
85 lines
2.3 KiB
RPMSpec
Name: ndpi
|
|
Version: 3.4
|
|
Release: 1mamba
|
|
Summary: A library for deep-packet inspection
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
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: ldconfig
|
|
BuildRequires: libgcrypt-devel
|
|
BuildRequires: libgpg-error-devel
|
|
BuildRequires: libpcap-devel
|
|
## AUTOBUILDREQ-END
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%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
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall libdir=%{_libdir}
|
|
|
|
%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 README.nDPI README.protocols
|
|
|
|
%changelog
|
|
* Mon Dec 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4-1mamba
|
|
- package created using the webbuild interface
|