File sc_ldap_tools.spec of Package sc_ldap_tools

#
# spec file for package sc_ldap_utils
# 
# Copyright (c) 2005-2016  dass IT GmbH, Koeln, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# $Id: sc_ldap_tools.spec 5698 2020-09-01 14:30:37Z joergs $
#
Name:           sc_ldap_tools
URL:            http://www.dass-it.de/
License:        GPL-2.0-or-later
Group:          Productivity/Networking/LDAP/Clients
Autoreqprov:    on
Summary:        SmartClient tools for LDAP access
Version: 0.4.5716
Release:        0
Requires:       perl perl-SmartClient
#BuildRequires:  nrpe
#BuildRequires:  nagios-plugins
BuildRequires:  nagios-rpm-macros
Source: sc_ldap_tools_0.4.5716.orig.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
SmartClient tool for LDAP access

Authors:
--------
       Joerg Steffens, dass IT

%prep
%setup -c



%build

%install
mkdir -p $RPM_BUILD_ROOT/usr/bin/
install -m 755 usr/bin/* $RPM_BUILD_ROOT/usr/bin/
# link to legacy program name
ln -s ldapsearch.pl $RPM_BUILD_ROOT/usr/bin/ldap_simple_search.pl

mkdir -p $RPM_BUILD_ROOT/%{nagios_plugindir}
install -m 755 usr/lib/nagios/plugins/* $RPM_BUILD_ROOT/%{nagios_plugindir}


%files
%defattr(-,root,root)
/usr/bin/*
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/*
openSUSE Build Service is sponsored by