libssh2-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A library implementing the SSH2 protocol
  3. Summary(ja): SSH2 プロトコルを実装するためのライブラリ
  4. Name: libssh2
  5. Version: 1.11.0
  6. Release: 1%{?_dist_release}
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: BSD
  11. URL: https://www.libssh2.org/
  12. Source0: https://www.libssh2.org/download/%{name}-%{version}.tar.gz
  13. # upstream patch for tests
  14. Patch1: 572c57c9d8d4e89cfce19dde40125d55481256d1.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  16. BuildRequires: openssl-devel
  17. BuildRequires: zlib-devel
  18. %description
  19. libssh2 is a library implementing the SSH2 protocol as defined by
  20. Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25),
  21. SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*,
  22. SECSH-DHGEX(04), and SECSH-NUMBERS(10).
  23. %package devel
  24. Summary: Development files for %{name}
  25. Summary(ja): %{name} の開発ファイル
  26. Group: programming
  27. Requires: %{name} = %{version}-%{release}
  28. %description devel
  29. The %{name}-devel package contains libraries and header files for
  30. developing applications that use %{name}.
  31. %package docs
  32. Summary: Documentation for %{name}
  33. Summary(ja): %{name} のドキュメント
  34. Group: documentation
  35. Requires: %{name} = %{version}-%{release}
  36. %description docs
  37. The %{name}-docs package contains man pages and examples for
  38. developing applications that use %{name}.
  39. ## to build compat32 for x86_64 architecture support
  40. %package -n compat32-%{name}
  41. Summary: A library implementing the SSH2 protocol
  42. Summary(ja): SSH2 プロトコルを実装するためのライブラリ
  43. Group: system,legacy
  44. %description -n compat32-%{name}
  45. libssh2 is a library implementing the SSH2 protocol as defined by
  46. Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25),
  47. SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*,
  48. SECSH-DHGEX(04), and SECSH-NUMBERS(10).
  49. %debug_package
  50. %prep
  51. %setup -q
  52. %autopatch -p1
  53. # Replace hard wired port number in the test suite to avoid collisions
  54. # between 32-bit and 64-bit builds running on a single build-host
  55. sed -i s/4711/47%{__isa_bits}/ tests/{test_ssh2.c,test_sshd.test}
  56. # make sure things are UTF-8...
  57. for i in ChangeLog NEWS ; do
  58. iconv --from=ISO-8859-1 --to=UTF-8 $i > new
  59. mv new $i
  60. done
  61. autoreconf -ivf
  62. %build
  63. %configure --disable-static --enable-shared
  64. make %{?_smp_mflags}
  65. %install
  66. rm -rf %{buildroot}
  67. make install DESTDIR=%{buildroot} INSTALL="install -p"
  68. find %{buildroot} -name '*.la' -exec rm -f {} +
  69. # clean things up a bit for packaging
  70. ( cd example && make clean )
  71. rm -rf example/simple/.deps
  72. find example/ -type f '(' -name '*.am' -o -name '*.in' ')' -exec rm -v {} +
  73. %if 0
  74. # docker is needed
  75. %check
  76. (cd tests && make check)
  77. %endif
  78. %clean
  79. rm -rf %{buildroot}
  80. %files
  81. %defattr(-,root,root,-)
  82. %license COPYING
  83. %doc NEWS README* RELEASE-NOTES
  84. %{_libdir}/*.so.*
  85. %files docs
  86. %defattr(-,root,root,-)
  87. %license COPYING
  88. %doc example/ docs/HACKING
  89. %{_mandir}/man?/*
  90. %files devel
  91. %defattr(-,root,root,-)
  92. %license COPYING
  93. %{_includedir}/*
  94. %{_libdir}/*.so
  95. %{_libdir}/pkgconfig/libssh2.pc
  96. %if %{build_compat32}
  97. %files -n compat32-%{name}
  98. %defattr(-,root,root,-)
  99. %{_libdir}/*.so.*
  100. %endif
  101. %changelog
  102. * Mon Jun 05 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.11.0-1
  103. - new upstream release.
  104. * Tue Oct 05 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.10.0-2
  105. - rebuilt with openssl-3.0.0.
  106. * Thu Sep 09 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.10.0-1
  107. - new upstream release.
  108. - dropped ldconfig scriptlets.
  109. * Thu Oct 24 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.0-1
  110. - new upstream release.
  111. * Thu Mar 28 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.2-1
  112. - new upstream release.
  113. * Sat Nov 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.0-1
  114. - new upstream release.
  115. - built with openssl-1.1.1.
  116. * Sat Mar 12 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.0-2
  117. - rebuilt with openssl 1.0.2g
  118. * Fri Feb 26 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.0-1
  119. - new upstream release with security fixes
  120. * Thu Nov 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.2-1
  121. - new upstream reelase
  122. - add compat32 package
  123. * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.7-1
  124. - new upstream release
  125. - fix %%files
  126. * Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-1
  127. - initial build for Vine Linux
  128. * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.0-4
  129. - rebuilt with new openssl
  130. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
  131. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  132. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
  133. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  134. * Mon Feb 16 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.0-1
  135. - update to 1.0
  136. * Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 0.18-8
  137. - rebuild with new openssl
  138. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.18-7
  139. - Autorebuild for GCC 4.3
  140. * Wed Dec 05 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-6
  141. - rebuild for new openssl...
  142. * Tue Nov 27 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-5
  143. - bump
  144. * Tue Nov 27 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-4
  145. - add INSTALL arg to make install vs env. var
  146. * Mon Nov 26 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-3
  147. - run tests; don't package test
  148. * Sun Nov 18 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-2
  149. - split docs into -docs (they seemed... large.)
  150. * Tue Nov 13 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-1
  151. - update to 0.18
  152. * Sun Oct 14 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.17-1
  153. - update to 0.17
  154. - many spec file changes
  155. * Wed May 23 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.15-0.2.20070506
  156. - Fix release tag
  157. - Move manpages to -devel package
  158. - Add Examples dir to -devel package
  159. * Sun May 06 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.15-0.20070506.1
  160. - Initial build