forked from pool/mbedtls
Accepting request 584224 from devel:libraries:c_c++
- Use more cmake macros - Update spec file using spec-cleaner OBS-URL: https://build.opensuse.org/request/show/584224 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mbedtls?expand=0&rev=15
This commit is contained in:
parent
b19ab02e4a
commit
57b6639daf
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 8 09:32:12 UTC 2018 - mpluskal@suse.com
|
||||
|
||||
- Use more cmake macros
|
||||
- Update spec file using spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 13 15:55:27 UTC 2018 - kbabioch@suse.com
|
||||
|
||||
|
15
mbedtls.spec
15
mbedtls.spec
@ -25,7 +25,7 @@ Release: 0
|
||||
Summary: Libraries for crypto and SSL/TLS protocols
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: https://tls.mbed.org
|
||||
URL: https://tls.mbed.org
|
||||
Source: https://tls.mbed.org/download/%{name}-%{version}-apache.tgz
|
||||
Source99: baselibs.conf
|
||||
BuildRequires: cmake
|
||||
@ -101,14 +101,14 @@ sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' include/mbedtls/config.h
|
||||
-DUSE_SHARED_MBEDTLS_LIBRARY=ON \
|
||||
-DUSE_STATIC_MBEDTLS_LIBRARY=OFF \
|
||||
-DENABLE_PROGRAMS=OFF
|
||||
make VERBOSE=1 %{?_smp_mflags}
|
||||
%make_jobs
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%check
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/build/library
|
||||
make -C build test %{?_smp_mflags}
|
||||
%ctest
|
||||
|
||||
%post -n %{lib_tls} -p /sbin/ldconfig
|
||||
%post -n %{lib_crypto} -p /sbin/ldconfig
|
||||
@ -118,7 +118,8 @@ make -C build test %{?_smp_mflags}
|
||||
%postun -n %{lib_x509} -p /sbin/ldconfig
|
||||
|
||||
%files devel
|
||||
%doc ChangeLog README.md LICENSE
|
||||
%license LICENSE
|
||||
%doc ChangeLog README.md
|
||||
%dir %{_includedir}/mbedtls
|
||||
%{_includedir}/mbedtls/*.h
|
||||
%{_libdir}/libmbedtls.so
|
||||
@ -126,15 +127,15 @@ make -C build test %{?_smp_mflags}
|
||||
%{_libdir}/libmbedx509.so
|
||||
|
||||
%files -n %{lib_tls}
|
||||
%doc LICENSE
|
||||
%license LICENSE
|
||||
%{_libdir}/libmbedtls.so.*
|
||||
|
||||
%files -n %{lib_crypto}
|
||||
%doc LICENSE
|
||||
%license LICENSE
|
||||
%{_libdir}/libmbedcrypto.so.*
|
||||
|
||||
%files -n %{lib_x509}
|
||||
%doc LICENSE
|
||||
%license LICENSE
|
||||
%{_libdir}/libmbedx509.so.*
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user