File bind-dyndb-ldap.spec of Package bind-dyndb-ldap
#
# spec file for package bind-dyndb-ldap
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: bind-dyndb-ldap
Version: 10.0
Release: 0
Summary: LDAP back-end plug-in for BIND
License: GPL-2.0+
Group: Productivity/Networking/DNS/Servers
Url: https://fedorahosted.org/bind-dyndb-ldap/
Source0: https://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.bz2
Source1: https://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.bz2.asc
Source2: %{name}.keyring
# PATCH-FIX-UPSTREAM fix-initializers.patch -- Fix initializers, needed for gcc < 5
Patch0: fix-initializers.patch
# PATCH-FIX-UPSTREAM bind-dyndb-ldap-gcc7.patch dimstar@opensuse.org -- Fix build with gcc7: error: duplicate 'const' declaration specifier
Patch1: bind-dyndb-ldap-gcc7.patch
BuildRequires: bind-devel >= 9.10.0
BuildRequires: cyrus-sasl-devel
BuildRequires: krb5-devel
BuildRequires: libtool
BuildRequires: openldap2-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(uuid)
Requires: bind >= 9.10.1
%description
This package provides an LDAP back-end plug-in for BIND. It features
support for dynamic updates and internal caching, to lift the load
off of your LDAP server.
%prep
%setup -q
%if 0%{?suse_version} <= 1320
%patch0 -p1
%endif
%patch1 -p1
# If building by osc, remove date and time from the code:
if test -f %{_sourcedir}/%{name}.changes ; then
LANG=C sed -i "$(date +'s/compiled at " __TIME__ " " __DATE__/last change %%T %%b %%e %%Y"/' -r %{_sourcedir}/%{name}.changes)" src/zone_manager.c
fi
%build
%configure\
--docdir=%{_docdir}/%{name} \
--libdir=%{_prefix}/lib
make %{?_smp_mflags}
%install
%make_install
rm %{buildroot}%{_prefix}/lib/bind/ldap.la
install -m0644 COPYING %{buildroot}%{_docdir}/%{name}/
%files
%defattr(-,root,root,-)
%doc %{_docdir}/%{name}
%dir %{_prefix}/lib/bind
%{_prefix}/lib/bind/ldap.so
%changelog