Accepting request 678573 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/678573 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ndpi?expand=0&rev=2
This commit is contained in:
commit
eeb2c8bc9d
@ -1,7 +1,7 @@
|
|||||||
diff --git a/Makefile.am b/Makefile.am
|
Index: nDPI-2.6/Makefile.am
|
||||||
index 37f0849..4090817 100644
|
===================================================================
|
||||||
--- a/Makefile.am
|
--- nDPI-2.6.orig/Makefile.am
|
||||||
+++ b/Makefile.am
|
+++ nDPI-2.6/Makefile.am
|
||||||
@@ -1,7 +1,7 @@
|
@@ -1,7 +1,7 @@
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
SUBDIRS = src/lib example tests
|
SUBDIRS = src/lib example tests
|
||||||
@ -11,30 +11,17 @@ index 37f0849..4090817 100644
|
|||||||
pkgconfig_DATA = libndpi.pc
|
pkgconfig_DATA = libndpi.pc
|
||||||
|
|
||||||
EXTRA_DIST = autogen.sh
|
EXTRA_DIST = autogen.sh
|
||||||
diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in
|
Index: nDPI-2.6/src/lib/Makefile.in
|
||||||
index 0ffeb9d..2c0296a 100644
|
===================================================================
|
||||||
--- a/src/lib/Makefile.in
|
--- nDPI-2.6.orig/src/lib/Makefile.in
|
||||||
+++ b/src/lib/Makefile.in
|
+++ nDPI-2.6/src/lib/Makefile.in
|
||||||
@@ -10,8 +10,8 @@
|
@@ -61,7 +61,7 @@ distclean: clean
|
||||||
#
|
|
||||||
# Installation directories
|
|
||||||
#
|
|
||||||
-prefix = /usr/local
|
|
||||||
-libdir = ${prefix}/lib
|
|
||||||
+prefix = /usr
|
|
||||||
+libdir = ${prefix}/lib64
|
|
||||||
includedir = ${prefix}/include/ndpi
|
|
||||||
CC = @CC@
|
|
||||||
CFLAGS += -fPIC -DPIC -I../include -Ithird_party/include -DNDPI_LIB_COMPILATION -O2 -g
|
|
||||||
@@ -60,8 +60,8 @@ distclean: clean
|
|
||||||
|
|
||||||
install: $(NDPI_LIBS)
|
install: $(NDPI_LIBS)
|
||||||
mkdir -p $(DESTDIR)$(libdir)
|
mkdir -p $(DESTDIR)$(libdir)
|
||||||
- cp $(NDPI_LIBS) $(DESTDIR)$(libdir)/
|
cp $(NDPI_LIBS) $(DESTDIR)$(libdir)/
|
||||||
- ln -Ffs $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE)
|
- ln -Ffs $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE)
|
||||||
- ln -Ffs $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
|
- ln -Ffs $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
|
||||||
+ ln -sf $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE)
|
+ ln -Ffs $(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE)
|
||||||
+ ln -sf $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
|
+ ln -Ffs $(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
|
||||||
+ cp -v libndpi.so* $(DESTDIR)$(libdir)/
|
|
||||||
mkdir -p $(DESTDIR)$(includedir)
|
mkdir -p $(DESTDIR)$(includedir)
|
||||||
cp ../include/*.h $(DESTDIR)$(includedir)
|
cp ../include/*.h $(DESTDIR)$(includedir)
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Feb 24 15:00:58 UTC 2019 - schwab@suse.de
|
||||||
|
|
||||||
|
- override prefix and libdir during install
|
||||||
|
- ndpi-fix-build.patch: don't install multiple copies of the library
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 8 17:01:56 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
Tue Jan 8 17:01:56 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
18
ndpi.spec
18
ndpi.spec
@ -1,6 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package nDPI
|
# spec file for package ndpi
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
|
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -12,9 +13,10 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
%bcond_without hyperscan
|
%bcond_without hyperscan
|
||||||
%endif
|
%endif
|
||||||
@ -24,9 +26,9 @@ Name: ndpi
|
|||||||
Version: 2.6
|
Version: 2.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Extensible deep packet inspection library
|
Summary: Extensible deep packet inspection library
|
||||||
# wireshark/ndpi.lua is GPL-3.0-or-later
|
|
||||||
License: LGPL-3.0-only
|
License: LGPL-3.0-only
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
# wireshark/ndpi.lua is GPL-3.0-or-later
|
||||||
URL: https://github.com/ntop/nDPI
|
URL: https://github.com/ntop/nDPI
|
||||||
Source: https://github.com/ntop/nDPI/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/ntop/nDPI/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
# FIXME: Upstream makefile is broken
|
# FIXME: Upstream makefile is broken
|
||||||
@ -35,11 +37,11 @@ BuildRequires: autoconf
|
|||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libnuma-devel
|
BuildRequires: libnuma-devel
|
||||||
|
BuildRequires: libnuma-devel
|
||||||
BuildRequires: libpcap-devel
|
BuildRequires: libpcap-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(json-c)
|
BuildRequires: pkgconfig(json-c)
|
||||||
BuildRequires: libnuma-devel
|
|
||||||
%if 0%{with hyperscan}
|
%if 0%{with hyperscan}
|
||||||
BuildRequires: pkgconfig(libhs)
|
BuildRequires: pkgconfig(libhs)
|
||||||
%endif
|
%endif
|
||||||
@ -87,13 +89,9 @@ This package contains the ndpiReader binary.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n nDPI-%{version}
|
%setup -q -n nDPI-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
sh autogen.sh
|
|
||||||
# FIXME: Upstream makefile is broken
|
|
||||||
%ifarch %{ix86}
|
|
||||||
sed -i 's/lib64/lib/g' src/lib/Makefile.in
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
sh autogen.sh
|
||||||
%configure \
|
%configure \
|
||||||
%if 0%{with hyperscan}
|
%if 0%{with hyperscan}
|
||||||
--with-hyperscan \
|
--with-hyperscan \
|
||||||
@ -102,7 +100,7 @@ sed -i 's/lib64/lib/g' src/lib/Makefile.in
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install PREFIX=%{_prefix}
|
%make_install PREFIX=%{_prefix} prefix=%{_prefix} libdir=%{_libdir}
|
||||||
rm -f %{buildroot}/%{_libdir}/libndpi.a
|
rm -f %{buildroot}/%{_libdir}/libndpi.a
|
||||||
|
|
||||||
%post -n libndpi%{sover} -p /sbin/ldconfig
|
%post -n libndpi%{sover} -p /sbin/ldconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user