File smb4k.spec of Package smb4k-kf5
#
# spec file for package smb4k
#
# Copyright (c) 2022 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: smb4k
Version: 3.2.5
Release: 0
Summary: Network Neighborhood Browser and Samba Share Mounting Utility
License: GPL-2.0-or-later
URL: https://apps.kde.org/smb4k
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
Source99: smb4k-rpmlintrc
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: gettext
BuildRequires: pkgconfig
BuildRequires: cmake(KF5Auth)
BuildRequires: cmake(KF5Completion)
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5ConfigWidgets)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5Crash)
BuildRequires: cmake(KF5DBusAddons)
BuildRequires: cmake(KF5DNSSD)
BuildRequires: cmake(KF5DocTools)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5IconThemes)
BuildRequires: cmake(KF5JobWidgets)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5Notifications)
BuildRequires: cmake(KF5Plasma)
BuildRequires: cmake(KF5Solid)
BuildRequires: cmake(KF5Wallet)
BuildRequires: cmake(KF5WidgetsAddons)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(KF5XmlGui)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5PrintSupport)
BuildRequires: cmake(Qt5Qml)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: pkgconfig(smbclient)
Requires: cifs-utils
Requires: samba-client
Recommends: smb4k-doc = %{version}
Recommends: smb4k-lang = %{version}
Recommends: rsync
%description
Smb4K is an advanced network neighborhood browser and Samba share mounting
utility for the KDE Software Compilation. It scans your network neighborhood
for all available workgroups, servers and shares and can mount all desired
shares to your local file system.
%package doc
Summary: Documentation for smb4k
Requires: smb4k = %{version}
%description doc
Smb4K is an advanced network neighborhood browser and Samba share mounting
utility for the KDE Software Compilation. It scans your network neighborhood
for all available workgroups, servers and shares and can mount all desired
shares to your local file system.
This package provides the documentation for smb4k.
%lang_package
%prep
%autosetup -p1
%build
%cmake_kf5 -d build
%cmake_build
%install
%kf5_makeinstall -C build
%fdupes %{buildroot}
%find_lang %{name}
%find_lang smb4k-core %{name}.lang
%find_lang plasma_applet_org.kde.smb4kqml %{name}.lang
%{kf5_find_htmldocs}
%ldconfig_scriptlets
%files
%license LICENSES/*
%doc AUTHORS BUGS ChangeLog README.md
%dir %{_kf5_sharedir}/kconf_update
%dir %{_kf5_sharedir}/plasma/plasmoids
%{_kf5_applicationsdir}/org.kde.smb4k.desktop
%{_kf5_appstreamdir}/org.kde.smb4k.appdata.xml
%{_kf5_appstreamdir}/org.kde.smb4kqml.appdata.xml
%{_kf5_bindir}/smb4k
%{_kf5_configkcfgdir}/smb4k.kcfg
%{_kf5_dbuspolicydir}/org.kde.smb4k.mounthelper.conf
%{_kf5_iconsdir}/hicolor/*/apps/smb4k.png
%{_kf5_iconsdir}/oxygen/*/apps/smb4k.png
%{_kf5_kxmlguidir}/smb4k/
%{_kf5_libdir}/libsmb4kcore.so
%{_kf5_notifydir}/smb4k.notifyrc
%{_kf5_plugindir}/smb4k*.so
%{_kf5_qmldir}/org/kde/smb4k/
%{_kf5_servicesdir}/plasma-applet-org.kde.smb4kqml.desktop
%{_kf5_sharedir}/dbus-1/system-services/org.kde.smb4k.mounthelper.service
%{_kf5_sharedir}/kconf_update/*
%{_kf5_sharedir}/plasma/plasmoids/org.kde.smb4kqml/
%{_kf5_sharedir}/polkit-1/actions/org.kde.smb4k.mounthelper.policy
%if %{pkg_vcmp kf5-filesystem >= 20220307}
%{_libexecdir}/kauth/mounthelper
%else
%dir %{_kf5_libdir}/libexec/kauth
%{_kf5_libdir}/libexec/kauth/mounthelper
%endif
%files lang -f %{name}.lang
%files doc
%doc %lang(en) %{_kf5_htmldir}/en/smb4k/
%changelog