use optflags
better buildrequires OBS-URL: https://build.opensuse.org/package/show/network:utilities/netsniff-ng?expand=0&rev=11
This commit is contained in:
parent
e3aacf3b56
commit
cf9febe624
23
netsniff-ng-optflags.patch
Normal file
23
netsniff-ng-optflags.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
--- src/CMakeLists.txt.orig 2012-03-30 06:51:48.795695591 +0200
|
||||||
|
+++ src/CMakeLists.txt 2012-03-30 06:52:25.829694273 +0200
|
||||||
|
@@ -15,12 +15,8 @@
|
||||||
|
INCLUDE(Pod2Man)
|
||||||
|
|
||||||
|
ADD_DEFINITIONS(
|
||||||
|
- -O3
|
||||||
|
- -fstack-protector
|
||||||
|
-fpie
|
||||||
|
-std=gnu99
|
||||||
|
- -fno-strict-aliasing
|
||||||
|
- -D_FORTIFY_SOURCE=2
|
||||||
|
-D_REENTRANT
|
||||||
|
-Wall
|
||||||
|
-Wundef
|
||||||
|
@@ -55,6 +51,7 @@
|
||||||
|
-Wfloat-equal
|
||||||
|
-Wunknown-pragmas
|
||||||
|
-Wunused-function
|
||||||
|
+ ${OPTFLAGS}
|
||||||
|
)
|
||||||
|
|
||||||
|
IF (CMAKE_BUILD_TYPE STREQUAL profile)
|
@ -18,6 +18,7 @@ Release: 0
|
|||||||
Summary: High Performance Network Sniffer for Packet Inspection
|
Summary: High Performance Network Sniffer for Packet Inspection
|
||||||
Source: http://www.netsniff-ng.org/pub/netsniff-ng/netsniff-ng-%{version}.tar.gz
|
Source: http://www.netsniff-ng.org/pub/netsniff-ng/netsniff-ng-%{version}.tar.gz
|
||||||
Patch1: netsniff-ng-cmake_pod2man_without_stderr.patch
|
Patch1: netsniff-ng-cmake_pod2man_without_stderr.patch
|
||||||
|
Patch2: netsniff-ng-optflags.patch
|
||||||
URL: http://code.google.com/p/netsniff-ng/
|
URL: http://code.google.com/p/netsniff-ng/
|
||||||
Group: Productivity/Networking/Diagnostic
|
Group: Productivity/Networking/Diagnostic
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
@ -31,8 +32,10 @@ BuildRequires: liburcu-devel
|
|||||||
%else
|
%else
|
||||||
%define with_nf 0
|
%define with_nf 0
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex
|
||||||
BuildRequires: cmake gcc make glibc-devel
|
BuildRequires: bison >= 2.5
|
||||||
|
BuildRequires: cmake >= 2.8
|
||||||
|
BuildRequires: gcc make glibc-devel
|
||||||
BuildRequires: autoconf automake libtool
|
BuildRequires: autoconf automake libtool
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -50,12 +53,14 @@ firewalls.
|
|||||||
%if 0%{?suse_version} < 1140
|
%if 0%{?suse_version} < 1140
|
||||||
%patch1
|
%patch1
|
||||||
%endif
|
%endif
|
||||||
|
%patch2
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__install -d build
|
%__install -d build
|
||||||
pushd build
|
pushd build
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_INSTALL_PREFIX="%{_usr}" \
|
-DCMAKE_INSTALL_PREFIX="%{_usr}" \
|
||||||
|
-DOPTFLAGS="%{optflags}" \
|
||||||
../src/
|
../src/
|
||||||
%__make %{?_smp_mflags} VERBOSE=1
|
%__make %{?_smp_mflags} VERBOSE=1
|
||||||
popd
|
popd
|
||||||
|
Loading…
Reference in New Issue
Block a user