%global major 0.1.1 Name: whatcable-linux Version: 0.1.1 Release: 1%{?dist} Summary: What can this USB cable actually do? License: MIT License URL: https://github.com/Zetaphor/whatcable-linux Source0: https://github.com/Zetaphor/whatcable-linux/releases/download/v0.1.1/whatcable-linux-%{version}.tar.gz BuildRequires: cmake BuildRequires: extra-cmake-modules BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qtdeclarative-devel BuildRequires: kf6-kirigami-devel BuildRequires: kf6-ki18n-devel BuildRequires: kf6-kcoreaddons-devel BuildRequires: kf6-kpackage-devel BuildRequires: libplasma-devel BuildRequires: plasma-workspace-devel BuildRequires: systemd-devel %description A KDE Plasma 6 system tray widget and CLI tool that tells you, in plain English, what each USB device plugged into your Linux machine can actually do. WhatCable-Linux is a Linux port of WhatCable, a macOS menu bar app by Darryl Morley. This port expands the original USB-C focus to cover all USB devices, while preserving the rich USB-C Power Delivery diagnostics from the original. %prep %autosetup -n %{name}-%{version} %build %cmake -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_PREFIX=/usr %cmake_build %install %cmake_install %check %files %license LICENSE %doc README.md %{_bindir}/whatcable-linux %{_libdir}/qt6/qml/org/kde/whatcable/libwhatcable-plasmoid-plugin.so %{_libdir}/qt6/qml/org/kde/whatcable/qmldir %{_datadir}/plasma/plasmoids/org.kde.whatcable/metadata.json %{_datadir}/plasma/plasmoids/org.kde.whatcable/contents/ui/CompactView.qml %{_datadir}/plasma/plasmoids/org.kde.whatcable/contents/ui/DeviceCard.qml %{_datadir}/plasma/plasmoids/org.kde.whatcable/contents/ui/main.qml %{_datadir}/plasma/plasmoids/org.kde.whatcable/contents/ui/PowerSourceList.qml %{_datadir}/plasma/plasmoids/org.kde.whatcable/plugin/DeviceModel.cpp %{_datadir}/plasma/plasmoids/org.kde.whatcable/plugin/DeviceModel.h %{_datadir}/plasma/plasmoids/org.kde.whatcable/plugin/qmldir %{_datadir}/plasma/plasmoids/org.kde.whatcable/plugin/WhatCablePlugin.cpp %{_datadir}/plasma/plasmoids/org.kde.whatcable/plugin/WhatCablePlugin.h %changelog * Wed Jul 15 2026 Aram Minasyan - .0.1.1-1 - Initial RPM package