spec: Synchronous embedded compilation and packaging options
Synchronous embedded compilation and packaging options Signed-off-by: saarloos <9090-90-90-9090@163.com>
This commit is contained in:
parent
5131cfd210
commit
b99cad33d7
@ -1,6 +1,6 @@
|
|||||||
Name: libmetal
|
Name: libmetal
|
||||||
Version: 2022.04.0
|
Version: 2022.04.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: An abstraction layer across user-space Linux, baremetal, and RTOS environments
|
Summary: An abstraction layer across user-space Linux, baremetal, and RTOS environments
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -40,12 +40,16 @@ baremetal, and RTOS environments.
|
|||||||
%build
|
%build
|
||||||
mkdir build
|
mkdir build
|
||||||
cd 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
|
%install
|
||||||
cd build
|
cd build
|
||||||
%make_install
|
%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
|
%ldconfig_scriptlets
|
||||||
@ -53,10 +57,8 @@ cd build
|
|||||||
%files
|
%files
|
||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_libdir}/libmetal.so.1
|
%{_libdir}/*.so*
|
||||||
%{_libdir}/libmetal.so.1.2.0
|
%{_bindir}/test-*
|
||||||
# test-metal-shared is not used.
|
|
||||||
%exclude %{_bindir}/test-metal-shared
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/libmetal.so
|
%{_libdir}/libmetal.so
|
||||||
@ -69,6 +71,9 @@ cd build
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 5 2022 zhangziyang <zhangziyang1@huawei.com> - 2022.04.0-2
|
||||||
|
- synchronous embedded compilation and packaging options
|
||||||
|
|
||||||
* Thu Jun 30 2022 luojects <luoyonglun@huawei.com> - 2022.04.0-1
|
* Thu Jun 30 2022 luojects <luoyonglun@huawei.com> - 2022.04.0-1
|
||||||
- update to 2022.04.0
|
- update to 2022.04.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user