lksctp-tools/lksctp-tools.spec

99 lines
2.6 KiB
RPMSpec
Raw Permalink Normal View History

2019-11-30 09:52:55 +08:00
Name: lksctp-tools
2020-07-21 11:08:05 +08:00
Version: 1.0.18
Release: 1
2019-12-03 17:16:46 +08:00
Summary: Linux Kernel Stream Control Transmission Protocol Tools
2019-11-30 09:52:55 +08:00
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
2020-07-21 11:08:05 +08:00
Patch0: bugfix-withsctp-use-PACKAGE-VERSION-in-withsctp.patch
Patch1: bugfix-configure-add-CURRENT-REVISION-and-AGE-for-libsctp.patch
Patch2: bugfix-build-fix-netinet-sctp-not-to-be-installed.patch
Patch3: bugfix-build-remove-secondary-defines-in-favor-of-HAVE.patch
Patch4: bugfix-build-fix-probing-for-HAVE-SCTP-SENDV.patch
Patch5: bugfix-build-0b0dce7a36fb-actually-belongs-to-v4-19.patch
Patch6: bugfix-func-tests-fix-use-of-unitialized-var.patch
Patch7: bugfix-Fix-error-errno-typos.patch
Patch8: bugfix-withsctp-to-not-reuse-PACKAGE-VERSION-as-lib-version.patch
Patch9: bugfix-sctp-recvmsg-man-update.patch
Patch10: bugfix-automake-fix-include-dir-for-the-now-autogenerated-h.patch
2019-11-30 09:52:55 +08:00
BuildRequires: make gcc libtool autoconf automake
2019-11-30 09:52:55 +08:00
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%description
2019-12-03 17:16:46 +08:00
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.
2019-11-30 09:52:55 +08:00
2019-12-03 17:16:46 +08:00
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.
2019-11-30 09:52:55 +08:00
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%description devel
Development files for %{name} which include header files and dynamic
libraries.
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%package_help
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%prep
%autosetup -n %{name}-%{version} -p1
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%build
rm -rf configure && sh bootstrap
%configure --disable-static
%disable_rpath
%make_build
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%install
%make_install
%delete_la
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%pre
%preun
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%files
%defattr(-,root,root)
%license COPYING*
%{_bindir}/*
%{_libdir}/libsctp.so.*
%{_libdir}/lksctp-tools/libwithsctp.so.*
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%files devel
%{_includedir}/*
%{_libdir}/libsctp.so
%{_libdir}/lksctp-tools/libwithsctp.so
%{_datadir}/lksctp-tools/
2020-07-21 11:08:05 +08:00
%{_libdir}/pkgconfig/libsctp.pc
2019-11-30 09:52:55 +08:00
2019-12-03 17:16:46 +08:00
%files help
2019-12-03 15:12:03 +08:00
%doc AUTHORS ChangeLog README doc/*.txt
2019-11-30 09:52:55 +08:00
%{_mandir}/man3/*
%{_mandir}/man7/*
2019-12-03 17:16:46 +08:00
2020-07-21 11:08:05 +08:00
%changelog
* Thu Jul 21 2020 hanhui <hanhui@huawei.com> - 1.0.18-1
- update to 1.0.18
2019-12-03 15:12:03 +08:00
* Thu Nov 28 2019 Qianbiao.NG <Qianbiao.NG@turnbig.net> - 1.0.16-11
2019-11-30 09:52:55 +08:00
- Repackage for openEuler OS