File msktutil.spec of Package msktutil
#
# spec file for package msktutil
#
# Copyright (c) 2015 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 http://bugs.opensuse.org/
#
Name: msktutil
Version: 1.1
Release: 0
Summary: Tool for managing kerberos keytabs with an Active Directory server
License: GPL-2.0+
Group: System/Management
Url: https://github.com/msktutil/msktutil
Source: https://github.com/msktutil/msktutil/releases/download/v%{version}/%{name}-%{version}.tar.bz2
Source2: https://github.com/msktutil/msktutil/releases/download/v%{version}/%{name}-%{version}.tar.bz2.asc
Source3: %{name}.keyring
BuildRequires: cyrus-sasl-devel
BuildRequires: gcc-c++
BuildRequires: krb5-devel
BuildRequires: openldap2-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Msktutil is a program for interoperability with Active Directory that can:
* Create a computer account in Active Directory
* Create a system Kerberos keytab
* Add and remove principals to and from that keytab
* Change the computer account's password
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
chmod -x %{buildroot}/%{_mandir}/man1/%{name}.1*
%files
%defattr (-,root,root)
%doc ChangeLog README LICENSE
%{_sbindir}/%{name}
%{_mandir}/man1/%{name}.1*
%changelog