mbedtls-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. %define pkg_name mbedtls
  2. %define pkg_version 2.8.0
  3. %define pkg_release 1%{?_dist_release}
  4. Summary: Light-weight cryptographic and SSL/TLS library
  5. Name: %{pkg_name}
  6. Version: %{pkg_version}
  7. Release: %{pkg_release}
  8. Group: System Environment/Libraries
  9. License: ASL 2.0
  10. URL: https://tls.mbed.org/
  11. Source0: https://tls.mbed.org/download/%{name}-%{version}-apache.tgz
  12. # mbed TLS way of enabling features
  13. Patch0: mbedtls-2.4-config-enable-pkcs11.patch
  14. Patch1: mbedtls-2.7-config-enable-threading-pthread.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: cmake
  17. # BuildRequires: perl-interpreter
  18. BuildRequires: doxygen
  19. # BuildRequires: graphviz
  20. BuildRequires: pkcs11-helper-devel
  21. Requires: pkcs11-helper
  22. %description
  23. Mbed TLS is a light-weight open source cryptographic and SSL/TLS
  24. library written in C. Mbed TLS makes it easy for developers to include
  25. cryptographic and SSL/TLS capabilities in their (embedded)
  26. applications with as little hassle as possible.
  27. FOSS License Exception: https://tls.mbed.org/foss-license-exception
  28. %package utils
  29. Summary: Utilities for %{name}
  30. Group: Applications/System
  31. Requires: %{name}%{?_isa} = %{version}-%{release}
  32. Obsoletes: polarssl-utils < 1.3.10
  33. Provides: polarssl-utils = %{version}-%{release}
  34. %description utils
  35. Cryptographic utilities based on %{name}.
  36. %package devel
  37. Summary: Development files for %{name}
  38. Group: Development/Libraries
  39. Requires: %{name}%{?_isa} = %{version}-%{release}
  40. Obsoletes: polarssl-devel < 1.3.10
  41. Provides: polarssl-devel = %{version}-%{release}
  42. %description devel
  43. The %{name}-devel package contains libraries and header files for
  44. developing applications that use %{name}.
  45. %package static
  46. Summary: Static files for %{name}
  47. Group: Development/Libraries
  48. Requires: %{name}-devel%{?_isa} = %{version}-%{release}
  49. %description static
  50. The %{name}-static package contains static files for
  51. developing applications that use %{name}.
  52. %prep
  53. %{__rm} -rf ${RPM_BUILD_ROOT}
  54. %setup -q
  55. %patch0
  56. %patch1
  57. %build
  58. %{cmake} -D CMAKE_BUILD_TYPE:String="Release" \
  59. -D USE_SHARED_MBEDTLS_LIBRARY:BOOL=1 \
  60. -D USE_PKCS11_HELPER_LIBRARY:BOOL=1 \
  61. .
  62. %{__make} %{?_smp_mflags} all apidoc
  63. %install
  64. %{make_install}
  65. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_libexecdir}
  66. %{__mv} ${RPM_BUILD_ROOT}%{_bindir} ${RPM_BUILD_ROOT}%{_libexecdir}/mbedtls
  67. %check
  68. LD_LIBRARY_PATH=$PWD/library ctest --output-on-failure -V
  69. %clean
  70. %{__rm} -rf ${RPM_BUILD_ROOT}
  71. %post -p %{_syssbindir}/ldconfig
  72. %postun -p %{_syssbindir}/ldconfig
  73. %files
  74. %doc ChangeLog LICENSE
  75. %{_libdir}/*.so.*
  76. %doc apidoc/*
  77. %files utils
  78. %{_libexecdir}/%{name}/
  79. %files devel
  80. %{_includedir}/mbedtls/
  81. %{_libdir}/*.so
  82. %files static
  83. %{_libdir}/*.a
  84. %changelog
  85. * Wed Jun 13 2018 Toshiaki Ara <ara_t@384.jp> 2.8.0-1
  86. - initial build for Vine Linux
  87. * Fri Apr 06 2018 Morten Stevens <mstevens@fedoraproject.org> - 2.8.0-1
  88. - Update to 2.8.0
  89. * Tue Feb 06 2018 Morten Stevens <mstevens@fedoraproject.org> - 2.7.0-1
  90. - Update to 2.7.0
  91. - Enable pthread support (#1533435)
  92. - Security Advisory 2018-01 (CVE-2018-0488)
  93. * Tue Aug 29 2017 Morten Stevens <mstevens@fedoraproject.org> - 2.6.0-1
  94. - Update to 2.6.0
  95. * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-5
  96. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
  97. * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-4
  98. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  99. * Mon Jun 26 2017 Morten Stevens <mstevens@fedoraproject.org> - 2.5.1-3
  100. - Reenable ctest
  101. * Fri Jun 23 2017 Morten Stevens <mstevens@fedoraproject.org> - 2.5.1-2
  102. - Disable ctest due a bug on s390x
  103. * Wed Jun 21 2017 Morten Stevens <mstevens@fedoraproject.org> - 2.5.1-1
  104. - Update to 2.5.1
  105. * Wed Mar 29 2017 David Sommerseth <davids@openvpn.net> - 2.4.2-2
  106. - Enable PKCS#11 support
  107. * Sat Mar 11 2017 Morten Stevens <mstevens@fedoraproject.org> - 2.4.2-1
  108. - Update to 2.4.2
  109. * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
  110. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  111. * Mon Oct 31 2016 Morten Stevens <mstevens@fedoraproject.org> - 2.4.0-1
  112. - Update to 2.4.0
  113. * Thu Jun 30 2016 Morten Stevens <mstevens@fedoraproject.org> - 2.3.0-1
  114. - Update to 2.3.0
  115. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
  116. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  117. * Sat Jan 09 2016 Morten Stevens <mstevens@fedoraproject.org> - 2.2.1-1
  118. - Update to 2.2.1
  119. * Sun Dec 27 2015 Morten Stevens <mstevens@fedoraproject.org> - 2.2.0-1
  120. - Update to 2.2.0
  121. * Mon Oct 12 2015 Morten Stevens <mstevens@fedoraproject.org> - 2.1.2-1
  122. - Update to 2.1.2
  123. - CVE-2015-5291
  124. * Fri Sep 11 2015 Morten Stevens <mstevens@fedoraproject.org> - 2.1.0-1
  125. - Update to 2.1.0
  126. * Wed Jul 22 2015 Morten Stevens <mstevens@fedoraproject.org> - 2.0.0-1
  127. - Update to 2.0.0
  128. * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.11-2
  129. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  130. * Fri Jun 05 2015 Morten Stevens <mstevens@fedoraproject.org> - 1.3.11-1
  131. - Update to 1.3.11
  132. * Mon Jun 01 2015 Robert Scheck <robert@fedoraproject.org> - 1.3.10-2
  133. - Spec file changes to cover Red Hat Enterprise Linux 5 and 6
  134. * Thu May 14 2015 Morten Stevens <mstevens@fedoraproject.org> - 1.3.10-1
  135. - Initial Fedora Package
  136. - Added subpackage for documentation files
  137. - Added subpackage for static files