File smb4k.spec of Package smb4k
#
# spec file for package smb4k
#
# Copyright (c) 2021 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.1.1
Release: 0
Summary: Network Neighborhood Browser and Samba Share Mounting Utility
License: GPL-2.0-or-later
Group: Productivity/Networking/Samba
URL: https://apps.kde.org/smb4k
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
Source1: %{name}-rpmlintrc
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: gettext
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
# needed for WS_DISCOVERY
BuildRequires: cmake(KDSoap)
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: %{name}-doc = %{version}
Recommends: %{name}-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
Group: Documentation/HTML
Requires: %{name} = %{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
# Maybe build with -DSMB4K_WITH_WS_DISCOVERY=ON?
%cmake_kf5 -d build -- -DSMB4K_WITH_WS_DISCOVERY=ON
%cmake_build
%install
%kf5_makeinstall -C build
%suse_update_desktop_file -r org.kde.smb4k Qt KDE System Network
%fdupes -s %{buildroot}
%find_lang %{name}
%find_lang smb4k-core %{name}.lang
%find_lang plasma_applet_org.kde.smb4kqml %{name}.lang
%{kf5_find_htmldocs}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING
%doc AUTHORS BUGS ChangeLog README
# For Leap 15.2 only
%dir %{_kf5_configkcfgdir}
%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}/libexec/kauth/mounthelper
%{_kf5_libdir}/libsmb4kcore.so
%{_kf5_notifydir}/smb4k.notifyrc
%{_kf5_plugindir}/smb4k*.so
%{_kf5_qmldir}/org/kde/smb4k/
%if %{pkg_vcmp plasma-framework-devel < 5.84}
%{_kf5_servicesdir}/plasma-applet-org.kde.smb4kqml.desktop
%endif
%{_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
%files lang -f %{name}.lang
%files doc
%doc %lang(en) %{_kf5_htmldir}/en/smb4k/
%changelog