lksctp-tools/lksctp-tools.spec

94 lines
2.6 KiB
RPMSpec
Raw Normal View History

2020-06-30 14:46:54 +08:00
Summary: User-space access to Linux Kernel SCTP
Name: lksctp-tools
Version: 1.0.17
Release: 1%{?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: http://downloads.sourceforge.net/lksctp/%{name}-%{version}.tar.gz
Patch0: lksctp-tools-1.0.16-libdir.patch
BuildRequires: libtool, automake, autoconf
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%description
2020-06-30 14:46:54 +08:00
This is the lksctp-tools package for Linux Kernel SCTP (Stream Control
Transmission Protocol) Reference Implementation.
2019-11-30 09:52:55 +08:00
2020-06-30 14:46:54 +08:00
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."
2019-11-30 09:52:55 +08:00
2020-06-30 14:46:54 +08:00
This package contains the base run-time library and command-line tools.
2019-11-30 09:52:55 +08:00
2020-06-30 14:46:54 +08:00
%package devel
Summary: Development files for lksctp-tools
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%description devel
2020-06-30 14:46:54 +08:00
Development files for lksctp-tools which include man pages, header files,
static libraries, symlinks to dynamic libraries and some tutorial source code.
2019-11-30 09:52:55 +08:00
2020-06-30 14:46:54 +08:00
%package doc
Summary: Documents pertaining to SCTP
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
2019-12-03 17:16:46 +08:00
2020-06-30 14:46:54 +08:00
%description doc
Documents pertaining to LKSCTP & SCTP in general (IETF RFC's & Internet
Drafts).
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%prep
2020-06-30 14:46:54 +08:00
%setup -q
%patch0 -p1
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%build
2020-06-30 14:46:54 +08:00
[ ! -x ./configure ] && sh bootstrap
2019-11-30 09:52:55 +08:00
%configure --disable-static
2020-06-30 14:46:54 +08:00
# 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
2019-11-30 09:52:55 +08:00
2020-06-30 14:46:54 +08:00
make %{?_smp_mflags}
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%install
2020-06-30 14:46:54 +08:00
rm -f doc/rfc2960.txt doc/states.txt
make install DESTDIR="$RPM_BUILD_ROOT" INSTALL="install -p"
2019-11-30 09:52:55 +08:00
2020-06-30 14:46:54 +08:00
find $RPM_BUILD_ROOT/%{_libdir}/ -name "*.la" | xargs rm -f
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%post -p /sbin/ldconfig
2020-06-30 14:46:54 +08:00
%postun -p /sbin/ldconfig
2019-12-03 17:16:46 +08:00
2020-06-30 14:46:54 +08:00
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING* README
2019-11-30 09:52:55 +08:00
%{_bindir}/*
%{_libdir}/libsctp.so.*
2020-06-30 14:46:54 +08:00
%dir %{_libdir}/lksctp-tools/
2019-11-30 09:52:55 +08:00
%{_libdir}/lksctp-tools/libwithsctp.so.*
2020-06-30 14:46:54 +08:00
%{_mandir}/man7/*
2019-12-03 17:16:46 +08:00
2019-11-30 09:52:55 +08:00
%files devel
2020-06-30 14:46:54 +08:00
%defattr(-,root,root,-)
2019-11-30 09:52:55 +08:00
%{_includedir}/*
%{_libdir}/libsctp.so
%{_libdir}/lksctp-tools/libwithsctp.so
2020-06-30 14:46:54 +08:00
%{_libdir}/pkgconfig/libsctp.pc
2019-11-30 09:52:55 +08:00
%{_datadir}/lksctp-tools/
%{_mandir}/man3/*
2020-06-30 14:46:54 +08:00
%files doc
%defattr(-,root,root,-)
%doc doc/*.txt
%changelog
* Tue Jun 30 2020 hanhui <hanhui15@huawei.com> - 1.0.17-1
- openEuler Mainline Update to 1.0.17
2019-12-03 17:16:46 +08:00
2019-12-03 15:12:03 +08:00
* Thu Nov 28 2019 Qianbiao.NG <Qianbiao.NG@turnbig.net> - 1.0.16-11
2020-06-30 14:46:54 +08:00
- repackage for openEuler OS