File admc.spec of Package admc
#
# spec file for package admc
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: admc
Version: 0.11.2+git.12.023670c
Release: 0
Summary: A user-friendly tool for Linux to work with Active Directory
License: GPL-3.0-or-later
URL: https://github.com/altlinuxteam/admc
Group: Productivity/Networking/Samba
Source: admc-%{version}.tar.bz2
BuildRequires: cmake >= 3.12
BuildRequires: gcc-c++
BuildRequires: libQt5Core-devel
BuildRequires: libQt5Test-devel
BuildRequires: libQt5Widgets-devel
BuildRequires: libqt5-qttools-devel
BuildRequires: cyrus-sasl-devel
BuildRequires: doxygen
BuildRequires: glib2-devel
BuildRequires: krb5-devel
BuildRequires: libcmocka-devel
BuildRequires: libndr-standard-devel >= 4.12
BuildRequires: libsmbclient-devel
BuildRequires: libuuid-devel
BuildRequires: openldap2-devel
BuildRequires: pcre-devel
BuildRequires: samba-client-libs
BuildRequires: samba-devel
%description
ADMC was created in response to the need for a user-friendly tool for Linux to work with Active Directory domain and Group Policy.
%package test
Summary: Tests for ADMC
License: GPL-3.0-or-later
Group: Applications/System
%description test
This package contains tests for ADMC.
%package gpgui
Summary: Group Policy Template editor GUI
License: GPL-3.0-or-later
Group: Productivity/Networking/Samba
%description gpgui
ADMC was created in response to the need for a user-friendly tool for Linux to work with Active Directory domain and Group Policy.
%prep
%setup -q
%build
#%define build_ldflags -L/usr/lib64/samba -lsamba-security-samba4 -lndr-krb5pac -lndr-nbt -lndr-samba-samba4 -lndr-samba4
%cmake -DCMAKE_INSTALL_LIBDIR=%_libdir
%cmake_build VERBOSE=1
%install
%cmake_install
%files
%doc README.md
%_datadir/admc.qch
%_bindir/admc
%_libdir/libadldap.so
%{_mandir}/man1/admc*
%files test
%_bindir/admc_test_object_menu
%_bindir/admc_test_unlock_edit
%_bindir/admc_test_upn_edit
%_bindir/admc_test_string_edit
%_bindir/admc_test_country_edit
%_bindir/admc_test_gplink
%_bindir/admc_test_ad_interface
%files gpgui
%_bindir/gpgui
%_libdir/libgptbackend.so
%changelog