- drop Werror auto/th/dropwatch-1.4-7
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 1 Apr 2016 08:44:17 +0000 (17:44 +0900)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 1 Apr 2016 08:44:17 +0000 (17:44 +0900)
- rel 7

dropwatch.spec
np-Werror.patch [new file with mode: 0644]

index 7f05913edad3ffa7f48b631ac0f3a28c93a2354c..e6abc13047b3c5bc85fc9f0577d8cd0dd89281de 100644 (file)
@@ -1,11 +1,12 @@
 Summary:       Kernel dropped packet monitor
 Name:          dropwatch
 Version:       1.4
-Release:       6
+Release:       7
 License:       GPL v2+
 Group:         Applications/System
 Source0:       https://fedorahosted.org/releases/d/r/dropwatch/%{name}-%{version}.tbz2
 # Source0-md5: 5145753b3e9255bd9b190251ba4d3bbf
+Patch0:                np-Werror.patch
 URL:           http://fedorahosted.org/dropwatch
 BuildRequires: binutils-devel
 BuildRequires: libnl-devel
@@ -21,6 +22,7 @@ dropped network packets.
 
 %prep
 %setup -q
+%patch0 -p1
 
 cd src
 %{__sed} -i -e 's,gcc,$(CC),g' Makefile
@@ -29,10 +31,9 @@ cd src
 
 %build
 %{__make} -C src \
-       CC="%{__cc}"
+       CC="%{__cc}" \
        EXTRA_CFLAGS="%{rpmcflags}" \
-       EXTRA_LDFLAGS="%{rpmldflags}" \
-       %{nil}
+       EXTRA_LDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/np-Werror.patch b/np-Werror.patch
new file mode 100644 (file)
index 0000000..075506b
--- /dev/null
@@ -0,0 +1,9 @@
+--- dropwatch-1.4/src/Makefile~        2016-04-01 17:36:46.000000000 +0900
++++ dropwatch-1.4/src/Makefile 2016-04-01 17:42:02.414711018 +0900
+@@ -1,5 +1,5 @@
+ all: dropwatch
+-CFLAGS+=-c -g -D_GNU_SOURCE -Wall -Werror `pkg-config --cflags libnl-3.0`
++CFLAGS+=-c -g -D_GNU_SOURCE -Wall `pkg-config --cflags libnl-3.0`
+ LDFLAGS=-lbfd -lreadline -lnl-3 -lnl-genl-3
+ OBJFILES := main.o lookup.o\
+        lookup_bfd.o lookup_kas.o
This page took 0.322159 seconds and 4 git commands to generate.