lksctp-tools-vl.spec 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: lksctp-tools
  3. Summary: User-space access to Linux Kernel SCTP
  4. Version: 1.0.18
  5. Release: 1%{?_dist_release}
  6. Group: system
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. Packager: tomop
  10. # src/apps/bindx_test.C is GPLv2, I've asked upstream for clarification
  11. License: GPLv2 and GPLv2+ and LGPLv2 and MIT
  12. URL: http://lksctp.sourceforge.net
  13. Source0: https://github.com/sctp/lksctp-tools/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
  14. Patch0: lksctp-tools-1.0.16-libdir.patch
  15. Patch1: lksctp-tools-1.0.18-withsctp-use-PACKAGE_VERSION-in-withsctp.h.patch
  16. Patch2: lksctp-tools-1.0.18-configure.ac-add-CURRENT-REVISION-and-AGE-for-libsct.patch
  17. Patch3: lksctp-tools-1.0.18-build-fix-netinet-sctp.h-not-to-be-installed.patch
  18. Patch4: lksctp-tools-1.0.18-build-remove-v4.12-secondary-defines-in-favor-of-HAV.patch
  19. Patch5: lksctp-tools-1.0.18-build-fix-probing-for-HAVE_SCTP_SENDV.patch
  20. Patch6: lksctp-tools-1.0.18-build-0b0dce7a36fb-actually-belongs-to-v4.19.patch
  21. BuildRequires: libtool, automake, autoconf
  22. %description
  23. This is the lksctp-tools package for Linux Kernel SCTP (Stream Control
  24. Transmission Protocol) Reference Implementation.
  25. This package is intended to supplement the Linux Kernel SCTP Reference
  26. Implementation now available in the Linux kernel source tree in
  27. versions 2.5.36 and following. For more information on LKSCTP see the
  28. package documentation README file, section titled "LKSCTP - Linux
  29. Kernel SCTP."
  30. This package contains the base run-time library and command-line tools.
  31. %package devel
  32. Summary: Development files for lksctp-tools
  33. Group: programming
  34. Requires: %{name}%{?_isa} = %{version}-%{release}
  35. Requires: pkgconfig
  36. %description devel
  37. Development files for lksctp-tools which include man pages, header files,
  38. static libraries, symlinks to dynamic libraries and some tutorial source code.
  39. %package doc
  40. Summary: Documents pertaining to SCTP
  41. Group: documentation
  42. Requires: %{name}%{?_isa} = %{version}-%{release}
  43. %description doc
  44. Documents pertaining to LKSCTP & SCTP in general (IETF RFC's & Internet
  45. Drafts).
  46. %package -n compat32-%{name}
  47. Summary: User-space access to Linux Kernel SCTP
  48. Group: system
  49. Requires: %{name}-%{version}-%{release}
  50. %description -n compat32-%{name}
  51. This is the lksctp-tools package for Linux Kernel SCTP (Stream Control
  52. Transmission Protocol) Reference Implementation.
  53. This package is intended to supplement the Linux Kernel SCTP Reference
  54. Implementation now available in the Linux kernel source tree in
  55. versions 2.5.36 and following. For more information on LKSCTP see the
  56. package documentation README file, section titled "LKSCTP - Linux
  57. Kernel SCTP."
  58. %debug_package
  59. %prep
  60. %setup -q
  61. %patch0 -p1
  62. %patch1 -p1
  63. %patch2 -p1
  64. %patch3 -p1
  65. %patch4 -p1
  66. %patch5 -p1
  67. %patch6 -p1
  68. %build
  69. [ ! -x ./configure ] && sh bootstrap
  70. %configure --disable-static
  71. # remove rpath from libtool
  72. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  73. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  74. make %{?_smp_mflags}
  75. %install
  76. rm -f doc/rfc2960.txt doc/states.txt
  77. make install DESTDIR="$RPM_BUILD_ROOT" INSTALL="install -p"
  78. find $RPM_BUILD_ROOT -type f -name "*.la" -delete
  79. %post -p /sbin/ldconfig
  80. %postun -p /sbin/ldconfig
  81. %files
  82. %license COPYING*
  83. %doc AUTHORS ChangeLog README
  84. %{_bindir}/*
  85. %{_libdir}/libsctp.so.1*
  86. %dir %{_libdir}/lksctp-tools/
  87. %{_libdir}/lksctp-tools/libwithsctp.so.1*
  88. %{_mandir}/man7/*
  89. %files devel
  90. %{_includedir}/*
  91. %{_libdir}/libsctp.so
  92. %{_libdir}/lksctp-tools/libwithsctp.so
  93. %{_libdir}/pkgconfig/libsctp.pc
  94. %{_datadir}/lksctp-tools/
  95. %{_mandir}/man3/*
  96. %files doc
  97. %doc doc/*.txt
  98. %if %{build_compat32}
  99. %files -n compat32-%{name}
  100. %{_libdir}/libsctp.so.1*
  101. %dir %{_libdir}/lksctp-tools/
  102. %{_libdir}/lksctp-tools/libwithsctp.so.1*
  103. %endif
  104. %changelog
  105. * Wed Sep 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.0.18-1
  106. - new upstream release.
  107. - imported Patch1-6 from rawhide.
  108. * Wed Oct 31 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.0.17-1
  109. - new upstream release.
  110. * Tue Nov 17 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.0.16-5
  111. - initial build for Vine Linux.
  112. * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.16-4
  113. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  114. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.16-3
  115. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  116. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.16-2
  117. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  118. * Tue May 6 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.16-1
  119. - Update to 1.0.16
  120. - Spec cleanups
  121. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15-2
  122. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  123. * Sun May 12 2013 Daniel Borkmann <dborkman@redhat.com> - 1.0.15-1
  124. - Update to 1.0.15
  125. * Tue Apr 09 2013 Daniel Borkmann <dborkman@redhat.com> - 1.0.14-1
  126. - Update to 1.0.14
  127. * Fri Jan 25 2013 Daniel Borkmann <dborkman@redhat.com> - 1.0.13-1
  128. - Update to 1.0.13
  129. * Mon Jan 21 2013 Jan Safranek <jsafrane@redhat.com> - 1.0.12-1
  130. - Update to 1.0.12
  131. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.11-5
  132. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  133. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.11-4
  134. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  135. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.11-3
  136. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  137. * Tue Oct 05 2010 Parag Nemade <paragn AT fedoraproject.org> - 1.0.11-2
  138. - Merge-review cleanup (#226100)
  139. * Tue Dec 1 2009 Jan Safranek <jsafrane@redhat.com> 1.0.11-1
  140. - Update to 1.0.11
  141. - Remove rpath from compiled binaries
  142. - Remove static libraries
  143. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-2
  144. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  145. * Tue Apr 14 2009 Zdenek Prikryl <zprikryl@redhat.com> 1.0.10-1
  146. - added release tag to Requires of devel and doc packages (#492531)
  147. - Update to 1.0.10
  148. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-2
  149. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  150. * Wed Aug 06 2008 Zdenek Prikryl <zprikryl@redhat.com> 1.0.9-1
  151. - Update to 1.0.9
  152. * Wed Jul 16 2008 Zdenek Prikryl <zprikryl@redhat.com> 1.0.8-1
  153. - Update to 1.0.8
  154. * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.7-3
  155. - Autorebuild for GCC 4.3
  156. * Wed Aug 29 2007 Karsten Hopp <karsten@redhat.com> 1.0.7-2
  157. - rebuild for buildid
  158. * Wed Aug 08 2007 Karsten Hopp <karsten@redhat.com> 1.0.7-1
  159. - update to 1.0.7
  160. - update license tag
  161. * Wed Feb 21 2007 Karsten Hopp <karsten@redhat.com> 1.0.6-3
  162. - add post/postun requirements
  163. - review fixes
  164. * Tue Sep 19 2006 Karsten Hopp <karsten@redhat.de> 1.0.6-2
  165. - fix fileconflict (#205225)
  166. * Tue Jul 25 2006 Karsten Hopp <karsten@redhat.de> 1.0.6-1
  167. - update to 1.0.6
  168. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.5-1.fc5.2.1
  169. - rebuild
  170. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0.5-1.fc5.2
  171. - bump again for double-long bug on ppc(64)
  172. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.5-1.fc5.1
  173. - rebuilt for new gcc4.1 snapshot and glibc changes
  174. * Tue Jan 24 2006 Warren Togami <wtogami@redhat.com> 1.0.5-1
  175. - 1.0.5
  176. * Fri Nov 11 2005 Matthias Saou <http://freshrpms.net/> 1.0.4-1
  177. - Update to 1.0.4.
  178. - Update syntax patch.
  179. - Execute bootstrap if no configure script is found.
  180. - Don't own entire man? directories.
  181. - Own data and lib lksctp-tools directories.
  182. - Move devel libs in _libdir/lksctp-tools/ to devel package.
  183. - Exclude .la files.
  184. - Minor spec file cleanups.
  185. * Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 1.0.2-5
  186. - build with gcc-4
  187. * Mon Feb 07 2005 Karsten Hopp <karsten@redhat.de> 1.0.2-4
  188. - initialize variable before use
  189. - fix subscript out of range bug (#147286)
  190. * Mon Jan 24 2005 Karsten Hopp <karsten@redhat.de> 1.0.2-3
  191. - build for FC
  192. * Mon Jan 24 2005 Karsten Hopp <karsten@redhat.de> 1.0.2-2.40E.1
  193. - initial RH version based on sourceforge rpm
  194. * Thu Dec 30 2004 Sridhar Samudrala <sri@us.ibm.com> 1.0.2-1
  195. - 1.0.2 Release
  196. * Tue May 11 2004 Sridhar Samudrala <sri@us.ibm.com> 1.0.1-1
  197. - 1.0.1 Release
  198. * Thu Feb 26 2004 Sridhar Samudrala <sri@us.ibm.com> 1.0.0-1
  199. - 1.0.0 Release
  200. * Fri Feb 6 2004 Francois-Xavier Kowalski <francois-xavier.kowalski@hp.com> 0.9.0-1
  201. - package only .txt doc files
  202. * Wed Feb 4 2004 Francois-Xavier Kowalski <francois-xavier.kowalski@hp.com> 0.7.5-1
  203. - badly placed & undelivered files
  204. - simplified delivery list
  205. * Tue Jan 27 2004 Francois-Xavier Kowalski <francois-xavier.kowalski@hp.com> 0.7.5-1
  206. - Integrate comment from project team
  207. * Sat Jan 10 2004 Francois-Xavier Kowalski <francois-xavier.kowalski@hp.com> 2.6.0_test7_0.7.4-1
  208. - Creation