This commit is contained in:
Sergey Zhemoytel 2024-12-23 22:03:13 +00:00
parent 7f85b8ea24
commit a01fd99d9d

View file

@ -117,12 +117,14 @@ popd
#pushd %{buildroot}%{_datadir}/dbeaver/plugins/com.sun.jna_5.14.0.v20231211-1200/com/sun/jna/ #pushd %{buildroot}%{_datadir}/dbeaver/plugins/com.sun.jna_5.14.0.v20231211-1200/com/sun/jna/
#find %{buildroot}%{_datadir}/dbeaver/plugins/com.sun.jna_5.14.0.*/com/sun/jna/ -type d -not -name "linux-x86-64" -exec rm -rf {} \; #find %{buildroot}%{_datadir}/dbeaver/plugins/com.sun.jna_5.14.0.*/com/sun/jna/ -type d -not -name "linux-x86-64" -exec rm -rf {} \;
rm -rf $(ls --hide="linux-x86" --hide="linux-x86_64" --hide="internal" --hide="ptr" %{buildroot}%{_datadir}/dbeaver/plugins/com.sun.jna_5.14.0*/com/sun/jna/) #rm -rf $(ls --hide="linux-x86" --hide="linux-x86_64" --hide="internal" --hide="ptr" %{buildroot}%{_datadir}/dbeaver/plugins/com.sun.jna_5.14.0*/com/sun/jna/)
#/builddir/build/BUILDROOT/dbeaver-24.3.1-1-R11.x86_64-buildroot/usr/share/dbeaver/plugins/com.sun.jna_5.15.0.v20240915-2000/com/sun/jna/sunos-sparc/libjnidispatch.so' #/builddir/build/BUILDROOT/dbeaver-24.3.1-1-R11.x86_64-buildroot/usr/share/dbeaver/plugins/com.sun.jna_5.15.0.v20240915-2000/com/sun/jna/sunos-sparc/libjnidispatch.so'
#popd #popd
find %{buildroot}%{_datadir}/dbeaver/plugins/com.sun.jna_[0-9.]*-v[0-9]*-com/sun/jna/ -type d $ -name "linux-x86" -o -name "linux-x86_64" -o -name "internal" -o -name "ptr" $ -prune -o -exec rm -rf {} \; #find %{buildroot}%{_datadir}/dbeaver/plugins/com.sun.jna_[0-9.]*-v[0-9]*-com/sun/jna/ -type d $ -name "linux-x86" -o -name "linux-x86_64" -o -name "internal" -o -name "ptr" $ -prune -o -exec rm -rf {} \;
find '%{buildroot}%{_datadir}/dbeaver/plugins/com.sun.jna_[0-9.]*-v[0-9]*-com/sun/jna/' -type d $ -name linux-x86 -o -name linux-x86_64 -o -name internal -o -name ptr $ -prune -o -exec rm -rf '{}' \;
%files %files
%doc README.md LICENSE.md %doc README.md LICENSE.md