From aa3ae9a9594d2abbf482073fbe48e82837bf7796 Mon Sep 17 00:00:00 2001 From: tushenmei Date: Tue, 1 Sep 2020 10:40:28 +0800 Subject: [PATCH] delete 0001.patch and modify spec --- 0001-Add-vim-modelines-to-source-files.patch | 35 -------------------- libkeepalive.spec | 9 +++-- 2 files changed, 4 insertions(+), 40 deletions(-) delete mode 100644 0001-Add-vim-modelines-to-source-files.patch diff --git a/0001-Add-vim-modelines-to-source-files.patch b/0001-Add-vim-modelines-to-source-files.patch deleted file mode 100644 index 8517b7f..0000000 --- a/0001-Add-vim-modelines-to-source-files.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 6b41a8a337db852ec47635fcd724d73c9e1046c1 Mon Sep 17 00:00:00 2001 -From: Phil Sutter -Date: Fri, 25 Nov 2016 11:34:18 +0100 -Subject: [PATCH] Add vim modelines to source files - -This automatically sets up vim to use two space indenting if modelines -is active. - -Signed-off-by: Phil Sutter ---- - src/libkeepalive.c | 1 + - test/test.c | 1 + - 2 files changed, 2 insertions(+) - -diff --git a/src/libkeepalive.c b/src/libkeepalive.c -index a08bd98abe7b8..06b66ca7a8ea5 100644 ---- a/src/libkeepalive.c -+++ b/src/libkeepalive.c -@@ -1,3 +1,4 @@ -+/* vim: set ts=2 sw=2 et: */ - /* - _ _ _ _ _ _ - | (_) |__ | | _____ ___ _ __ __ _| (_)_ _____ -diff --git a/test/test.c b/test/test.c -index 756d7ae631f4a..c793225eaa820 100644 ---- a/test/test.c -+++ b/test/test.c -@@ -1,3 +1,4 @@ -+/* vim: set ts=2 sw=2 et: */ - /* - _ _ _ _ _ _ - | (_) |__ | | _____ ___ _ __ __ _| (_)_ _____ --- -2.10.0 - diff --git a/libkeepalive.spec b/libkeepalive.spec index 88c47b1..4286465 100644 --- a/libkeepalive.spec +++ b/libkeepalive.spec @@ -8,11 +8,10 @@ License: MIT Source0: https://cfhcable.dl.sourceforge.net/project/%{name}/%{name}/0.3/%{name}-0.3.tar.gz # All patches sent to the upstream maintainer directly via email. -Patch1: 0001-Add-vim-modelines-to-source-files.patch -Patch2: 0002-test-test.c-Whitespace-cleanup.patch -Patch3: 0003-test-Implement-self-test-functionality.patch -Patch4: 0004-Makefile-Make-self-test-accessible-by-make-test.patch -Patch5: 0005-Makefile-Allow-setting-custom-compiler-flags.patch +Patch1: 0002-test-test.c-Whitespace-cleanup.patch +Patch2: 0003-test-Implement-self-test-functionality.patch +Patch3: 0004-Makefile-Make-self-test-accessible-by-make-test.patch +Patch4: 0005-Makefile-Allow-setting-custom-compiler-flags.patch %description libkeepalive is a library that enables tcp keepalive features in glibc based binary dynamic executables, without any change in the original program.