From 08bb2e3737e55fea9a4e68ab710ea940ee126eb7fd667e37ab1e46706374b299 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Thu, 26 Aug 2021 13:19:36 +0000 Subject: [PATCH] Accepting request 914390 from home:mnhauke:monitoring - Create -common subpackage OBS-URL: https://build.opensuse.org/request/show/914390 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/ndpi?expand=0&rev=24 --- ndpi.changes | 5 +++++ ndpi.spec | 24 +++++++++++++++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) 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