diff --git a/ndpi.changes b/ndpi.changes index 3fbc38f..9138280 100644 --- a/ndpi.changes +++ b/ndpi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 26 09:15:54 UTC 2021 - Martin Hauke + +- Create -common subpackage + ------------------------------------------------------------------- Sun Aug 22 12:48:59 UTC 2021 - Martin Hauke diff --git a/ndpi.spec b/ndpi.spec index de83966..2bd69e9 100644 --- a/ndpi.spec +++ b/ndpi.spec @@ -57,6 +57,7 @@ available only on the paid version of OpenDPI. %package -n libndpi%{sover} Summary: Extensible deep packet inspection library Group: System/Libraries +Requires: ndpi-common %description -n libndpi%{sover} nDPI is a ntop-maintained superset of the OpenDPI library. It extends @@ -92,6 +93,17 @@ available only on the paid version of OpenDPI. This package contains the ndpiReader binary. +%package -n ndpi-common +Summary: Common files used by nDPI +Group: Development/Libraries/C and C++ + +%description -n ndpi-common +nDPI is a ntop-maintained superset of the OpenDPI library. It extends +the original library by adding new protocols that are otherwise +available only on the paid version of OpenDPI. + +This package contains common files used by nDPI. + %prep %setup -q -n nDPI-%{version} %patch0 -p1 @@ -110,16 +122,12 @@ make %{?_smp_mflags} %install %make_install PREFIX=%{_prefix} prefix=%{_prefix} libdir=%{_libdir} rm -f %{buildroot}/%{_libdir}/libndpi.a -rm -rf %{buildroot}/%{_sbindir}/ndpi +rm -f %{buildroot}/%{_sbindir}/ndpi %post -n libndpi%{sover} -p /sbin/ldconfig %postun -n libndpi%{sover} -p /sbin/ldconfig %files -n libndpi%{sover} -%license COPYING -%doc CHANGELOG.md README.md README.nDPI README.protocols -%doc doc/nDPI_QuickStartGuide.pdf -%{_datadir}/%{name} %{_libdir}/libndpi.so.%{sover}* %files -n libndpi-devel @@ -131,4 +139,10 @@ rm -rf %{buildroot}/%{_sbindir}/ndpi %{_bindir}/ndpiReader %doc wireshark +%files -n ndpi-common +%license COPYING +%doc CHANGELOG.md README.md README.nDPI README.protocols +%doc doc/nDPI_QuickStartGuide.pdf +%{_datadir}/%{name} + %changelog