From 9c2663055b2b3f4e5a81346a1bbbb9a6fa382892 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 03 2021 23:32:42 +0000 Subject: import lksctp-tools-1.0.18-11.el9 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3087f85 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/lksctp-tools-1.0.18.tar.gz diff --git a/.lksctp-tools.metadata b/.lksctp-tools.metadata new file mode 100644 index 0000000..b4f0a0d --- /dev/null +++ b/.lksctp-tools.metadata @@ -0,0 +1 @@ +9194041a5c08cfcf34f76a4cfa40c68065e5de0a SOURCES/lksctp-tools-1.0.18.tar.gz diff --git a/SOURCES/lksctp-tools-1.0.16-libdir.patch b/SOURCES/lksctp-tools-1.0.16-libdir.patch new file mode 100644 index 0000000..c90356d --- /dev/null +++ b/SOURCES/lksctp-tools-1.0.16-libdir.patch @@ -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.17 + if ! ${BINDIR}/checksctp 2> /dev/null diff --git a/SOURCES/lksctp-tools-1.0.18-build-0b0dce7a36fb-actually-belongs-to-v4.19.patch b/SOURCES/lksctp-tools-1.0.18-build-0b0dce7a36fb-actually-belongs-to-v4.19.patch new file mode 100644 index 0000000..d824fcd --- /dev/null +++ b/SOURCES/lksctp-tools-1.0.18-build-0b0dce7a36fb-actually-belongs-to-v4.19.patch @@ -0,0 +1,31 @@ +From e5952a0cdfa8b1b56a5823574835f1f771f14ae0 Mon Sep 17 00:00:00 2001 +From: Marcelo Ricardo Leitner +Date: Fri, 24 Aug 2018 09:53:00 -0300 +Subject: [PATCH 3/3] build: 0b0dce7a36fb actually belongs to v4.19 + +Typo or not, this commit actually belongs to v4.19 and made me wonder why +on v4.18 it didn't find this feature. + +Fixes: 817f0bfa248f ("build: add two defines for Peer Address Parameters extensions on sctp_paddrparams") +Signed-off-by: Marcelo Ricardo Leitner +Reviewed-by: Xin Long +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index f55775a..5de5c76 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -101,7 +101,7 @@ LKSCTP_CHECK_TYPE([struct sctp_prinfo], [HAVE_SCTP_SENDV]) + # added on v4.16, 30f6ebf65bc4 + LKSCTP_CHECK_DECL([SCTP_AUTH_NO_AUTH], [HAVE_SCTP_AUTH_NO_AUTH]) + +-# New members to sctp_paddrparams, added on v4.18, 0b0dce7a36fb ++# New members to sctp_paddrparams, added on v4.19, 0b0dce7a36fb + LKSCTP_CHECK_MEMBER([struct sctp_paddrparams.spp_ipv6_flowlabel], + [HAVE_SCTP_SPP_IPV6_FLOWLABEL]) + LKSCTP_CHECK_MEMBER([struct sctp_paddrparams.spp_dscp], +-- +1.8.3.1 + diff --git a/SOURCES/lksctp-tools-1.0.18-build-fix-netinet-sctp.h-not-to-be-installed.patch b/SOURCES/lksctp-tools-1.0.18-build-fix-netinet-sctp.h-not-to-be-installed.patch new file mode 100644 index 0000000..48c61db --- /dev/null +++ b/SOURCES/lksctp-tools-1.0.18-build-fix-netinet-sctp.h-not-to-be-installed.patch @@ -0,0 +1,35 @@ +From 378560050a8f93786c590cc99a55461666205b61 Mon Sep 17 00:00:00 2001 +From: Xin Long +Date: Fri, 24 Aug 2018 01:13:32 +0800 +Subject: [PATCH] build: fix netinet/sctp.h not to be installed + +After libcnetinet_HEADERS was set to sctp.h.in, netinet/sctp.h can +no longer be installed into ${includedir}. + +Since "AC_CONFIG_HEADERS([src/include/netinet/sctp.h])" is already +added into configure.ac, there's no need to generate sctp.h by +automake. + +So we simply set libcnetinet_HEADERS back to sctp.h. + +Fixes: 9607dd85e70a ("netinet/sctp.h: dynamically build based on system setup") +Signed-off-by: Xin Long +Signed-off-by: Marcelo Ricardo Leitner +--- + src/include/netinet/Makefile.am | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/src/include/netinet/Makefile.am b/src/include/netinet/Makefile.am +index ca0aac2..965db8c 100644 +--- a/src/include/netinet/Makefile.am ++++ b/src/include/netinet/Makefile.am +@@ -11,5 +11,4 @@ libcnetinetdir = $(includedir)/netinet + # API. + include_HEADERS = + +-libcnetinet_HEADERS = sctp.h.in +-BUILT_SOURCES = sctp.h ++libcnetinet_HEADERS = sctp.h +-- +1.8.3.1 + diff --git a/SOURCES/lksctp-tools-1.0.18-build-fix-probing-for-HAVE_SCTP_SENDV.patch b/SOURCES/lksctp-tools-1.0.18-build-fix-probing-for-HAVE_SCTP_SENDV.patch new file mode 100644 index 0000000..c1f7180 --- /dev/null +++ b/SOURCES/lksctp-tools-1.0.18-build-fix-probing-for-HAVE_SCTP_SENDV.patch @@ -0,0 +1,35 @@ +From 596efd6631b83069d41782fb0ee2d6cf76a50dfa Mon Sep 17 00:00:00 2001 +From: Marcelo Ricardo Leitner +Date: Fri, 24 Aug 2018 09:52:59 -0300 +Subject: [PATCH 2/3] build: fix probing for HAVE_SCTP_SENDV + +Somehow it was using a type that is non-existent. The right one is +sctp_prinfo, introduced on ed63afb8a318 ("sctp: add support for PR-SCTP +Information for sendmsg"), present on v4.17. + +Fixes: 1b798f1ca3b5 ("build: add define HAVE_SCTP_AUTH_NO_AUTH") +Signed-off-by: Marcelo Ricardo Leitner +Reviewed-by: Xin Long +--- + configure.ac | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/configure.ac b/configure.ac +index dad658c..f55775a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -94,9 +94,8 @@ LKSCTP_CHECK_MEMBER([struct sctp_pdapi_event.pdapi_stream], + LKSCTP_CHECK_MEMBER([struct sctp_pdapi_event.pdapi_seq], + [HAVE_SCTP_PDAPI_EVENT_PDAPI_SEQ]) + +-# PR-SCTP field used to probe for sendv/recvv support, added on v4.17 +-LKSCTP_CHECK_MEMBER([struct sendv_prinfo.sctp_prinfo], +- [HAVE_SCTP_SENDV]) ++# PR-SCTP struct used to probe for sendv/recvv support, added on v4.17 ++LKSCTP_CHECK_TYPE([struct sctp_prinfo], [HAVE_SCTP_SENDV]) + + # This event indicates that the peer does not support SCTP authentication, + # added on v4.16, 30f6ebf65bc4 +-- +1.8.3.1 + diff --git a/SOURCES/lksctp-tools-1.0.18-build-remove-v4.12-secondary-defines-in-favor-of-HAV.patch b/SOURCES/lksctp-tools-1.0.18-build-remove-v4.12-secondary-defines-in-favor-of-HAV.patch new file mode 100644 index 0000000..3246cb8 --- /dev/null +++ b/SOURCES/lksctp-tools-1.0.18-build-remove-v4.12-secondary-defines-in-favor-of-HAV.patch @@ -0,0 +1,52 @@ +From db6d15bf12a0123e4320e5fd7cb688331dea1bdc Mon Sep 17 00:00:00 2001 +From: Marcelo Ricardo Leitner +Date: Fri, 24 Aug 2018 09:52:58 -0300 +Subject: [PATCH 1/3] build: remove v4.12 secondary defines in favor of + HAVE_SCTP_STREAM_RECONFIG + +These were backups, commented out since beginning. +HAVE_SCTP_STREAM_RECONFIG is enough to identify that these are there, so +lets use only one. + +Signed-off-by: Marcelo Ricardo Leitner +Reviewed-by: Xin Long +--- + configure.ac | 8 -------- + src/include/netinet/sctp.h.in | 2 -- + 2 files changed, 10 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 2ae36ec..dad658c 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -82,14 +82,6 @@ AC_CHECK_FUNCS([bzero gethostbyname gettimeofday memmove memset select socket \ + LKSCTP_CHECK_MEMBER([struct sctp_event_subscribe.sctp_stream_reset_event], + [HAVE_SCTP_STREAM_RESET_EVENT]) + +-# Support for assoc reset event, added on v4.12, c95129d127c6 +-#LKSCTP_CHECK_MEMBER([struct sctp_event_subscribe.sctp_assoc_reset_event], \ +-# [HAVE_SCTP_ASSOC_RESET_EVENT]) +- +-# Support for stream change event, added on v4.12, b444153fb5a6 +-#LKSCTP_CHECK_MEMBER([struct sctp_event_subscribe.sctp_stream_change_event], \ +-# [HAVE_SCTP_STREAM_CHANGE_EVENT]) +- + # RFC 6525 (Stream Reconf), finished on v4.12, c0d8bab6ae51 + LKSCTP_CHECK_DECL([SCTP_RECONFIG_SUPPORTED], [HAVE_SCTP_STREAM_RECONFIG]) + +diff --git a/src/include/netinet/sctp.h.in b/src/include/netinet/sctp.h.in +index c049077..2009f1c 100644 +--- a/src/include/netinet/sctp.h.in ++++ b/src/include/netinet/sctp.h.in +@@ -61,8 +61,6 @@ extern "C" { + #define HAVE_SCTP_CANSET_PRIMARY + + #undef HAVE_SCTP_STREAM_RESET_EVENT +-#undef HAVE_SCTP_ASSOC_RESET_EVENT +-#undef HAVE_SCTP_STREAM_CHANGE_EVENT + #undef HAVE_SCTP_STREAM_RECONFIG + #undef HAVE_SCTP_PEELOFF_FLAGS + #undef HAVE_SCTP_PDAPI_EVENT_PDAPI_STREAM +-- +1.8.3.1 + diff --git a/SOURCES/lksctp-tools-1.0.18-configure.ac-add-CURRENT-REVISION-and-AGE-for-libsct.patch b/SOURCES/lksctp-tools-1.0.18-configure.ac-add-CURRENT-REVISION-and-AGE-for-libsct.patch new file mode 100644 index 0000000..2b2c645 --- /dev/null +++ b/SOURCES/lksctp-tools-1.0.18-configure.ac-add-CURRENT-REVISION-and-AGE-for-libsct.patch @@ -0,0 +1,71 @@ +From 7de2bd7e769f10521e3d0c2cb42c6f6b9b505dd0 Mon Sep 17 00:00:00 2001 +From: Xin Long +Date: Thu, 16 Aug 2018 14:12:30 +0800 +Subject: [PATCH] configure.ac: add CURRENT REVISION and AGE for libsctp and + libwithsctp + +Add CURRENT REVISION and AGE for libsctp and libwithsctp in +configure.ac to update these 2 library version information. + +Compatible with before, they will start from 1:18:0. But each +will get updated according to their definitions in the future. + +Signed-off-by: Xin Long +Acked-by: Neil Horman +Signed-off-by: Marcelo Ricardo Leitner +--- + configure.ac | 7 +++++++ + src/lib/Makefile.am | 7 +++++-- + src/withsctp/Makefile.am | 3 ++- + 3 files changed, 14 insertions(+), 3 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 275ef4e..2ae36ec 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -14,6 +14,13 @@ dnl reduce clutter in the root; if we put it below AM_INIT_AUTOMAKE, + dnl configure will fail ...) + + AC_INIT([lksctp-tools], [1.0.18], [], [], [http://www.lksctp.org/]) ++AC_SUBST(LIBSCTP_CURRENT, 1) ++AC_SUBST(LIBSCTP_REVISION, 18) ++AC_SUBST(LIBSCTP_AGE, 0) ++AC_SUBST(LIBWITHSCTP_CURRENT, 1) ++AC_SUBST(LIBWITHSCTP_REVISION, 18) ++AC_SUBST(LIBWITHSCTP_AGE, 0) ++ + AC_CONFIG_AUX_DIR(bin) + AC_CONFIG_SRCDIR([src/apps/sctp_darn.c]) + AC_CONFIG_HEADERS([config.h]) +diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am +index 6100c56..1d62175 100644 +--- a/src/lib/Makefile.am ++++ b/src/lib/Makefile.am +@@ -8,5 +8,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/include + + lib_LTLIBRARIES = libsctp.la + +-libsctp_la_SOURCES = bindx.c connectx.c peeloff.c opt_info.c addrs.c sendmsg.c recvmsg.c Versions.map +-libsctp_la_LDFLAGS = -version-info 1:17:0 -Wl,--version-script=$(srcdir)/Versions.map ++libsctp_la_SOURCES = bindx.c connectx.c peeloff.c opt_info.c \ ++ addrs.c sendmsg.c recvmsg.c Versions.map ++libsctp_la_LDFLAGS = -version-info \ ++ @LIBSCTP_CURRENT@:@LIBSCTP_REVISION@:@LIBSCTP_AGE@ \ ++ -Wl,--version-script=$(srcdir)/Versions.map +diff --git a/src/withsctp/Makefile.am b/src/withsctp/Makefile.am +index 70b1cca..1f6ca37 100644 +--- a/src/withsctp/Makefile.am ++++ b/src/withsctp/Makefile.am +@@ -14,7 +14,8 @@ AM_CPPFLAGS=-I$(top_srcdir)/src/include + pkglib_LTLIBRARIES = libwithsctp.la + libwithsctp_la_SOURCES = sctp_load_libs.c sctp_socket.c sctp_bind.c \ + sctp_sockopt.c sctp_socket.h +-libwithsctp_la_LDFLAGS = -version-info 1:17:0 -ldl ++libwithsctp_la_LDFLAGS = -version-info \ ++ @LIBWITHSCTP_CURRENT@:@LIBWITHSCTP_REVISION@:@LIBWITHSCTP_AGE@ -ldl + + pkgdoc_DATA = sctp_load_libs.c sctp_socket.c sctp_bind.c \ + sctp_sockopt.c sctp_socket.h checksctp.c +-- +1.8.3.1 + diff --git a/SOURCES/lksctp-tools-1.0.18-withsctp-use-PACKAGE_VERSION-in-withsctp.h.patch b/SOURCES/lksctp-tools-1.0.18-withsctp-use-PACKAGE_VERSION-in-withsctp.h.patch new file mode 100644 index 0000000..002ab43 --- /dev/null +++ b/SOURCES/lksctp-tools-1.0.18-withsctp-use-PACKAGE_VERSION-in-withsctp.h.patch @@ -0,0 +1,43 @@ +From 7c0ef4d441b3833e721df58f56e2cb8c81b34df4 Mon Sep 17 00:00:00 2001 +From: Xin Long +Date: Thu, 16 Aug 2018 14:12:01 +0800 +Subject: [PATCH] withsctp: use @PACKAGE_VERSION@ in withsctp.h + +use @PACKAGE_VERSION@ to replace the hardcode version. + +Signed-off-by: Xin Long +Acked-by: Neil Horman +Signed-off-by: Marcelo Ricardo Leitner +--- + Makefile.rules | 3 ++- + src/withsctp/withsctp.in | 3 ++- + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/Makefile.rules b/Makefile.rules +index 83f5f0c..d3693fa 100644 +--- a/Makefile.rules ++++ b/Makefile.rules +@@ -15,4 +15,5 @@ + edit = @sed \ + -e "s|\@bindir\@|$(bindir)|" \ + -e "s|\@libdir\@|$(libdir)|" \ +- -e "s|\@PACKAGE\@|$(PACKAGE)|" ++ -e "s|\@PACKAGE\@|$(PACKAGE)|" \ ++ -e "s|\@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|" +diff --git a/src/withsctp/withsctp.in b/src/withsctp/withsctp.in +index 7f182ba..fda5ebc 100644 +--- a/src/withsctp/withsctp.in ++++ b/src/withsctp/withsctp.in +@@ -2,7 +2,8 @@ + # -*- sh -*- + LIBDIR=`rpm --eval "%{_libdir}"`/@PACKAGE@ + BINDIR=@bindir@ +-export LD_PRELOAD=${LIBDIR}/libwithsctp.so.1.0.17 ++LIBVER=@PACKAGE_VERSION@ ++export LD_PRELOAD=${LIBDIR}/libwithsctp.so.${LIBVER} + if ! ${BINDIR}/checksctp 2> /dev/null + then + ${BINDIR}/checksctp; +-- +1.8.3.1 + diff --git a/SOURCES/lksctp-tools-symver.patch b/SOURCES/lksctp-tools-symver.patch new file mode 100644 index 0000000..25ead68 --- /dev/null +++ b/SOURCES/lksctp-tools-symver.patch @@ -0,0 +1,85 @@ +diff --git a/configure.ac b/configure.ac +index 5de5c76..d3e31c3 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -130,4 +130,12 @@ AC_ARG_ENABLE(tests, + [enable_tests=yes]) + AM_CONDITIONAL(BUILD_TESTS, [test $enable_tests != no]) + ++# GCC tries to be "helpful" and only issue a warning for unrecognized ++# attributes. So we compile the test with Werror, so that if the ++# attribute is not recognized the compilation fails ++AC_LANG(C) ++AC_LANG_WERROR ++AC_COMPILE_IFELSE([AC_LANG_SOURCE([[__attribute__ ((symver ("foo@foo_1"))) void frob (void) { }]])], ++ [AC_DEFINE([HAVE_ATTRIBUTE_SYMVER], [1], [Checking for symver attribute])], []) ++ + AC_OUTPUT +diff --git a/src/lib/connectx.c b/src/lib/connectx.c +index 5f4552b..2a21e3a 100644 +--- a/src/lib/connectx.c ++++ b/src/lib/connectx.c +@@ -26,6 +26,18 @@ + #include + #include + #include ++#include "config.h" ++ ++#define __SYMPFX(pfx, sym) #pfx sym ++#define _SYMPFX(pfx, sym) __SYMPFX(pfx, sym) ++#define SYMPFX(sym) _SYMPFX(__USER_LABEL_PREFIX__, #sym) ++ ++#if HAVE_ATTRIBUTE_SYMVER ++#define SYMVER(name, name2) __attribute__ ((symver (SYMPFX(name2)))) ++#else ++#define SYMVER(name, name2) __asm__(".symver " SYMPFX(name) "," SYMPFX(name2)); ++#endif ++ + + /* Support the sctp_connectx() interface. + * +@@ -64,6 +76,7 @@ static int __connectx_addrsize(const struct sockaddr *addrs, + } + + ++SYMVER(__sctp_connectx, sctp_connectx@) + int __sctp_connectx(int fd, struct sockaddr *addrs, int addrcnt) + { + int addrs_size = __connectx_addrsize(addrs, addrcnt); +@@ -75,6 +88,7 @@ int __sctp_connectx(int fd, struct sockaddr *addrs, int addrcnt) + addrs_size); + } + ++SYMVER(sctp_connectx_orig, sctp_connectx@VERS_1) + extern int sctp_connectx_orig (int) + __attribute ((alias ("__sctp_connectx"))); + +@@ -114,6 +128,7 @@ static int __connectx(int fd, struct sockaddr *addrs, socklen_t addrs_size, + addrs, addrs_size); + } + ++SYMVER(sctp_connectx2, sctp_connectx@VERS_2) + int sctp_connectx2(int fd, struct sockaddr *addrs, int addrcnt, + sctp_assoc_t *id) + { +@@ -125,6 +140,7 @@ int sctp_connectx2(int fd, struct sockaddr *addrs, int addrcnt, + return __connectx(fd, addrs, addrs_size, id); + } + ++SYMVER(sctp_connectx3, sctp_connectx@@VERS_3) + int sctp_connectx3(int fd, struct sockaddr *addrs, int addrcnt, + sctp_assoc_t *id) + { +@@ -179,12 +195,3 @@ int sctp_connectx3(int fd, struct sockaddr *addrs, int addrcnt, + return __connectx(fd, addrs, addrs_size, id); + } + +-#define __SYMPFX(pfx, sym) #pfx sym +-#define _SYMPFX(pfx, sym) __SYMPFX(pfx, sym) +-#define SYMPFX(sym) _SYMPFX(__USER_LABEL_PREFIX__, #sym) +-#define SYMVER(name, name2) __asm__(".symver " SYMPFX(name) "," SYMPFX(name2)) +- +-SYMVER(__sctp_connectx, sctp_connectx@); +-SYMVER(sctp_connectx_orig, sctp_connectx@VERS_1); +-SYMVER(sctp_connectx2, sctp_connectx@VERS_2); +-SYMVER(sctp_connectx3, sctp_connectx@@VERS_3); diff --git a/SPECS/lksctp-tools.spec b/SPECS/lksctp-tools.spec new file mode 100644 index 0000000..b3bd1b8 --- /dev/null +++ b/SPECS/lksctp-tools.spec @@ -0,0 +1,287 @@ +Name: lksctp-tools +Summary: User-space access to Linux Kernel SCTP +Version: 1.0.18 +Release: 11%{?dist} +# src/apps/bindx_test.C is GPLv2, I've asked upstream for clarification +License: GPLv2 and GPLv2+ and LGPLv2 and MIT +Group: System Environment/Libraries +URL: http://lksctp.sourceforge.net + +Source0: https://github.com/sctp/lksctp-tools/archive/%{name}-%{version}.tar.gz +Patch0: lksctp-tools-1.0.16-libdir.patch +Patch1: lksctp-tools-1.0.18-withsctp-use-PACKAGE_VERSION-in-withsctp.h.patch +Patch2: lksctp-tools-1.0.18-configure.ac-add-CURRENT-REVISION-and-AGE-for-libsct.patch +Patch3: lksctp-tools-1.0.18-build-fix-netinet-sctp.h-not-to-be-installed.patch +Patch4: lksctp-tools-1.0.18-build-remove-v4.12-secondary-defines-in-favor-of-HAV.patch +Patch5: lksctp-tools-1.0.18-build-fix-probing-for-HAVE_SCTP_SENDV.patch +Patch6: lksctp-tools-1.0.18-build-0b0dce7a36fb-actually-belongs-to-v4.19.patch +Patch7: lksctp-tools-symver.patch +BuildRequires: libtool, automake, autoconf, make + +%description +This is the lksctp-tools package for Linux Kernel SCTP (Stream Control +Transmission Protocol) Reference Implementation. + +This package is intended to supplement the Linux Kernel SCTP Reference +Implementation now available in the Linux kernel source tree in +versions 2.5.36 and following. For more information on LKSCTP see the +package documentation README file, section titled "LKSCTP - Linux +Kernel SCTP." + +This package contains the base run-time library and command-line tools. + +%package devel +Summary: Development files for lksctp-tools +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Development files for lksctp-tools which include man pages, header files, +static libraries, symlinks to dynamic libraries and some tutorial source code. + +%package doc +Summary: Documents pertaining to SCTP +Group: System Environment/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description doc +Documents pertaining to LKSCTP & SCTP in general (IETF RFC's & Internet +Drafts). + +%prep +%setup -q -n %{name}-%{name}-%{version} +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 + +%build +[ ! -x ./configure ] && sh bootstrap +%configure --disable-static +# remove rpath from libtool +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +%make_build + +%install +rm -f doc/rfc2960.txt doc/states.txt +%make_install + +find $RPM_BUILD_ROOT -type f -name "*.la" -delete + +%files +%doc AUTHORS ChangeLog COPYING* README +%{_bindir}/* +%{_libdir}/libsctp.so.1* +%dir %{_libdir}/lksctp-tools/ +%{_libdir}/lksctp-tools/libwithsctp.so.1* +%{_mandir}/man7/* + +%files devel +%{_includedir}/* +%{_libdir}/libsctp.so +%{_libdir}/pkgconfig/libsctp.pc +%{_libdir}/lksctp-tools/libwithsctp.so +%{_datadir}/lksctp-tools/ +%{_mandir}/man3/* + +%files doc +%doc doc/*.txt + +%changelog +* Mon Aug 09 2021 Mohan Boddu - 1.0.18-11 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 1.0.18-10 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Jan 26 2021 Fedora Release Engineering - 1.0.18-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Sep 09 2020 Jeff Law - 1.0.18-8 +- Use symver attribute for symbol versioning. Re-enable LTO + +* Wed Aug 19 2020 Igor Raits - 1.0.18-7 +- Drop useless ldconfig scriptlets + +* Tue Jul 28 2020 Fedora Release Engineering - 1.0.18-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 01 2020 Jeff Law - 1.0.18-5 +- Disable LTO + +* Wed Jan 29 2020 Fedora Release Engineering - 1.0.18-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Oct 18 2019 Vit Mojzis - 1.0.18-3 +- Added a patch to fix netinet/sctp.h not to be installed. +- Added some fixes for kernel feature detection. +- Updated to 1.0.18. [1568622] + +* Thu Jul 25 2019 Fedora Release Engineering - 1.0.16-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.0.16-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.0.16-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 1.0.16-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 1.0.16-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.0.16-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.0.16-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0.16-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.0.16-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 1.0.16-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.0.16-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue May 6 2014 Peter Robinson 1.0.16-1 +- Update to 1.0.16 +- Spec cleanups + +* Sat Aug 03 2013 Fedora Release Engineering - 1.0.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sun May 12 2013 Daniel Borkmann - 1.0.15-1 +- Update to 1.0.15 + +* Tue Apr 09 2013 Daniel Borkmann - 1.0.14-1 +- Update to 1.0.14 + +* Fri Jan 25 2013 Daniel Borkmann - 1.0.13-1 +- Update to 1.0.13 + +* Mon Jan 21 2013 Jan Safranek - 1.0.12-1 +- Update to 1.0.12 + +* Thu Jul 19 2012 Fedora Release Engineering - 1.0.11-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.0.11-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 1.0.11-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Oct 05 2010 Parag Nemade - 1.0.11-2 +- Merge-review cleanup (#226100) + +* Tue Dec 1 2009 Jan Safranek 1.0.11-1 +- Update to 1.0.11 +- Remove rpath from compiled binaries +- Remove static libraries + +* Sat Jul 25 2009 Fedora Release Engineering - 1.0.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Apr 14 2009 Zdenek Prikryl 1.0.10-1 +- added release tag to Requires of devel and doc packages (#492531) +- Update to 1.0.10 + +* Wed Feb 25 2009 Fedora Release Engineering - 1.0.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Aug 06 2008 Zdenek Prikryl 1.0.9-1 +- Update to 1.0.9 + +* Wed Jul 16 2008 Zdenek Prikryl 1.0.8-1 +- Update to 1.0.8 + +* Wed Feb 20 2008 Fedora Release Engineering - 1.0.7-3 +- Autorebuild for GCC 4.3 + +* Wed Aug 29 2007 Karsten Hopp 1.0.7-2 +- rebuild for buildid + +* Wed Aug 08 2007 Karsten Hopp 1.0.7-1 +- update to 1.0.7 +- update license tag + +* Wed Feb 21 2007 Karsten Hopp 1.0.6-3 +- add post/postun requirements +- review fixes + +* Tue Sep 19 2006 Karsten Hopp 1.0.6-2 +- fix fileconflict (#205225) + +* Tue Jul 25 2006 Karsten Hopp 1.0.6-1 +- update to 1.0.6 + +* Wed Jul 12 2006 Jesse Keating - 1.0.5-1.fc5.2.1 +- rebuild + +* Fri Feb 10 2006 Jesse Keating - 1.0.5-1.fc5.2 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 1.0.5-1.fc5.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Tue Jan 24 2006 Warren Togami 1.0.5-1 +- 1.0.5 + +* Fri Nov 11 2005 Matthias Saou 1.0.4-1 +- Update to 1.0.4. +- Update syntax patch. +- Execute bootstrap if no configure script is found. +- Don't own entire man? directories. +- Own data and lib lksctp-tools directories. +- Move devel libs in _libdir/lksctp-tools/ to devel package. +- Exclude .la files. +- Minor spec file cleanups. + +* Wed Mar 02 2005 Karsten Hopp 1.0.2-5 +- build with gcc-4 + +* Mon Feb 07 2005 Karsten Hopp 1.0.2-4 +- initialize variable before use +- fix subscript out of range bug (#147286) + +* Mon Jan 24 2005 Karsten Hopp 1.0.2-3 +- build for FC + +* Mon Jan 24 2005 Karsten Hopp 1.0.2-2.40E.1 +- initial RH version based on sourceforge rpm + +* Thu Dec 30 2004 Sridhar Samudrala 1.0.2-1 +- 1.0.2 Release + +* Tue May 11 2004 Sridhar Samudrala 1.0.1-1 +- 1.0.1 Release + +* Thu Feb 26 2004 Sridhar Samudrala 1.0.0-1 +- 1.0.0 Release + +* Fri Feb 6 2004 Francois-Xavier Kowalski 0.9.0-1 +- package only .txt doc files + +* Wed Feb 4 2004 Francois-Xavier Kowalski 0.7.5-1 +- badly placed & undelivered files +- simplified delivery list + +* Tue Jan 27 2004 Francois-Xavier Kowalski 0.7.5-1 +- Integrate comment from project team + +* Sat Jan 10 2004 Francois-Xavier Kowalski 2.6.0_test7_0.7.4-1 +- Creation