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
This commit is contained in:
commit
e72b3acc05
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
18
_service
Normal file
18
_service
Normal file
@ -0,0 +1,18 @@
|
||||
<!-- vim: set ft=xml ts=4 sw=4 noet: -->
|
||||
<services>
|
||||
<service name="obs_scm" mode="manual">
|
||||
<param name="url">https://github.com/hyprwm/Hyprland.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="filename">hyprland</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="revision">@PARENT_TAG@</param>
|
||||
<param name="submodule">enable</param>
|
||||
</service>
|
||||
<service name="tar" mode="buildtime" />
|
||||
<service name="recompress" mode="buildtime">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="buildtime" />
|
||||
</services>
|
37
gethostbyname.patch
Normal file
37
gethostbyname.patch
Normal file
@ -0,0 +1,37 @@
|
||||
From c7dff774e4b36d7068f91fd4db7c21484938d7cd Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Florian=20=22sp1rit=22=E2=80=8B?= <sp1ritCS@protonmail.com>
|
||||
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" <sp1ritCS@protonmail.com>
|
||||
---
|
||||
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
|
||||
|
3
hyprland-0.10.3beta.obscpio
Normal file
3
hyprland-0.10.3beta.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:65fe47feafce894354071088f7b0dd0e76d93a185461a93a4cfccac0c30fac20
|
||||
size 4719628
|
4
hyprland.changes
Normal file
4
hyprland.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 20 22:27:43 UTC 2022 - Florian "spirit" <packaging@sp1rit.anonaddy.me>
|
||||
|
||||
- Initial packaging
|
4
hyprland.obsinfo
Normal file
4
hyprland.obsinfo
Normal file
@ -0,0 +1,4 @@
|
||||
name: hyprland
|
||||
version: 0.10.3beta
|
||||
mtime: 1661018849
|
||||
commit: 61aa4ff70ea6805090ead06a2ebae435a5bdef3e
|
93
hyprland.spec
Normal file
93
hyprland.spec
Normal file
@ -0,0 +1,93 @@
|
||||
#
|
||||
# spec file for package hyprland
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2022 Florian "sp1rit" <packaging@sp1rit.anonaddy.me>
|
||||
#
|
||||
# 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
|
31
old-meson.patch
Normal file
31
old-meson.patch
Normal file
@ -0,0 +1,31 @@
|
||||
From e622def9b4325ab4507544168b05e74da5713112 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Florian=20=22sp1rit=22=E2=80=8B?= <sp1ritCS@protonmail.com>
|
||||
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 <compiler>.get_version() to <compiler>.version()
|
||||
|
||||
Signed-off-by: Florian "sp1rit" <sp1ritCS@protonmail.com>
|
||||
---
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user