2022-08-22 09:40:49 +02:00
|
|
|
#
|
|
|
|
# spec file for package hyprland
|
|
|
|
#
|
2024-01-07 18:59:43 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2024-02-12 12:13:59 +01:00
|
|
|
# Copyright (c) 2022-24 Florian "sp1rit" <packaging@sp1rit.anonaddy.me>
|
2022-08-22 09:40:49 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-05-30 12:44:25 +02:00
|
|
|
%bcond_without devel
|
|
|
|
|
2022-08-22 09:40:49 +02:00
|
|
|
Name: hyprland
|
2024-03-18 14:23:47 +01:00
|
|
|
Version: 0.37.1
|
2022-08-22 09:40:49 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Dynamic tiling Wayland compositor
|
|
|
|
License: BSD-3-Clause
|
|
|
|
URL: https://hyprland.org/
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2024-03-18 14:23:47 +01:00
|
|
|
Patch1: fixed-missing-return-statement.patch
|
2023-03-15 18:11:33 +01:00
|
|
|
BuildRequires: cmake
|
2022-08-22 09:40:49 +02:00
|
|
|
BuildRequires: gcc-c++ >= 11
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: glslang-devel
|
2023-01-08 19:22:47 +01:00
|
|
|
BuildRequires: jq
|
2022-08-22 09:40:49 +02:00
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(egl)
|
|
|
|
BuildRequires: pkgconfig(gbm) >= 17.1.0
|
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(glesv2)
|
2022-11-16 23:25:23 +01:00
|
|
|
BuildRequires: pkgconfig(hwdata)
|
2024-03-18 14:23:47 +01:00
|
|
|
BuildRequires: pkgconfig(hyprcursor)
|
2024-03-01 01:33:38 +01:00
|
|
|
BuildRequires: pkgconfig(hyprlang)
|
2023-03-15 18:11:33 +01:00
|
|
|
BuildRequires: pkgconfig(libdisplay-info)
|
2023-12-05 19:37:08 +01:00
|
|
|
BuildRequires: pkgconfig(libdrm) >= 2.4.118
|
2022-08-22 09:40:49 +02:00
|
|
|
BuildRequires: pkgconfig(libinput) >= 1.14.0
|
|
|
|
BuildRequires: pkgconfig(libseat) >= 0.2.0
|
|
|
|
BuildRequires: pkgconfig(libudev)
|
2023-04-09 09:10:33 +02:00
|
|
|
BuildRequires: pkgconfig(pango)
|
|
|
|
BuildRequires: pkgconfig(pangocairo)
|
2022-12-12 20:18:50 +01:00
|
|
|
BuildRequires: pkgconfig(pixman-1) >= 0.42.0
|
2024-01-07 18:59:43 +01:00
|
|
|
BuildRequires: pkgconfig(tomlplusplus)
|
2022-08-22 09:40:49 +02:00
|
|
|
BuildRequires: pkgconfig(vulkan) >= 1.2.182
|
|
|
|
BuildRequires: pkgconfig(wayland-client)
|
|
|
|
BuildRequires: pkgconfig(wayland-protocols) >= 1.26
|
|
|
|
BuildRequires: pkgconfig(wayland-scanner)
|
2023-05-03 23:32:37 +02:00
|
|
|
BuildRequires: pkgconfig(wayland-server) >= 1.22
|
2022-08-22 09:40:49 +02:00
|
|
|
BuildRequires: pkgconfig(xcb)
|
|
|
|
BuildRequires: pkgconfig(xcb-icccm)
|
|
|
|
BuildRequires: pkgconfig(xcb-renderutil)
|
|
|
|
BuildRequires: pkgconfig(xkbcommon)
|
|
|
|
BuildRequires: pkgconfig(xwayland)
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: Mesa-libGLESv3-devel
|
|
|
|
%bcond_without xcb_errors
|
|
|
|
%else
|
|
|
|
%bcond_with xcb_errors
|
|
|
|
%endif
|
|
|
|
%if %{with xcb_errors}
|
|
|
|
BuildRequires: pkgconfig(xcb-errors)
|
|
|
|
%endif
|
2024-03-23 15:59:08 +01:00
|
|
|
Recommends: %{name}-wallpapers
|
2023-05-30 12:44:25 +02:00
|
|
|
%if %{with devel}
|
|
|
|
Suggests: %{name}-devel
|
|
|
|
%endif
|
2022-08-22 09:40:49 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Hyprland is a dynamic tiling Wayland compositor based on wlroots
|
|
|
|
that doesn't sacrifice on its looks.
|
|
|
|
|
|
|
|
It supports multiple layouts, fancy effects, has a very flexible IPC
|
|
|
|
model allowing for a lot of customization, and more.
|
|
|
|
|
2024-03-23 15:59:08 +01:00
|
|
|
%package wallpapers
|
|
|
|
Summary: Hyprland wallpapers
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description wallpapers
|
|
|
|
Additional wallpapers for hyprland.
|
|
|
|
|
2023-05-30 12:44:25 +02:00
|
|
|
%if %{with devel}
|
|
|
|
%package devel
|
|
|
|
Summary: Files required to build Hyprland plugins
|
|
|
|
Requires: %{name}
|
2023-12-05 19:37:08 +01:00
|
|
|
BuildArch: noarch
|
2023-05-30 12:44:25 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the neccessary files that are required to
|
|
|
|
build plugins for hyprland.
|
|
|
|
%endif
|
|
|
|
|
2022-08-22 09:40:49 +02:00
|
|
|
%prep
|
2023-03-15 18:11:33 +01:00
|
|
|
%autosetup -p1
|
2022-08-22 09:40:49 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%meson \
|
2023-05-03 23:32:37 +02:00
|
|
|
-Dwlroots:xcb-errors=%{?with_xcb_errors:enabled}%{!?with_xcb_errors:disabled}
|
2022-08-22 09:40:49 +02:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
2023-05-30 12:44:25 +02:00
|
|
|
%meson_install --tags runtime,man%{?with_devel:,devel}
|
|
|
|
%if %{with devel}
|
|
|
|
rm %{buildroot}/%{_libdir}/libwlroots.a %{buildroot}/%{_libdir}/pkgconfig/wlroots.pc
|
2024-02-12 12:13:59 +01:00
|
|
|
rm -rf %{buildroot}/%{_includedir}/wlr/
|
2023-05-30 12:44:25 +02:00
|
|
|
%endif
|
2022-08-22 09:40:49 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/Hyprland
|
|
|
|
%{_bindir}/hyprctl
|
2024-01-07 18:59:43 +01:00
|
|
|
%{_bindir}/hyprpm
|
2024-03-23 15:59:08 +01:00
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}/hyprland.conf
|
2022-08-22 09:40:49 +02:00
|
|
|
%dir %{_datadir}/wayland-sessions/
|
|
|
|
%{_datadir}/wayland-sessions/%{name}.desktop
|
2023-09-03 19:37:34 +02:00
|
|
|
%dir %{_datadir}/xdg-desktop-portal
|
|
|
|
%{_datadir}/xdg-desktop-portal/%{name}-portals.conf
|
2022-08-24 09:54:45 +02:00
|
|
|
%{_mandir}/man1/Hyprland.*
|
|
|
|
%{_mandir}/man1/hyprctl.*
|
2022-08-22 09:40:49 +02:00
|
|
|
|
2024-03-23 15:59:08 +01:00
|
|
|
%files wallpapers
|
|
|
|
%{_datadir}/%{name}/wall*
|
|
|
|
|
2023-05-30 12:44:25 +02:00
|
|
|
%if %{with devel}
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/%{name}
|
2023-07-14 19:00:34 +02:00
|
|
|
%{_datadir}/pkgconfig/%{name}.pc
|
2023-05-30 12:44:25 +02:00
|
|
|
%endif
|
|
|
|
|
2022-08-22 09:40:49 +02:00
|
|
|
%changelog
|