delete 0001.patch and modify spec

This commit is contained in:
tushenmei 2020-09-01 10:40:28 +08:00
parent a5600d9f84
commit aa3ae9a959
2 changed files with 4 additions and 40 deletions

View File

@ -1,35 +0,0 @@
From 6b41a8a337db852ec47635fcd724d73c9e1046c1 Mon Sep 17 00:00:00 2001
From: Phil Sutter <psutter@redhat.com>
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 <psutter@redhat.com>
---
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

View File

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