|
@@ -10,7 +10,13 @@ Summary: The Berkeley DB database library for C
|
|
|
Summary(ja): C 言語用 Berkeley DB データベースライブラリ
|
|
|
Name: libdb
|
|
|
Version: 5.3.28
|
|
|
-Release: 12%{?_dist_release}
|
|
|
+Release: 13%{?_dist_release}
|
|
|
+Group: system
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
+URL: http://www.oracle.com/database/berkeley-db/
|
|
|
+License: BSD and LGPLv2 and Sleepycat
|
|
|
Source0: http://download.oracle.com/berkeley-db/db-%{version}.tar.gz
|
|
|
Source1: http://download.oracle.com/berkeley-db/db.1.85.tar.gz
|
|
|
# For mt19937db.c
|
|
@@ -59,10 +65,16 @@ Patch38: libdb-limit-cpu.patch
|
|
|
# rhbz#1608749 Patch sent upstream
|
|
|
# Expects libdb-5.3.21-mutex_leak.patch applied
|
|
|
Patch39: libdb-5.3.21-trickle_cpu.patch
|
|
|
+# cve-2019-2708 fixed by mmuzila
|
|
|
+Patch40: db-5.3.28_cve-2019-2708.patch
|
|
|
+# Prevents high CPU usage
|
|
|
+Patch41: db-5.3.28-mmap-high-cpu-usage.patch
|
|
|
+
|
|
|
+Patch42: libdb-1.85-c99.patch
|
|
|
+Patch43: libdb-c99.patch
|
|
|
+Patch44: libdb-configure-c99.patch
|
|
|
+Patch45: libdb-sqlite-c99.patch
|
|
|
|
|
|
-URL: http://www.oracle.com/database/berkeley-db/
|
|
|
-License: BSD and LGPLv2 and Sleepycat
|
|
|
-Group: System Environment/Libraries
|
|
|
BuildRequires: perl libtool
|
|
|
BuildRequires: tcl-devel >= %{__tclversion}
|
|
|
%if %{with java}
|
|
@@ -71,10 +83,6 @@ BuildRequires: java-devel >= 1:1.6.0
|
|
|
#BuildRequires: chrpath
|
|
|
#Conflicts: filesystem < 3
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
-Packager: tomop
|
|
|
-
|
|
|
%description
|
|
|
The Berkeley Database (Berkeley DB) is a programmatic toolkit that
|
|
|
provides embedded database support for both traditional and
|
|
@@ -88,7 +96,7 @@ be installed on all systems.
|
|
|
%package utils
|
|
|
Summary: Command line tools for managing Berkeley DB databases
|
|
|
Summary(ja): Berkeley DB データベースを管理するためのコマンドラインツール集
|
|
|
-Group: Applications/Databases
|
|
|
+Group: office
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
Obsoletes: db4-utils
|
|
|
Provides: db4-utils
|
|
@@ -104,7 +112,7 @@ recovery. DB supports C, C++, Java and Perl APIs.
|
|
|
%package devel
|
|
|
Summary: C development files for the Berkeley DB library
|
|
|
Summary(ja): Berkeley DB ライブラリの C 言語用開発ファイル
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
Obsoletes: db4-devel
|
|
|
Provides: db4-devel
|
|
@@ -118,7 +126,7 @@ and libraries for building programs which use the Berkeley DB.
|
|
|
%package devel-doc
|
|
|
Summary: C development documentation files for the Berkeley DB library
|
|
|
Summary(ja): Berkeley DB ライブラリの C 言語用開発ドキュメント
|
|
|
-Group: Documentation
|
|
|
+Group: documentation
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
BuildArch: noarch
|
|
@@ -132,7 +140,7 @@ for building programs which use the Berkeley DB.
|
|
|
%package devel-static
|
|
|
Summary: Berkeley DB static libraries
|
|
|
Summary(ja): Berkeley DB 静的ライブラリ
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
%description devel-static
|
|
@@ -145,7 +153,7 @@ Berkeley DB.
|
|
|
%package cxx
|
|
|
Summary: The Berkeley DB database library for C++
|
|
|
Summary(ja): C++ 言語用 Berkeley DB データベースライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: system
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
%description cxx
|
|
@@ -161,7 +169,7 @@ be installed on all systems.
|
|
|
%package cxx-devel
|
|
|
Summary: C++ development files for the Berkeley DB library
|
|
|
Summary(ja): Berkeley DB ライブラリの C++ 言語用開発ファイル
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name}-cxx%{?_isa} = %{version}-%{release}
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
|
@@ -175,7 +183,7 @@ Berkeley DB in C++.
|
|
|
%package tcl
|
|
|
Summary: The Berkeley DB library for tcl
|
|
|
Summary(ja): tcl 用 Berkeley DB データベースライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: system
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
%description tcl
|
|
@@ -187,7 +195,7 @@ for building programs which use the Berkeley DB in Tcl.
|
|
|
%package tcl-devel
|
|
|
Summary: Development files for using the Berkeley DB with tcl
|
|
|
Summary(ja): tcl で Berkeley DB を利用するための開発ファイル
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name}-tcl%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
%description tcl-devel
|
|
@@ -199,7 +207,7 @@ for building programs which use the Berkeley DB in Tcl.
|
|
|
%package sql
|
|
|
Summary: The Berkeley DB library for SQL
|
|
|
Summary(ja): SQL 用 Berkeley DB データベースライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: system
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
%description sql
|
|
@@ -211,7 +219,7 @@ for building programs which use the Berkeley DB in SQL.
|
|
|
%package sql-devel
|
|
|
Summary: Development files for using the Berkeley DB with sql
|
|
|
Summary(ja): SQL で Berkeley DB を利用するための開発ファイル
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name}-sql%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
%description sql-devel
|
|
@@ -224,7 +232,7 @@ for building programs which use the Berkeley DB in SQL.
|
|
|
%package java
|
|
|
Summary: The Berkeley DB library for Java
|
|
|
Summary(ja): Java 用 Berkeley DB データベースライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: system
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
%description java
|
|
@@ -236,7 +244,7 @@ for building programs which use the Berkeley DB in Java.
|
|
|
%package java-devel
|
|
|
Summary: Development files for using the Berkeley DB with Java
|
|
|
Summary(ja): Java で Berkeley DB を利用するための開発ファイル
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name}-java%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
%description java-devel
|
|
@@ -250,7 +258,7 @@ for building programs which use the Berkeley DB in Java.
|
|
|
%package -n compat32-%{name}
|
|
|
Summary: The Berkeley DB database library for C
|
|
|
Summary(ja): C 言語用 Berkeley DB データベースライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: system,legacy
|
|
|
Requires: libdb = %{version}-%{release}
|
|
|
|
|
|
%description -n compat32-%{name}
|
|
@@ -266,7 +274,7 @@ be installed on all systems.
|
|
|
%package -n compat32-%{name}-cxx
|
|
|
Summary: The Berkeley DB database library for C++
|
|
|
Summary(ja): C++ 言語用 Berkeley DB データベースライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: system,legacy
|
|
|
Requires: %{name}-cxx = %{version}-%{release}
|
|
|
Requires: compat32-%{name} = %{version}-%{release}
|
|
|
|
|
@@ -283,7 +291,7 @@ be installed on all systems.
|
|
|
%package -n compat32-%{name}-devel
|
|
|
Summary: C development files for the Berkeley DB library
|
|
|
Summary(ja): Berkeley DB ライブラリの C 言語用開発ファイル
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming,legacy
|
|
|
Requires: compat32-%{name} = %{version}-%{release}
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
Obsoletes: compat32-db4-devel
|
|
@@ -297,6 +305,9 @@ libraries, and documentation for building programs which use the
|
|
|
Berkeley DB.
|
|
|
|
|
|
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q -n db-%{version} -a 1
|
|
|
cp %{SOURCE2} .
|
|
@@ -329,11 +340,18 @@ popd
|
|
|
%patch37 -p1
|
|
|
%patch38 -p1
|
|
|
%patch39 -p1
|
|
|
+%patch40 -p1 -b .cve-2019-2708
|
|
|
+%patch41 -p1
|
|
|
+%patch42 -p1
|
|
|
+%patch43 -p1
|
|
|
+%patch44 -p1
|
|
|
+%patch45 -p1
|
|
|
|
|
|
cd dist
|
|
|
./s_config
|
|
|
cd ..
|
|
|
|
|
|
+
|
|
|
%build
|
|
|
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
|
CFLAGS="$CFLAGS -DSHAREDSTATEDIR='\"%{_sharedstatedir}\"' -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=3 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -I../../../lang/sql/sqlite/ext/fts3/"
|
|
@@ -390,6 +408,7 @@ fi
|
|
|
|
|
|
popd
|
|
|
|
|
|
+
|
|
|
%install
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
|
|
@@ -436,43 +455,6 @@ rm -rf examples/csharp
|
|
|
rm -rf docs/installation
|
|
|
mv examples docs
|
|
|
|
|
|
-%clean
|
|
|
-rm -rf ${RPM_BUILD_ROOT}
|
|
|
-
|
|
|
-%post -p /sbin/ldconfig
|
|
|
-
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
-
|
|
|
-%post cxx -p /sbin/ldconfig
|
|
|
-
|
|
|
-%postun cxx -p /sbin/ldconfig
|
|
|
-
|
|
|
-%post sql -p /sbin/ldconfig
|
|
|
-
|
|
|
-%postun sql -p /sbin/ldconfig
|
|
|
-
|
|
|
-%post tcl -p /sbin/ldconfig
|
|
|
-
|
|
|
-%postun tcl -p /sbin/ldconfig
|
|
|
-
|
|
|
-%if %{with java}
|
|
|
-%post java -p /sbin/ldconfig
|
|
|
-
|
|
|
-%postun java -p /sbin/ldconfig
|
|
|
-
|
|
|
-%endif
|
|
|
-
|
|
|
-
|
|
|
-%if %{build_compat32}
|
|
|
-%post -n compat32-%{name} -p /sbin/ldconfig
|
|
|
-
|
|
|
-%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
-
|
|
|
-%post -n compat32-%{name}-cxx -p /sbin/ldconfig
|
|
|
-
|
|
|
-%postun -n compat32-%{name}-cxx -p /sbin/ldconfig
|
|
|
-
|
|
|
-%endif
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
@@ -579,6 +561,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Jul 05 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.28-13
|
|
|
+- imported Patch40-45 from rawhide.
|
|
|
+
|
|
|
* Sat Apr 11 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.28-12
|
|
|
- imported Patch36-39 from rawhide.
|
|
|
|