File ldapvi.spec of Package ldapvi

# spec file for package ldapvi
# Copyright (c) 2016 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

Name:           ldapvi
Version:        1.7
Release:        0.0
License:        GPL-2.0
Summary:        An interactive LDAP editor for Unix terminals
Group:          Productivity/Networking/LDAP/Utilities
# PATCH-FIX-UPSTREAM 0001-renamed-getline.patch
Patch1:         0001-renamed-getline.patch
# PATCH-FIX-UPSTREAM 0001-declare-some-void-functions-to-be-really-void.patch
Patch2:         0001-declare-some-void-functions-to-be-really-void.patch
# PATCH-FIX-UPSTREAM 0001-return-0-instead-of-nothing.patch
Patch3:         0001-return-0-instead-of-nothing.patch
# PATCH-FIX-UPSTREAM 0001-Improved-subprocess.patch
Patch4:         0001-Improved-subprocess.patch
# PATCH-FIX-UPSTREAM 0002-improved-subprocess-2.patch
Patch5:         0002-improved-subprocess-2.patch
Patch6:         0006-correct-gpl2-text.patch
BuildRequires:  cyrus-sasl-devel
BuildRequires:  libxslt
BuildRequires:  openssl-devel
BuildRequires:  pkgconfig
BuildRequires:  popt-devel
BuildRequires:  readline-devel
BuildRequires:  pkgconfig(glib-2.0)
%if 0%{?suse_version}
BuildRequires:  openldap2-devel
%if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} || 0%{?mandriva_version}
BuildRequires:  openldap-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

ldapvi is an interactive LDAP client for Unix terminals.
Using it, you can update LDAP entries with a text editor.
Think of it as vipw(1) for LDAP.

%setup -q
%patch0 -p0
%patch1 -p2
%patch2 -p2
%patch3 -p2
%patch4 -p2
%patch5 -p2
%patch6 -p1

cd manual
make manual.html


%defattr(-, root, root, 0755)
%doc NEWS COPYING manual/manual.html manual/manual.css manual/bg.png

openSUSE Build Service is sponsored by