[packages/openldap] use configuredir
atler
atler at pld-linux.org
Sun Jul 13 00:59:59 CEST 2025
commit da43bbef9e805ec038f8d70d81e2cdd372160eda
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Jul 12 16:48:39 2025 +0200
use configuredir
openldap.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/openldap.spec b/openldap.spec
index 2bd7915..a30e420 100644
--- a/openldap.spec
+++ b/openldap.spec
@@ -92,7 +92,7 @@ BuildRequires: libwrap-devel
BuildRequires: openssl-devel >= 0.9.7d
%{?with_perl:BuildRequires: perl-devel}
BuildRequires: readline-devel >= 4.2
-BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: rpmbuild(macros) >= 2.043
BuildRequires: sed >= 4.0
BuildRequires: uname(release) >= 2.6
%{?with_odbc:BuildRequires: unixODBC-devel}
@@ -1294,7 +1294,8 @@ CFLAGS="%{rpmcflags}"
CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
LDFLAGS="%{rpmcflags} %{rpmldflags}"
export CC CXX CFLAGS CXXFLAGS LDFLAGS
-../dist/%configure \
+%define configuredir ../dist
+%configure \
--cache-file=%{?configure_cache_file}%{!?configure_cache_file:configure}-db.cache \
--disable-compat185 \
--disable-dump185 \
@@ -1311,6 +1312,8 @@ export CC CXX CFLAGS CXXFLAGS LDFLAGS
--includedir=${dbdir}/include \
--libdir=${dbdir}/%{_lib}
+%undefine configuredir
+
%{__make} \
libdb_base=libslapd_db \
libso_base=libslapd_db
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openldap.git/commitdiff/da43bbef9e805ec038f8d70d81e2cdd372160eda
More information about the pld-cvs-commit
mailing list