add exe to bindir
Signed-off-by: yanansong <songyanan5@huawei.com> (cherry picked from commit 1c2b1839a2211d53be9e52e59948d16ea11bd165)
This commit is contained in:
parent
afc8a79c40
commit
2d9feaacfb
@ -56,12 +56,15 @@ cd %{_builddir}/%{name}-%{version}
|
||||
%endif
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
mkdir -p %{buildroot}%{_libdir}
|
||||
mkdir -p %{buildroot}%{_includedir}
|
||||
mkdir -p %{buildroot}%{_includedir}/napi
|
||||
|
||||
%ifarch x86_64
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/out/Release/x64/common/common/lib*.so %{buildroot}%{_libdir}
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/out/Release/x64/common/common/hap_executor %{buildroot}%{_bindir}
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/out/Release/x64/common/common/protoc %{buildroot}%{_bindir}
|
||||
%endif
|
||||
cp -pdfr %{_builddir}/%{name}-%{version}/napi/interfaces %{buildroot}%{_includedir}/napi
|
||||
|
||||
@ -71,6 +74,7 @@ rm -rf %{buildroot}
|
||||
%files
|
||||
%ifarch x86_64
|
||||
%{_libdir}/*
|
||||
%{_bindir}/*
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user