!37 [sync] PR-36: Fix sw_64 build failure
From: @openeuler-sync-bot Reviewed-by: @dillon_chen Signed-off-by: @dillon_chen
This commit is contained in:
commit
fd620a0104
18
libdb.spec
18
libdb.spec
@ -1,6 +1,6 @@
|
||||
Name: libdb
|
||||
Version: 5.3.28
|
||||
Release: 41
|
||||
Release: 42
|
||||
Summary: The Berkeley DB database library for C
|
||||
License: BSD and LGPLv2 and Sleepycat
|
||||
URL: https://www.oracle.com/database/berkeley-db/
|
||||
@ -150,7 +150,10 @@ pushd dist/dist-tls
|
||||
%define _configure ../configure
|
||||
%configure -C \
|
||||
--enable-compat185 --enable-dump185 --enable-shared --enable-tcl --with-tcl=%{_libdir} \
|
||||
--enable-cxx --enable-sql --enable-java --enable-test --disable-rpath --with-tcl=%{_libdir}/tcl8.6
|
||||
%ifnarch sw_64
|
||||
--enable-java \
|
||||
%endif
|
||||
--enable-cxx --enable-sql --enable-test --disable-rpath --with-tcl=%{_libdir}/tcl8.6
|
||||
|
||||
%disable_rpath
|
||||
|
||||
@ -173,7 +176,9 @@ for i in db.h db_cxx.h db_185.h; do
|
||||
done
|
||||
|
||||
install -d -m 0755 %{buildroot}%{_datadir}/java
|
||||
%ifnarch sw_64
|
||||
mv %{buildroot}%{_libdir}/*.jar %{buildroot}%{_datadir}/java/
|
||||
%endif
|
||||
|
||||
chmod u+w %{buildroot}%{_bindir} %{buildroot}%{_bindir}/*
|
||||
chrpath -d ${RPM_BUILD_ROOT}%{_libdir}/*.so ${RPM_BUILD_ROOT}%{_bindir}/*
|
||||
@ -193,12 +198,16 @@ mv man/* %{buildroot}%{_mandir}/man1/
|
||||
%license LICENSE
|
||||
%{_bindir}/*
|
||||
%{_libdir}/*.so
|
||||
%ifnarch sw_64
|
||||
%{_datadir}/java/*.jar
|
||||
%endif
|
||||
%exclude %{_libdir}/libdb.so
|
||||
%exclude %{_libdir}/libdb_cxx.so
|
||||
%exclude %{_libdir}/libdb_tcl.so
|
||||
%exclude %{_libdir}/libdb_sql.so
|
||||
%ifnarch sw_64
|
||||
%exclude %{_libdir}/libdb_java.so
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
@ -208,7 +217,9 @@ mv man/* %{buildroot}%{_mandir}/man1/
|
||||
%{_libdir}/libdb_cxx.so
|
||||
%{_libdir}/libdb_tcl.so
|
||||
%{_libdir}/libdb_sql.so
|
||||
%ifnarch sw_64
|
||||
%{_libdir}/libdb_java.so
|
||||
%endif
|
||||
%{_includedir}/*
|
||||
|
||||
%files help
|
||||
@ -217,6 +228,9 @@ mv man/* %{buildroot}%{_mandir}/man1/
|
||||
%{_mandir}/man1
|
||||
|
||||
%changelog
|
||||
* Mon Aug 14 2023 suwei <suwei@kylinsec.com.cn> - 5.3.28-42
|
||||
- Fix sw_64 build failure
|
||||
|
||||
* Tue Nov 29 2022 chendexi <chendexi@kylinos.cn> - 5.3.28-41
|
||||
- Change the Buildrequire from java-devel to java-1.8.0-openjdk-devel
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user