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
This commit is contained in:
Dirk Stoecker 2021-08-26 13:19:36 +00:00 committed by Git OBS Bridge
parent 85c6ff090c
commit 08bb2e3737
2 changed files with 24 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 26 09:15:54 UTC 2021 - Martin Hauke <mardnh@gmx.de>
- Create -common subpackage
-------------------------------------------------------------------
Sun Aug 22 12:48:59 UTC 2021 - Martin Hauke <mardnh@gmx.de>

View File

@ -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