File lldap-cli.spec of Package lldap-cli

%define pkg_name lldap-cli

Name:      %{pkg_name}
Version:   0.0.1737287904~e383494
Release:   0
License:   GPL-3.0
Summary:   An unofficial command line interface for LLDAP
Url:       https://github.com/Zepmann/lldap-cli
Group:     Applications/System
BuildArch: noarch
Source0:   %{pkg_name}-%{version}.tar.gz
Patch0:    fix-config-path.patch

BuildRequires: tar

Requires: bash
Requires: coreutils
Requires: grep
Requires: sed
Requires: jq
Requires: curl
Requires: lldap-set-password

Suggests: lldap

BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root

%description
LLDAP uses GraphQL to offer an HTTP-based API. This API is used by an included web-based user interface. Unfortunately, LLDAP lacks a command-line interface, which is a necessity for any serious administrator. LLDAP-CLI translates CLI commands to GraphQL API calls.

%prep
%{__tar} -xf %{SOURCE0} --strip-components 1

%patch -P 0 -p 1

%build


%install
install -m 755 -d %{buildroot}%{_bindir}
install -D -m 750 %{_builddir}/%{pkg_name} %{buildroot}%{_bindir}/%{pkg_name}

%check


%pre


%preun


%post


%postun


%files
%defattr(555,root,root,-)
%{_bindir}/%{pkg_name}
openSUSE Build Service is sponsored by