Accepting request 651181 from home:jengelh:branches:network:ldap
- Replace old $RPM_* shell vars and fix that silly build error about --no-as-needed OBS-URL: https://build.opensuse.org/request/show/651181 OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=234
This commit is contained in:
parent
e604505058
commit
31984da890
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 22 16:03:22 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Replace old $RPM_* shell vars
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 20 13:32:36 UTC 2018 - ckowalczyk@suse.com
|
Tue Nov 20 13:32:36 UTC 2018 - ckowalczyk@suse.com
|
||||||
|
|
||||||
|
108
openldap2.spec
108
openldap2.spec
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -352,36 +352,36 @@ make SLAPD_DEBUG=0 test
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/openldap
|
mkdir -p %{buildroot}/%{_libdir}/openldap
|
||||||
mkdir -p ${RPM_BUILD_ROOT}/usr/lib/openldap
|
mkdir -p %{buildroot}/usr/lib/openldap
|
||||||
mkdir -p ${RPM_BUILD_ROOT}/usr/sbin
|
mkdir -p %{buildroot}/usr/sbin
|
||||||
mkdir -p ${RPM_BUILD_ROOT}/%{_unitdir}
|
mkdir -p %{buildroot}/%{_unitdir}
|
||||||
make STRIP="" "DESTDIR=${RPM_BUILD_ROOT}" "sysconfdir=%{_sysconfdir}/openldap" "libdir=%{_libdir}" "libexecdir=%{_libdir}" install
|
make STRIP="" DESTDIR="%{buildroot}" "sysconfdir=%{_sysconfdir}/openldap" "libdir=%{_libdir}" "libexecdir=%{_libdir}" install
|
||||||
# Additional symbolic link to slapd executable in /usr/sbin/
|
# Additional symbolic link to slapd executable in /usr/sbin/
|
||||||
ln -s %{_libdir}/slapd ${RPM_BUILD_ROOT}/usr/sbin/slapd
|
ln -s %{_libdir}/slapd %{buildroot}/usr/sbin/slapd
|
||||||
# Install selected contrib overlays
|
# Install selected contrib overlays
|
||||||
for SLAPO_NAME in addpartial allowed allop autogroup lastbind nops denyop cloak noopsrch passwd/sha2 passwd/pbkdf2 trace
|
for SLAPO_NAME in addpartial allowed allop autogroup lastbind nops denyop cloak noopsrch passwd/sha2 passwd/pbkdf2 trace
|
||||||
do
|
do
|
||||||
make -C contrib/slapd-modules/${SLAPO_NAME} STRIP="" "DESTDIR=${RPM_BUILD_ROOT}" "sysconfdir=%{_sysconfdir}/openldap" "libdir=%{_libdir}" "libexecdir=%{_libdir}" install
|
make -C contrib/slapd-modules/${SLAPO_NAME} STRIP="" DESTDIR="%{buildroot}" "sysconfdir=%{_sysconfdir}/openldap" "libdir=%{_libdir}" "libexecdir=%{_libdir}" install
|
||||||
done
|
done
|
||||||
# slapo-smbk5pwd only for Samba password hashes
|
# slapo-smbk5pwd only for Samba password hashes
|
||||||
make -C contrib/slapd-modules/smbk5pwd STRIP="" "DESTDIR=${RPM_BUILD_ROOT}" "sysconfdir=%{_sysconfdir}/openldap" "libdir=%{_libdir}" "libexecdir=%{_libdir}" install
|
make -C contrib/slapd-modules/smbk5pwd STRIP="" DESTDIR="%{buildroot}" "sysconfdir=%{_sysconfdir}/openldap" "libdir=%{_libdir}" "libexecdir=%{_libdir}" install
|
||||||
install -m 755 %{SOURCE13} ${RPM_BUILD_ROOT}/usr/lib/openldap/start
|
install -m 755 %{SOURCE13} %{buildroot}/usr/lib/openldap/start
|
||||||
install -m 644 %{SOURCE14} ${RPM_BUILD_ROOT}/%{_unitdir}
|
install -m 644 %{SOURCE14} %{buildroot}/%{_unitdir}
|
||||||
mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/openldap/slapd.d
|
mkdir -p %{buildroot}/%{_sysconfdir}/openldap/slapd.d
|
||||||
mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/sasl2
|
mkdir -p %{buildroot}/%{_sysconfdir}/sasl2
|
||||||
install -m 644 %{SOURCE4} ${RPM_BUILD_ROOT}/%{_sysconfdir}/sasl2/slapd.conf
|
install -m 644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/sasl2/slapd.conf
|
||||||
install -m 755 -d ${RPM_BUILD_ROOT}/var/lib/ldap
|
install -m 755 -d %{buildroot}/var/lib/ldap
|
||||||
chmod a+x ${RPM_BUILD_ROOT}/%{_libdir}/liblber.so*
|
chmod a+x %{buildroot}/%{_libdir}/liblber.so*
|
||||||
chmod a+x ${RPM_BUILD_ROOT}/%{_libdir}/libldap_r.so*
|
chmod a+x %{buildroot}/%{_libdir}/libldap_r.so*
|
||||||
install -m 755 %{SOURCE6} ${RPM_BUILD_ROOT}/usr/sbin/schema2ldif
|
install -m 755 %{SOURCE6} %{buildroot}/usr/sbin/schema2ldif
|
||||||
install -m 755 %{SOURCE17} ${RPM_BUILD_ROOT}/usr/sbin
|
install -m 755 %{SOURCE17} %{buildroot}/usr/sbin
|
||||||
mkdir -p ${RPM_BUILD_ROOT}/usr/lib/tmpfiles.d/
|
mkdir -p %{buildroot}/usr/lib/tmpfiles.d/
|
||||||
install -m 644 %{SOURCE18} ${RPM_BUILD_ROOT}/usr/lib/tmpfiles.d/
|
install -m 644 %{SOURCE18} %{buildroot}/usr/lib/tmpfiles.d/
|
||||||
install -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}/%{_libexecdir}/openldap/
|
install -m 644 %{SOURCE3} %{buildroot}/%{_libexecdir}/openldap/
|
||||||
|
|
||||||
# Install ppolicy check module
|
# Install ppolicy check module
|
||||||
make -C contrib/slapd-modules/ppolicy-check-password STRIP="" "DESTDIR=${RPM_BUILD_ROOT}" "sysconfdir=%{_sysconfdir}/openldap" "libdir=%{_libdir}" "libexecdir=%{_libexecdir}" install
|
make -C contrib/slapd-modules/ppolicy-check-password STRIP="" DESTDIR="%{buildroot}" "sysconfdir=%{_sysconfdir}/openldap" "libdir=%{_libdir}" "libexecdir=%{_libexecdir}" install
|
||||||
install -m 0644 %{S:202} %{buildroot}%{_sysconfdir}/openldap/check_password.conf
|
install -m 0644 %{S:202} %{buildroot}%{_sysconfdir}/openldap/check_password.conf
|
||||||
# Install ppolicy check module's doc files
|
# Install ppolicy check module's doc files
|
||||||
pushd contrib/slapd-modules/%{name_ppolicy_check_module}
|
pushd contrib/slapd-modules/%{name_ppolicy_check_module}
|
||||||
@ -392,59 +392,59 @@ popd
|
|||||||
# Install ppolicy check module's manual page
|
# Install ppolicy check module's manual page
|
||||||
install -m 0644 %{S:203}.gz %{buildroot}%{_mandir}/man5/
|
install -m 0644 %{S:203}.gz %{buildroot}%{_mandir}/man5/
|
||||||
|
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_fillupdir}
|
mkdir -p %{buildroot}/%{_fillupdir}
|
||||||
install -m 644 %{SOURCE16} ${RPM_BUILD_ROOT}%{_fillupdir}/sysconfig.openldap
|
install -m 644 %{SOURCE16} %{buildroot}/%{_fillupdir}/sysconfig.openldap
|
||||||
install -m 644 *.ldif ${RPM_BUILD_ROOT}%{_sysconfdir}/openldap/schema
|
install -m 644 *.ldif %{buildroot}/%{_sysconfdir}/openldap/schema
|
||||||
install -m 644 *.schema ${RPM_BUILD_ROOT}%{_sysconfdir}/openldap/schema
|
install -m 644 *.schema %{buildroot}/%{_sysconfdir}/openldap/schema
|
||||||
# Install default and sample configuration files
|
# Install default and sample configuration files
|
||||||
install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/openldap
|
install -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/openldap
|
||||||
install -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_sysconfdir}/openldap
|
install -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/openldap
|
||||||
install -m 644 %{SOURCE12} ${RPM_BUILD_ROOT}%{_sysconfdir}/openldap
|
install -m 644 %{SOURCE12} %{buildroot}/%{_sysconfdir}/openldap
|
||||||
install -d ${RPM_BUILD_ROOT}/etc/sysconfig/SuSEfirewall2.d/services/
|
install -d %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/
|
||||||
install -m 644 %{SOURCE15} ${RPM_BUILD_ROOT}/etc/sysconfig/SuSEfirewall2.d/services/openldap
|
install -m 644 %{SOURCE15} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/openldap
|
||||||
find doc/guide '(' ! -name *.html -a ! -name *.gif -a ! -name *.png -a ! -type d ')' -delete
|
find doc/guide '(' ! -name *.html -a ! -name *.gif -a ! -name *.png -a ! -type d ')' -delete
|
||||||
rm -rf doc/guide/release
|
rm -rf doc/guide/release
|
||||||
|
|
||||||
%define DOCDIR %{_defaultdocdir}/%{name}
|
%define DOCDIR %{_defaultdocdir}/%{name}
|
||||||
# Install default database optimisation
|
# Install default database optimisation
|
||||||
install -d ${RPM_BUILD_ROOT}/%{DOCDIR}/adminguide \
|
install -d %{buildroot}/%{DOCDIR}/adminguide \
|
||||||
${RPM_BUILD_ROOT}/%{DOCDIR}/images \
|
%{buildroot}/%{DOCDIR}/images \
|
||||||
${RPM_BUILD_ROOT}/%{DOCDIR}/drafts
|
%{buildroot}/%{DOCDIR}/drafts
|
||||||
install -m 644 ${RPM_BUILD_ROOT}/etc/openldap/DB_CONFIG.example ${RPM_BUILD_ROOT}/%{DOCDIR}/
|
install -m 644 %{buildroot}/etc/openldap/DB_CONFIG.example %{buildroot}/%{DOCDIR}/
|
||||||
install -m 644 doc/guide/admin/* ${RPM_BUILD_ROOT}/%{DOCDIR}/adminguide
|
install -m 644 doc/guide/admin/* %{buildroot}/%{DOCDIR}/adminguide
|
||||||
install -m 644 doc/guide/images/*.gif ${RPM_BUILD_ROOT}/%{DOCDIR}/images
|
install -m 644 doc/guide/images/*.gif %{buildroot}/%{DOCDIR}/images
|
||||||
install -m 644 doc/drafts/* ${RPM_BUILD_ROOT}/%{DOCDIR}/drafts
|
install -m 644 doc/drafts/* %{buildroot}/%{DOCDIR}/drafts
|
||||||
install -m 644 ANNOUNCEMENT \
|
install -m 644 ANNOUNCEMENT \
|
||||||
COPYRIGHT \
|
COPYRIGHT \
|
||||||
README \
|
README \
|
||||||
CHANGES \
|
CHANGES \
|
||||||
%{SOURCE5} \
|
%{SOURCE5} \
|
||||||
${RPM_BUILD_ROOT}/%{DOCDIR}
|
%{buildroot}/%{DOCDIR}
|
||||||
install -m 644 servers/slapd/slapd.ldif \
|
install -m 644 servers/slapd/slapd.ldif \
|
||||||
${RPM_BUILD_ROOT}/%{DOCDIR}/slapd.ldif.default
|
%{buildroot}/%{DOCDIR}/slapd.ldif.default
|
||||||
rm -f ${RPM_BUILD_ROOT}/etc/openldap/DB_CONFIG.example
|
rm -f %{buildroot}/etc/openldap/DB_CONFIG.example
|
||||||
rm -f ${RPM_BUILD_ROOT}/etc/openldap/schema/README
|
rm -f %{buildroot}/etc/openldap/schema/README
|
||||||
rm -f ${RPM_BUILD_ROOT}/etc/openldap/slapd.ldif*
|
rm -f %{buildroot}/etc/openldap/slapd.ldif*
|
||||||
rm -f ${RPM_BUILD_ROOT}/%{_rundir}/openldap-data/DB_CONFIG.example
|
rm -f %{buildroot}/%{_rundir}/openldap-data/DB_CONFIG.example
|
||||||
mv servers/slapd/back-sql/rdbms_depend servers/slapd/back-sql/examples
|
mv servers/slapd/back-sql/rdbms_depend servers/slapd/back-sql/examples
|
||||||
|
|
||||||
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcslapd
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcslapd
|
||||||
|
|
||||||
rm -f ${RPM_BUILD_ROOT}/%{_libdir}/openldap/*.a
|
rm -f %{buildroot}/%{_libdir}/openldap/*.a
|
||||||
rm -f ${RPM_BUILD_ROOT}/usr/share/man/man5/slapd-dnssrv.5
|
rm -f %{buildroot}/usr/share/man/man5/slapd-dnssrv.5
|
||||||
rm -f ${RPM_BUILD_ROOT}/usr/share/man/man5/slapd-ndb.5
|
rm -f %{buildroot}/usr/share/man/man5/slapd-ndb.5
|
||||||
rm -f ${RPM_BUILD_ROOT}/usr/share/man/man5/slapd-null.5
|
rm -f %{buildroot}/usr/share/man/man5/slapd-null.5
|
||||||
rm -f ${RPM_BUILD_ROOT}/usr/share/man/man5/slapd-passwd.5
|
rm -f %{buildroot}/usr/share/man/man5/slapd-passwd.5
|
||||||
rm -f ${RPM_BUILD_ROOT}/usr/share/man/man5/slapd-shell.5
|
rm -f %{buildroot}/usr/share/man/man5/slapd-shell.5
|
||||||
rm -f ${RPM_BUILD_ROOT}/usr/share/man/man5/slapd-tcl.5
|
rm -f %{buildroot}/usr/share/man/man5/slapd-tcl.5
|
||||||
# Remove *.la files, libtool does not handle this correct
|
# Remove *.la files, libtool does not handle this correct
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib*.la
|
rm -f %{buildroot}/%{_libdir}/lib*.la
|
||||||
|
|
||||||
# Make ldap_r the only copy in the system [rh#1370065].
|
# Make ldap_r the only copy in the system [rh#1370065].
|
||||||
# libldap.so is only for `gcc/ld -lldap`. Make no libldap-2.4.so.2.
|
# libldap.so is only for `gcc/ld -lldap`. Make no libldap-2.4.so.2.
|
||||||
rm -f "%{buildroot}/%{_libdir}"/libldap-2.4.so*
|
rm -f "%{buildroot}/%{_libdir}"/libldap-2.4.so*
|
||||||
ln -fs libldap_r.so "%{buildroot}/%{_libdir}/libldap.so"
|
ln -fs libldap_r.so "%{buildroot}/%{_libdir}/libldap.so"
|
||||||
gcc -shared -o "%{buildroot}/%{_libdir}/libldap-2.4.so.2" --no-as-needed \
|
gcc -shared -o "%{buildroot}/%{_libdir}/libldap-2.4.so.2" -Wl,--no-as-needed \
|
||||||
-Wl,-soname -Wl,libldap-2.4.so.2 -L "%{buildroot}/%{_libdir}" -lldap_r
|
-Wl,-soname -Wl,libldap-2.4.so.2 -L "%{buildroot}/%{_libdir}" -lldap_r
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
|
Loading…
Reference in New Issue
Block a user