!1 rpm: repackage lksctp-tools
Merge pull request !1 from Qianbiao.NG/develop
This commit is contained in:
commit
a38b62f823
10
lksctp-tools-1.0.16-libdir.patch
Normal file
10
lksctp-tools-1.0.16-libdir.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- lksctp-tools-1.0.16/src/withsctp/withsctp.in.orig 2014-02-18 10:42:49.000000000 +0000
|
||||||
|
+++ lksctp-tools-1.0.16/src/withsctp/withsctp.in 2014-05-06 12:24:12.931873787 +0100
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# -*- sh -*-
|
||||||
|
-LIBDIR=@libdir@/@PACKAGE@
|
||||||
|
+LIBDIR=`rpm --eval "%{_libdir}"`/@PACKAGE@
|
||||||
|
BINDIR=@bindir@
|
||||||
|
export LD_PRELOAD=${LIBDIR}/libwithsctp.so.1.0.16
|
||||||
|
if ! ${BINDIR}/checksctp 2> /dev/null
|
||||||
BIN
lksctp-tools-1.0.16.tar.gz
Normal file
BIN
lksctp-tools-1.0.16.tar.gz
Normal file
Binary file not shown.
83
lksctp-tools.spec
Normal file
83
lksctp-tools.spec
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
Name: lksctp-tools
|
||||||
|
Version: 1.0.16
|
||||||
|
Release: 11
|
||||||
|
Summary: Linux Kernel Stream Control Transmission Protocol Tools
|
||||||
|
|
||||||
|
License: GPLv2 and GPLv2+ and LGPLv2 and MIT
|
||||||
|
URL: http://lksctp.sourceforge.net
|
||||||
|
Source0: https://downloads.sourceforge.net/project/lksctp/lksctp-tools/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: make gcc libtool autoconf automake
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
The lksctp-tools project provides a Linux user space library for SCTP (libsctp)
|
||||||
|
including C language header files (netinet/sctp.h) for accessing SCTP specific
|
||||||
|
application programming interfaces not provided by the standard sockets,
|
||||||
|
and also some helper utilities around SCTP.
|
||||||
|
|
||||||
|
For more information on the features and functions currently supported by
|
||||||
|
lksctp, please refer to the documentation in the Linux kernel resp. in the
|
||||||
|
lksctp-tools package. The lksctp-tools source contains a set of test programs
|
||||||
|
which would also serve as example applications.
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Development files for %{name} which include header files and dynamic
|
||||||
|
libraries.
|
||||||
|
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
rm -rf configure && sh bootstrap
|
||||||
|
%configure --disable-static
|
||||||
|
%disable_rpath
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
%delete_la
|
||||||
|
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%preun
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%license COPYING*
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_libdir}/libsctp.so.*
|
||||||
|
%{_libdir}/lksctp-tools/libwithsctp.so.*
|
||||||
|
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/libsctp.so
|
||||||
|
%{_libdir}/lksctp-tools/libwithsctp.so
|
||||||
|
%{_datadir}/lksctp-tools/
|
||||||
|
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%doc AUTHORS ChangeLog README doc/*.txt
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
%{_mandir}/man7/*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Nov 28 2019 Qianbiao.NG <Qianbiao.NG@turnbig.net> - 1.0.16-11
|
||||||
|
- Repackage for openEuler OS
|
||||||
Loading…
x
Reference in New Issue
Block a user