libkeepalive/libkeepalive.spec

41 lines
1.1 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-28 16:01:50 +08:00
Name: libkeepalive
Version: 0.3
Release: 1
Summary: Enable TCP keepalive in dynamic binaries
URL: http://libkeepalive.sourceforge.net/
BuildRequires: gcc
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.
2020-09-01 10:40:28 +08:00
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
2020-08-28 16:01:50 +08:00
%description
libkeepalive is a library that enables tcp keepalive features in glibc based
binary dynamic executables, without any change in the original program.
%prep
%autosetup -p1
%build
export CFLAGS="%{optflags}"
export LDFLAGS="%{__global_ldflags}"
%make_build
%check
make test
%install
install -p -m 0755 -D src/libkeepalive.so %{buildroot}%{_libdir}/libkeepalive.so
%files
%license LICENSE
%doc README
%{_libdir}/libkeepalive.so
%changelog
* Thu Aug 13 2020 tuShenmei <tushenmei@huawei.com> - 0.3-1
- package init