diff --git a/libldb.spec b/libldb.spec index 5b0650ea52a90eb9c601fa92325a219ccd988b3b..63ee7b024d1947c0ed9c73aed36c8aa5b13b2a39 100644 --- a/libldb.spec +++ b/libldb.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %ifarch aarch64 x86_64 %bcond_without lmdb %else @@ -15,11 +15,11 @@ Name: libldb Version: 2.5.0 -Release: 1%{anolis_release}%{?dist} +Release: %{anolis_release}%{?dist} Summary: A schema-less, ldap like, API and database -Requires: libtalloc%{?_isa} >= %{talloc_version} -Requires: libtdb%{?_isa} >= %{tdb_version} -Requires: libtevent%{?_isa} >= %{tevent_version} +Requires: libtalloc >= %{talloc_version} +Requires: libtdb >= %{tdb_version} +Requires: libtevent >= %{tevent_version} License: LGPLv3+ URL: http://ldb.samba.org/ Source0: https://www.samba.org/ftp/ldb/ldb-%{version}.tar.gz @@ -59,17 +59,17 @@ servers, or use local tdb databases. %package -n ldb-tools Summary: Tools to manage LDB files -Requires: libldb%{?_isa} = %{version}-%{release} +Requires: libldb = %{version}-%{release} %description -n ldb-tools Tools to manage LDB files %package devel Summary: Developer tools for the LDB library -Requires: libldb%{?_isa} = %{version}-%{release} -Requires: libtdb-devel%{?_isa} >= %{tdb_version} -Requires: libtalloc-devel%{?_isa} >= %{talloc_version} -Requires: libtevent-devel%{?_isa} >= %{tevent_version} +Requires: libldb = %{version}-%{release} +Requires: libtdb-devel >= %{tdb_version} +Requires: libtalloc-devel >= %{talloc_version} +Requires: libtevent-devel >= %{tevent_version} %description devel Header files needed to develop programs that link against the LDB library. @@ -77,7 +77,7 @@ Header files needed to develop programs that link against the LDB library. %package -n python-ldb-devel-common Summary: Common development files for the Python bindings for the LDB library -Provides: pyldb-devel%{?_isa} = %{version}-%{release} +Provides: pyldb-devel = %{version}-%{release} %{?python_provide:%python_provide python2-ldb-devel} %description -n python-ldb-devel-common @@ -87,8 +87,8 @@ This package includes files that aren't specific to a Python version. %if %{with python3} %package -n python3-ldb Summary: Python bindings for the LDB library -Requires: libldb%{?_isa} = %{version}-%{release} -Requires: python3-tdb%{?_isa} >= %{tdb_version} +Requires: libldb = %{version}-%{release} +Requires: python3-tdb >= %{tdb_version} %{?python_provide:%python_provide python3-ldb} @@ -97,8 +97,8 @@ Python bindings for the LDB library %package -n python3-ldb-devel Summary: Development files for the Python bindings for the LDB library -Requires: python3-ldb%{?_isa} = %{version}-%{release} -Requires: python-ldb-devel-common%{?_isa} = %{version}-%{release} +Requires: python3-ldb = %{version}-%{release} +Requires: python-ldb-devel-common = %{version}-%{release} %{?python_provide:%python_provide python3-ldb-devel} @@ -143,6 +143,8 @@ cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir} # not needed with el8+ and fc28+ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_* +%generate_compatibility_deps + %ldconfig_scriptlets %files @@ -151,8 +153,25 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_* %{_libdir}/ldb/libldb-key-value.so %{_libdir}/ldb/libldb-tdb-err-map.so %{_libdir}/ldb/libldb-tdb-int.so +%dir %{abidir} +%{abidir}/libldb.dump +%{abidir}/libldb-key-value.dump +%{abidir}/libldb-tdb-err-map.dump +%{abidir}/libldb-tdb-int.dump +%{abidir}/asq.dump +%{abidir}/ldap.dump +%{abidir}/ldb.dump +%{abidir}/libldb-cmdline.dump +%{abidir}/mdb.dump +%{abidir}/paged_searches.dump +%{abidir}/rdn_name.dump +%{abidir}/sample.dump +%{abidir}/server_sort.dump +%{abidir}/skel.dump +%{abidir}/tdb.dump %if %{with lmdb} %{_libdir}/ldb/libldb-mdb-int.so +%{abidir}/libldb-mdb-int.dump %endif %dir %{_libdir}/ldb/modules %dir %{_libdir}/ldb/modules/ldb @@ -193,6 +212,8 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_* %files -n python3-ldb %{python3_sitearch}/ldb.cpython-*.so %{_libdir}/libpyldb-util.cpython-*.so.2* +%{abidir}/ldb.cpython-*.dump +%{abidir}/libpyldb-util.cpython-*.dump %{python3_sitearch}/_ldb_text.py %{python3_sitearch}/__pycache__/_ldb_text.cpython-*.py* @@ -205,6 +226,9 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_* %endif %changelog +* Tue Oct 25 2022 mgb01105731 - 2.5.0-2 +- optimise spec file + * Wed Mar 09 2022 pangqing - 2.5.0-1 - Init for anolisOS 23