2020-11-10 07:26:36 +08:00
|
|
|
Summary: The Berkley DB database library for C
|
|
|
|
Name: libdb
|
|
|
|
Version: 5.3.28
|
|
|
|
Release: 5%{?dist}
|
|
|
|
License: BSD AND LGPLv2 AND Sleepycat
|
2020-08-07 11:17:52 +08:00
|
|
|
Vendor: Microsoft Corporation
|
|
|
|
Distribution: Mariner
|
2020-11-10 07:26:36 +08:00
|
|
|
Group: System/Libraries
|
|
|
|
URL: https://oss.oracle.com/berkeley-db.html
|
|
|
|
Source0: http://download.oracle.com/berkeley-db/db-%{version}.tar.gz
|
2020-08-07 11:17:52 +08:00
|
|
|
Obsoletes: db
|
2020-11-10 07:26:36 +08:00
|
|
|
|
2020-08-07 11:17:52 +08:00
|
|
|
%description
|
|
|
|
The Berkeley DB package contains libraries used by many other applications for database related functions.
|
|
|
|
|
|
|
|
%package devel
|
2020-11-10 07:26:36 +08:00
|
|
|
Summary: Header and development files
|
|
|
|
Requires: %{name} = %{version}
|
2020-08-07 11:17:52 +08:00
|
|
|
Obsoletes: db-devel
|
2020-11-10 07:26:36 +08:00
|
|
|
|
2020-08-07 11:17:52 +08:00
|
|
|
%description devel
|
|
|
|
It contains the libraries and header files to create applications
|
|
|
|
|
|
|
|
%package docs
|
|
|
|
Summary: DB docs
|
|
|
|
Group: Databases
|
|
|
|
Obsoletes: db-docs
|
2020-11-10 07:26:36 +08:00
|
|
|
|
2020-08-07 11:17:52 +08:00
|
|
|
%description docs
|
|
|
|
The package contains the DB doc files
|
|
|
|
|
2020-11-10 07:26:36 +08:00
|
|
|
%package utils
|
|
|
|
Summary: Command line tools for managing Berkeley DB databases
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description utils
|
|
|
|
The Berkeley Database (Berkeley DB) is a programmatic toolkit that
|
|
|
|
provides embedded database support for both traditional and
|
|
|
|
client/server applications. Berkeley DB includes B+tree, Extended
|
|
|
|
Linear Hashing, Fixed and Variable-length record access methods,
|
|
|
|
transactions, locking, logging, shared memory caching, and database
|
|
|
|
recovery. DB supports C, C++, Java and Perl APIs.
|
|
|
|
|
2020-08-07 11:17:52 +08:00
|
|
|
%prep
|
|
|
|
%setup -q -n db-%{version}
|
2020-11-10 07:26:36 +08:00
|
|
|
|
2020-08-07 11:17:52 +08:00
|
|
|
%build
|
|
|
|
cd build_unix
|
|
|
|
../dist/configure \
|
|
|
|
--host=%{_host} --build=%{_build} \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--enable-compat185 \
|
|
|
|
--enable-dbm \
|
|
|
|
--disable-static
|
|
|
|
make %{?_smp_mflags}
|
2020-11-10 07:26:36 +08:00
|
|
|
|
2020-08-07 11:17:52 +08:00
|
|
|
%install
|
|
|
|
pushd build_unix
|
|
|
|
make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-%{version} install
|
|
|
|
popd
|
2020-11-10 07:26:36 +08:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2020-08-07 11:17:52 +08:00
|
|
|
install -v -d -m755 %{buildroot}/%{_datadir}/licenses/
|
|
|
|
install -D -m755 LICENSE %{buildroot}/%{_datadir}/licenses/LICENSE
|
|
|
|
install -D -m755 README %{buildroot}/%{_datadir}/licenses/README
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2020-11-10 07:26:36 +08:00
|
|
|
|
2020-08-07 11:17:52 +08:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_datadir}/licenses/*
|
|
|
|
|
|
|
|
%files docs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_docdir}/%{name}-%{version}/*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%exclude %{_includedir}/db_cxx.h
|
|
|
|
%{_includedir}/*
|
|
|
|
|
2020-11-10 07:26:36 +08:00
|
|
|
%files utils
|
|
|
|
%{_bindir}/db*_archive
|
|
|
|
%{_bindir}/db*_checkpoint
|
|
|
|
%{_bindir}/db*_deadlock
|
|
|
|
%{_bindir}/db*_dump*
|
|
|
|
%{_bindir}/db*_hotbackup
|
|
|
|
%{_bindir}/db*_load
|
|
|
|
%{_bindir}/db*_printlog
|
|
|
|
%{_bindir}/db*_recover
|
|
|
|
%{_bindir}/db*_replicate
|
|
|
|
%{_bindir}/db*_stat
|
|
|
|
%{_bindir}/db*_upgrade
|
|
|
|
%{_bindir}/db*_verify
|
|
|
|
%{_bindir}/db*_tuner
|
|
|
|
|
2020-08-07 11:17:52 +08:00
|
|
|
%changelog
|
2020-11-10 07:26:36 +08:00
|
|
|
* Tue Nov 03 2020 Joe Schmitt <joschmit@microsoft.com> - 5.3.28-5
|
|
|
|
- Create utils subpackage.
|
|
|
|
|
2020-08-07 11:17:52 +08:00
|
|
|
* Sat May 09 00:20:43 PST 2020 Nick Samson <nisamson@microsoft.com> - 5.3.28-4
|
|
|
|
- Added %%license line automatically
|
|
|
|
|
|
|
|
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> 5.3.28-3
|
|
|
|
- Initial CBL-Mariner import from Photon (license: Apache2).
|
2020-11-10 07:26:36 +08:00
|
|
|
|
2020-08-07 11:17:52 +08:00
|
|
|
* Tue Nov 14 2017 Alexey Makhalov <amakhalov@vmware.com> 5.3.28-2
|
|
|
|
- Aarch64 support
|
2020-11-10 07:26:36 +08:00
|
|
|
|
2020-08-07 11:17:52 +08:00
|
|
|
* Thu Oct 27 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 5.3.28-1
|
|
|
|
- Initial build. First version
|