File realmd.spec of Package realmd

# spec file for package realmd
# 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

Name:           realmd
Version:        0.16.3
Release:        0
Summary:        AD integration detection
License:        LGPL-2.1+
Group:          System/GUI/GNOME

BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gettext-tools
BuildRequires:  glib2-devel >= 2.36
BuildRequires:  intltool
BuildRequires:  krb5-devel
BuildRequires:  libpackagekit-glib2-devel
BuildRequires:  libtool
BuildRequires:  openldap2-devel
BuildRequires:  polkit-devel
BuildRequires:  systemd
BuildRequires:  xmlto
Recommends:     %{name}-lang

This packages contains realmd.

Realmd is an on demand system DBus service, which allows
callers to configure network authentication and domain
membership in a standard way. realmd discovers information
about the domain or realm automatically and does not require
complicated configuration in order to join a domain or realm.

realmd configures sssd or winbind to do the actual network
authentication and user account lookups.


%setup -q

# krb5-config is hidden
%configure --with-distro=suse --with-systemd-unit-dir=%{_prefix}/lib/systemd/system --with-systemd-journal=no
make %{?_smp_mflags}


%find_lang %{name}
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}

if [ -f %{_localstatedir}/lib/systemd/migrated/%{name} ]; then
%service_add_pre %{name}.service

%service_add_post %{name}.service

%service_del_preun %{name}.service

%service_del_postun %{name}.service

%config %{_sysconfdir}/dbus-1/system.d/org.freedesktop.realmd.conf


%files lang -f %{name}.lang

openSUSE Build Service is sponsored by