From b99cad33d71490ca5f8ea03a83075cfd24dee26f Mon Sep 17 00:00:00 2001 From: saarloos <9090-90-90-9090@163.com> Date: Tue, 9 Aug 2022 15:48:28 +0800 Subject: [PATCH] spec: Synchronous embedded compilation and packaging options Synchronous embedded compilation and packaging options Signed-off-by: saarloos <9090-90-90-9090@163.com> --- libmetal.spec | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/libmetal.spec b/libmetal.spec index f259820..3e0ccd8 100644 --- a/libmetal.spec +++ b/libmetal.spec @@ -1,6 +1,6 @@ Name: libmetal Version: 2022.04.0 -Release: 1 +Release: 2 Summary: An abstraction layer across user-space Linux, baremetal, and RTOS environments License: BSD @@ -40,12 +40,16 @@ baremetal, and RTOS environments. %build mkdir build cd build -%cmake -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DWITH_STATIC_LIB=OFF -DWITH_EXAMPLES=OFF -DWITH_TEST=OFF .. +%cmake -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DWITH_STATIC_LIB=OFF -DWITH_EXAMPLES=ON .. %install cd build %make_install +for f in `find %{buildroot}/%{_bindir}/ -type f -regex ".*-shared*"`; do + newf="`echo ${f} | sed 's/-shared*$//g'`" + mv "${f}" "${newf}" +done %ldconfig_scriptlets @@ -53,10 +57,8 @@ cd build %files %license LICENSE.md %doc README.md -%{_libdir}/libmetal.so.1 -%{_libdir}/libmetal.so.1.2.0 -# test-metal-shared is not used. -%exclude %{_bindir}/test-metal-shared +%{_libdir}/*.so* +%{_bindir}/test-* %files devel %{_libdir}/libmetal.so @@ -69,6 +71,9 @@ cd build %changelog +* Fri Aug 5 2022 zhangziyang - 2022.04.0-2 +- synchronous embedded compilation and packaging options + * Thu Jun 30 2022 luojects - 2022.04.0-1 - update to 2022.04.0 -- Gitee