File plasma-smart-video-wallpaper-reborn.spec of Package plasma-smart-video-wallpaper-reborn

#
# spec file for package plasma-smart-video-wallpaper-reborn
#
# Copyright (c) 2025 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/
#

%global kf6_version 6.0.0
%define pythons python3
%if 0%{?fedora}
%global debug_package %{nil}
%endif

Name:           plasma-smart-video-wallpaper-reborn
Version:        2.8.0
Release:        0%{?dist}
Summary:        Plasma 6 Wallpaper plugin to play videos on your Desktop/Lock Screen
License:        GPL-3.0-only
URL:            https://github.com/luisbocanegra/%{name}
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  cmake >= 3.16
BuildRequires:  extra-cmake-modules >= %{kf6_version}
BuildRequires:  cmake(Plasma)
BuildRequires:  pkgconfig(ocl-icd)
%if 0%{?fedora}
BuildRequires:  generic-logos
%endif
BuildRequires:  libvpl
BuildRequires:  cmake(PlasmaPotdProvider)
BuildRequires:  cmake(Qt6Multimedia)
BuildArch:      noarch

%description
Plasma 6 Wallpaper plugin to play videos on your Desktop/Lock Screen

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%cmake
%cmake_build

%install
%cmake_install

sed -Ei "s:^(#!.*)env (bash)$:\1\2:" %{buildroot}%{_datadir}/plasma/wallpapers/luisbocanegra.smart.video.wallpaper.reborn/contents/ui/tools/gdbus_get_signal.sh
chmod +x %{buildroot}%{_datadir}/plasma/wallpapers/luisbocanegra.smart.video.wallpaper.reborn/contents/ui/tools/gdbus_get_signal.sh

%files
%doc README.md
%license LICENSE
%{_datadir}/plasma/wallpapers/luisbocanegra.smart.video.wallpaper.reborn

%if (0%{?fedora} && 0%{?fedora} < 43) || (0%{?suse_version} && 0%{?suse_version} < 1699)
%{_datadir}/metainfo/*
%endif

%changelog
openSUSE Build Service is sponsored by