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