commit e72b3acc05f24fd233e97f13343a502e0d3a2a636f86953f827d46beb0e7d878 Author: Michael Vetter Date: Mon Aug 22 07:40:49 2022 +0000 Accepting request 998519 from home:sp1rit Hyprland is a new wayland compositor/wm with fancy effects OBS-URL: https://build.opensuse.org/request/show/998519 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/hyprland?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..8c2dee5 --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + + https://github.com/hyprwm/Hyprland.git + git + hyprland + @PARENT_TAG@ + v(.*) + @PARENT_TAG@ + enable + + + + *.tar + xz + + + diff --git a/gethostbyname.patch b/gethostbyname.patch new file mode 100644 index 0000000..8e98abf --- /dev/null +++ b/gethostbyname.patch @@ -0,0 +1,37 @@ +From c7dff774e4b36d7068f91fd4db7c21484938d7cd Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20=22sp1rit=22=E2=80=8B?= +Date: Sun, 21 Aug 2022 00:24:26 +0200 +Subject: [PATCH] dropped deprecated gethostbyname check +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Done to avoid the rpmlint warning: +hyprland.x86_64: W: binary-or-shlib-calls-gethostbyname /usr/bin/hyprctl +The binary calls gethostbyname. Please port the code to use getaddrinfo. + +Signed-off-by: Florian "sp1rit"​ +--- + hyprctl/main.cpp | 6 ------ + 1 file changed, 6 deletions(-) + +diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp +index db8f48a..820e9fe 100644 +--- a/hyprctl/main.cpp ++++ b/hyprctl/main.cpp +@@ -50,12 +50,6 @@ void request(std::string arg) { + return; + } + +- const auto SERVER = gethostbyname("localhost"); +- +- if (!SERVER) { +- std::cout << "Couldn't get host (2)"; +- return; +- } + + // get the instance signature + auto instanceSig = getenv("HYPRLAND_INSTANCE_SIGNATURE"); +-- +2.37.2 + diff --git a/hyprland-0.10.3beta.obscpio b/hyprland-0.10.3beta.obscpio new file mode 100644 index 0000000..f3d2797 --- /dev/null +++ b/hyprland-0.10.3beta.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65fe47feafce894354071088f7b0dd0e76d93a185461a93a4cfccac0c30fac20 +size 4719628 diff --git a/hyprland.changes b/hyprland.changes new file mode 100644 index 0000000..78a4b30 --- /dev/null +++ b/hyprland.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Aug 20 22:27:43 UTC 2022 - Florian "spirit" + +- Initial packaging diff --git a/hyprland.obsinfo b/hyprland.obsinfo new file mode 100644 index 0000000..6364414 --- /dev/null +++ b/hyprland.obsinfo @@ -0,0 +1,4 @@ +name: hyprland +version: 0.10.3beta +mtime: 1661018849 +commit: 61aa4ff70ea6805090ead06a2ebae435a5bdef3e diff --git a/hyprland.spec b/hyprland.spec new file mode 100644 index 0000000..dde161b --- /dev/null +++ b/hyprland.spec @@ -0,0 +1,93 @@ +# +# spec file for package hyprland +# +# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2022 Florian "sp1rit" +# +# 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 +Version: 0 +Release: 0 +Summary: Dynamic tiling Wayland compositor +License: BSD-3-Clause +URL: https://hyprland.org/ +Source0: %{name}-%{version}.tar.xz +Patch1: gethostbyname.patch +Patch2: old-meson.patch +BuildRequires: gcc-c++ >= 11 +BuildRequires: git +BuildRequires: glslang-devel +BuildRequires: meson +BuildRequires: pkgconfig +BuildRequires: pkgconfig(cairo) +BuildRequires: pkgconfig(egl) +BuildRequires: pkgconfig(gbm) >= 17.1.0 +BuildRequires: pkgconfig(gl) +BuildRequires: pkgconfig(glesv2) +BuildRequires: pkgconfig(libdrm) >= 2.4.112 +BuildRequires: pkgconfig(libinput) >= 1.14.0 +BuildRequires: pkgconfig(libseat) >= 0.2.0 +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(pango) +BuildRequires: pkgconfig(pangocairo) +BuildRequires: pkgconfig(pixman-1) +BuildRequires: pkgconfig(vulkan) >= 1.2.182 +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-protocols) >= 1.26 +BuildRequires: pkgconfig(wayland-scanner) +BuildRequires: pkgconfig(wayland-server) >= 1.21 +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 + +%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. + +%prep +%autosetup -p1 + +%build +%meson \ + %{?with_xcb_errors:-Dwlroots:xcb-errors=enabled} +%meson_build + +%install +%meson_install --tags runtime,man + +%files +%license LICENSE +%doc README.md +%{_bindir}/Hyprland +%{_bindir}/hyprctl +%{_datadir}/%{name}/ +%dir %{_datadir}/wayland-sessions/ +%{_datadir}/wayland-sessions/%{name}.desktop + +%changelog diff --git a/old-meson.patch b/old-meson.patch new file mode 100644 index 0000000..9950ee8 --- /dev/null +++ b/old-meson.patch @@ -0,0 +1,31 @@ +From e622def9b4325ab4507544168b05e74da5713112 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20=22sp1rit=22=E2=80=8B?= +Date: Sun, 21 Aug 2022 00:32:55 +0200 +Subject: [PATCH] improve compatability with older meson versions +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +- changed .get_version() to .version() + +Signed-off-by: Florian "sp1rit"​ +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 9435333..58ef93a 100644 +--- a/meson.build ++++ b/meson.build +@@ -15,7 +15,7 @@ if cpp_compiler.has_argument('-std=c++23') + elif cpp_compiler.has_argument('-std=c++2b') + add_global_arguments('-std=c++2b', language: 'cpp') + else +- error('Could not configure current C++ compiler (' + cpp_compiler.get_id() + ' ' + cpp_compiler.get_version() + ') with required C++ standard (C++23)') ++ error('Could not configure current C++ compiler (' + cpp_compiler.get_id() + ' ' + cpp_compiler.version() + ') with required C++ standard (C++23)') + endif + + GIT_BRANCH = run_command('git', 'rev-parse', '--abbrev-ref', 'HEAD', check: false).stdout().strip() +-- +2.37.2 +