File hyprpaper.spec of Package failed_hyprpaper

#
# spec file for package hyprpaper
#
# Copyright (c) 2024 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 __builder ninja
Name:           hyprpaper
Summary:        Wayland wallpaper utility with IPC controls
Version:        0.7.1
Release:        0
License:        BSD-3-Clause
URL:            https://github.com/hyprwm/hyprpaper
# Use direct tarball URL -- avoid fragment renaming which can lead to
# filenames containing '#' in the downloaded SOURCES directory on OBS.
Source0:        https://github.com/hyprwm/hyprpaper/archive/refs/tags/v%{version}.tar.gz
BuildRequires:  Mesa-libGLESv3-devel
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  ninja
BuildRequires:  pkgconfig(gtk-layer-shell-0)
BuildRequires:  pkgconfig(hyprland-protocols)
BuildRequires:  pkgconfig(hyprlang) >= 0.2.0
BuildRequires:  pkgconfig(hyprutils) >= 0.2.0
BuildRequires:  pkgconfig(hyprwayland-scanner)
BuildRequires:  pkgconfig(libglvnd)
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  pkgconfig(libmagic)
BuildRequires:  pkgconfig(libwebp)
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(pangocairo)
BuildRequires:  pkgconfig(wayland-protocols) >= 1.24
BuildRequires:  pkgconfig(wayland-server) >= 1.20.0
BuildRequires:  pkgconfig(wlroots-0.18) >= 0.18.0
BuildRequires:  pkgconfig(xwaylandproto)

%description
Hyprpaper is a wallpaper utility for Hyprland.
It supports IPC controls for Hyprland and various
image formats.

%prep
# Use autosetup to unpack sources, then apply a tiny in-tree fix to match
# the wayland proxy API used by the generated headers in the buildroot.
%autosetup -p1 || true
# Some versions expect wl_proxy* instead of wl_resource*; perform a safe replace
if [ -f src/Hyprpaper.cpp ]; then
  sed -i 's/wl_resource\*/wl_proxy*/g' src/Hyprpaper.cpp || true
fi

%build
%cmake
%cmake_build

%install
%cmake_install

%files
%_bindir/hyprpaper
%license LICENSE

%changelog
openSUSE Build Service is sponsored by