File smb4k.spec of Package smb4k
Name: smb4k
Version: 4.0.4
Release: 0.obs.1
Summary: Advanced network neighborhood browser for Samba
License: GPLv2+
URL: https://smb4k.sourceforge.io
Group: Productivity/Networking/Samba
Source0: smb4k-4.0.4.tar.xz
Source1: smb4k-rpmlintrc
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: kf6-rpm-macros
BuildRequires: pkg-config
BuildRequires: extra-cmake-modules
BuildRequires: gettext-runtime
BuildRequires: pkg-config
BuildRequires: fdupes
%if 0%{?fedora}
BuildRequires: pinentry-qt
BuildRequires: generic-logos
%endif
BuildRequires: cmake(Qt6Core) >= 6.6.2
BuildRequires: cmake(Qt6Gui) >= 6.6.2
BuildRequires: cmake(Qt6Network) >= 6.6.2
BuildRequires: cmake(Qt6PrintSupport) >= 6.6.2
BuildRequires: cmake(Qt6Qml) >= 6.6.2
BuildRequires: cmake(Qt6Widgets) >= 6.6.2
BuildRequires: cmake(KF6Auth) >= 6.0.0
BuildRequires: cmake(KF6Completion) >= 6.0.0
BuildRequires: cmake(KF6Config) >= 6.0.0
BuildRequires: cmake(KF6ConfigWidgets) >= 6.0.0
BuildRequires: cmake(KF6CoreAddons) >= 6.0.0
BuildRequires: cmake(KF6Crash) >= 6.0.0
BuildRequires: cmake(KF6DBusAddons) >= 6.0.0
BuildRequires: cmake(KF6DNSSD) >= 6.0.0
BuildRequires: cmake(KF6DocTools) >= 6.0.0
BuildRequires: cmake(KF6I18n) >= 6.0.0
BuildRequires: cmake(KF6IconThemes) >= 6.0.0
BuildRequires: cmake(KF6JobWidgets) >= 6.0.0
BuildRequires: cmake(KF6KIO) >= 6.0.0
BuildRequires: cmake(KF6Notifications) >= 6.0.0
BuildRequires: cmake(KF6Solid) >= 6.0.0
BuildRequires: cmake(KF6StatusNotifierItem) >= 6.0.0
BuildRequires: cmake(KF6Wallet) >= 6.0.0
BuildRequires: cmake(KF6WidgetsAddons) >= 6.0.0
BuildRequires: cmake(KF6WindowSystem) >= 6.0.0
BuildRequires: cmake(KF6XmlGui) >= 6.0.0
BuildRequires: cmake(Plasma) >= 6.0.0
BuildRequires: cmake(Qt6Keychain) >= 0.14.2
BuildRequires: cmake(KDSoap) >= 2.0.0
BuildRequires: cmake(KDSoapWSDiscoveryClient) >= 0.4
BuildRequires: pkgconfig(smbclient)
Requires: cifs-utils
Requires: kf6-kirigami
Recommends: rsync
Provides: %{name}-doc = %{version}
Provides: %{name}-lang = %{version}
%description
Smb4K is an advanced network neighborhood browser and Samba share mounting
utility. It is based on the KDE Frameworks, QtKeychain, Samba's client
library (libsmbclient) and, optionally, the KDSoap WS-Discovery client. It
scans your network neighborhood for all available workgroups, servers and
shares and can mount all desired shares to your local file system. It is
released under the terms of the GNU General Public License, version 2
(GPL v2+).
Features:
- Scanning for (active) workgroups, hosts, and shares using Samba's client
library, DNS Service Discovery (DNS-SD) and, optionally, Web Services
Dynamic Discovery (WS-Discovery)
- Support of the CIFS and SMB3 file system under Linux® as well as the
SMBFS file system under BSD
- Mounting and unmounting of shares
- Access to the files of a mounted share using a file manager or terminal
- Auto-detection of external mounts and unmounts
- Remounting of previously used shares on program start
- Miscellaneous information about remote network items and mounted shares
- Network search
- Preview of the contents of a remote share
- Default login
- Special handling of home shares
- Ability to bookmark favorite shares
- System tray widget
- Support of advanced mount options
- Support of printer shares
- Support of several secure storage solutions for the login credentials
via QtKeychain
- Synchronization of a remote share with a local copy and vice versa
- Ability to define custom settings for individual servers and shares
- Hardware support through the Solid device integration framework, the
KDBusAddons convenience classes and the Qt Network module
- Wake-On-LAN capabilities
- Plasmoid for desktop integration
- Profiles for different network neighborhood setups
%prep
%setup -q
%build
%cmake_kf6 -DSMB4K_INSTALL_PLASMOID=ON -DSMB4K_WITH_WS_DISCOVERY=ON
%cmake_build
%install
%cmake_install
%if 0%{?sle_version}
# Taken from openSUSE's spec file
%suse_update_desktop_file -r org.kde.smb4k Qt KDE System Network
%endif
%fdupes -s %{buildroot}
%files
%defattr(-,root,root)
%license LICENSES/*
%doc AUTHORS BUGS ChangeLog README.md AUTHORS.license BUGS.license ChangeLog.license README.license
%{_kf6_bindir}/smb4k
%{_kf6_libexecdir}/kauth/mounthelper
%{_kf6_libdir}/libsmb4kcore.so
%{_kf6_libdir}/libsmb4kdialogs.so
%{_kf6_archdatadir}/
%{_kf6_datadir}/applications/org.kde.smb4k.desktop
%{_kf6_datadir}/locale/
%{_kf6_datadir}/icons/
%dir %{_kf6_datadir}/plasma/plasmoids
%{_kf6_datadir}/plasma/plasmoids/org.kde.smb4kqml/
%{_kf6_datadir}/dbus-1/
%{_kf6_datadir}/config.kcfg/smb4k.kcfg
%{_kf6_datadir}/knotifications6/smb4k.notifyrc
%{_kf6_datadir}/polkit-1/actions/org.kde.smb4k.mounthelper.policy
%{_kf6_metainfodir}/
%{_docdir}/HTML/
%changelog
* Thu Jul 31 2025 Alexander Reinholdt <alexander.reinholdt@kdemail.net> 4.0.4-0.obs.1
- New upstream version.
* Mon Jun 16 2025 Alexander Reinholdt <alexander.reinholdt@kdemail.net> 4.0.3-0.obs.1
- New upstream version.
* Wed May 15 2025 Alexander Reinholdt <alexander.reinholdt@kdemail.net> 4.0.2-0.obs.1
- New upstream version.
* Wed May 14 2025 Alexander Reinholdt <alexander.reinholdt@kdemail.net> 4.0.1-0.obs.1
- New upstream version.
* Thu Feb 06 2025 Alexander Reinholdt <alexander.reinholdt@kdemail.net> 4.0.0-0.obs.1
- New upstream version.