File hyprland-plugins.spec of Package hyprland-plugins

#
# spec file for package hyprland-plugins
#
# 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/
#


Name:           hyprland-plugins
Version:        0.49.0
Release:        0
Summary:        Official plugins for Hyprland
License:        BSD-3-Clause
URL:            https://github.com/hyprwm/hyprland-plugins
Source0:        https://github.com/hyprwm/hyprland-plugins/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch1:         https://github.com/hyprwm/hyprland-plugins/compare/v0.49.0...v0.49.0-fix.patch#/0.49.0.patch
BuildRequires:  gcc-c++
BuildRequires:  Mesa-libGLESv3-devel 
BuildRequires:  Mesa-libGLESv2-devel 
BuildRequires:  Mesa-libGLESv1_CM-devel 
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(aquamarine)
BuildRequires:  pkgconfig(hyprgraphics)
BuildRequires:  pkgconfig(hyprland)
BuildRequires:  pkgconfig(hyprlang)
BuildRequires:  pkgconfig(hyprutils)
BuildRequires:  pkgconfig(libdrm)
BuildRequires:  pkgconfig(libinput)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(pangocairo)
BuildRequires:  pkgconfig(pixman-1)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(xkbcommon)
BuildRequires:  pkgconfig(xcb-icccm)

%description
* borders-plus-plus adds one or two additional borders to windows
* csgo-vulkan-fix fixes custom resolutions on CS:GO with -vulkan
* hyprbars adds title bars to windows
* hyprexpo adds an expo-like workspace overview
* hyprtrails adds smooth trails behind moving windows
* hyprwinwrap is a clone of xwinwrap, for making any app the wallpaper
* xtra-dispatchers adds some new dispatchers

%prep
%autosetup -p1

%build
export CXXFLAGS="%{optflags}"
export CFLAGS="%{optflags}"
for plugin in */ ; do
%make_build -C ${plugin} all
done

%install
install -D -m 0755 -t %{buildroot}%{_libdir}/hyprland/plugins/ */*.so

%files
%license LICENSE
%doc README.md
%dir %{_libdir}/hyprland/
%{_libdir}/hyprland/plugins/

%changelog
openSUSE Build Service is sponsored by