File ldapsmb.spec of Package ldapsmb

#
# spec file for package ldapsmb
#
# Copyright (c) 2013 SUSE LINUX Products 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:           ldapsmb
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
BuildRequires:  autoconf
%endif
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
%define build_make_smp_mflags %{?_smp_mflags}
%else
%define build_make_smp_mflags %{?jobs:-j%jobs}
%endif
Version:        1.34b
Release:        60
License:        GPL-2.0+
Url:            http://www.samba.org/~gd/ldapsmb/
Summary:        Tool to administer Samba's LDAP backend
Group:          Productivity/Networking/Samba
Source:         https://www.samba.org/~gd/ldapsmb/ldapsmb-%{version}.tar.bz2
BuildArch:      noarch
Patch:          ldapsmb-VERSION.diff
Patch1:         ldapsmb-DOCS.in.diff
Requires:       perl-ldap
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This tool aims to simplify the administration of a Samba Domain
Controller that uses the ldapsam passdb backend.

%prep
%setup -n %{name}-%{version} -q
%patch -p1
%patch1 -p1

%build
./autogen.sh
rm ldapsmb
make %{build_make_smp_mflags} all doc

%install
mkdir -p %{buildroot}/%{_sbindir}/ \
	%{buildroot}/%{_mandir}/man5
install -m 0700 ldapsmb %{buildroot}/%{_sbindir}/
cp -a ldapsmb.5 %{buildroot}/%{_mandir}/man5

%files
%defattr(-,root,root)
%{_sbindir}/ldapsmb
%{_mandir}/man5/ldapsmb.5.*

%changelog
openSUSE Build Service is sponsored by