]>
Commit | Line | Data |
---|---|---|
ed3567b5 JP |
1 | Summary: A modular Wayland compositor library |
2 | Name: wlroots | |
3212cd0c | 3 | Version: 0.15.1 |
6e181c2e | 4 | Release: 1 |
ed3567b5 JP |
5 | License: MIT |
6 | Group: Libraries | |
3212cd0c JP |
7 | Source0: https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/%{version}/downloads/%{name}-%{version}.tar.gz |
8 | # Source0-md5: d847f52dd4be602918fdfa25e00aef27 | |
378d42d3 | 9 | Patch0: x32.patch |
6e181c2e | 10 | URL: https://gitlab.freedesktop.org/wlroots/wlroots |
ed3567b5 | 11 | BuildRequires: EGL-devel |
5be68975 | 12 | BuildRequires: Mesa-libgbm-devel >= 21.1.0 |
ed3567b5 | 13 | BuildRequires: OpenGLESv2-devel |
6e181c2e JP |
14 | BuildRequires: Vulkan-Loader-devel >= 1.2.182 |
15 | BuildRequires: glslang >= 11.0.0 | |
16 | BuildRequires: libdrm-devel >= 2.4.109 | |
17 | BuildRequires: libinput-devel >= 1.19.0 | |
5be68975 | 18 | BuildRequires: libseat-devel >= 0.2.0 |
ed3567b5 | 19 | BuildRequires: libxcb-devel |
6e181c2e | 20 | BuildRequires: meson >= 0.58.1 |
ed3567b5 JP |
21 | BuildRequires: ninja |
22 | BuildRequires: pixman-devel | |
23 | BuildRequires: pkgconfig | |
24 | BuildRequires: rpmbuild(macros) >= 1.736 | |
ed3567b5 | 25 | BuildRequires: udev-devel |
6e181c2e JP |
26 | BuildRequires: wayland-devel >= 1.20 |
27 | BuildRequires: wayland-protocols >= 1.24 | |
28 | BuildRequires: xcb-util-errors-devel | |
29 | BuildRequires: xcb-util-renderutil-devel | |
ed3567b5 JP |
30 | BuildRequires: xcb-util-wm-devel |
31 | BuildRequires: xorg-lib-libxkbcommon-devel | |
0fe6cd47 | 32 | BuildRequires: xorg-xserver-Xwayland-devel |
5be68975 | 33 | Requires: Mesa-libgbm >= 21.1.0 |
6e181c2e JP |
34 | Requires: Vulkan-Loader >= 1.2.182 |
35 | Requires: libdrm >= 2.4.109 | |
36 | Requires: libinput >= 1.19.0 | |
3145cf15 | 37 | Requires: libseat >= 0.2.0 |
6e181c2e | 38 | Requires: wayland >= 1.20 |
ed3567b5 JP |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %description | |
42 | Pluggable, composable, unopinionated modules for building a Wayland | |
43 | compositor; or about 50,000 lines of code you were going to write | |
44 | anyway. | |
45 | - wlroots provides backends that abstract the underlying display and | |
46 | input hardware, including KMS/DRM, libinput, Wayland, X11, and | |
47 | headless backends, plus any custom backends you choose to write, which | |
48 | can all be created or destroyed at runtime and used in concert with | |
49 | each other. | |
50 | - wlroots provides unopinionated, mostly standalone implementations of | |
51 | many Wayland interfaces, both from wayland.xml and various protocol | |
52 | extensions. We also promote the standardization of portable extensions | |
53 | across many compositors. | |
54 | - wlroots provides several powerful, standalone, and optional tools | |
55 | that implement components common to many compositors, such as the | |
56 | arrangement of outputs in physical space. | |
57 | - wlroots provides an Xwayland abstraction that allows you to have | |
58 | excellent Xwayland support without worrying about writing your own X11 | |
59 | window manager on top of writing your compositor. | |
60 | - wlroots provides a renderer abstraction that simple compositors can | |
61 | use to avoid writing GL code directly, but which steps out of the way | |
62 | when your needs demand custom rendering code. | |
63 | ||
64 | %package devel | |
65 | Summary: Header files for wlroots library | |
66 | Group: Development/Libraries | |
67 | Requires: %{name} = %{version}-%{release} | |
68 | Requires: EGL-devel | |
5be68975 | 69 | Requires: Mesa-libgbm-devel >= 21.1.0 |
ed3567b5 | 70 | Requires: OpenGLESv2-devel |
6e181c2e JP |
71 | Requires: Vulkan-Loader-devel >= 1.2.182 |
72 | Requires: libdrm-devel >= 2.4.109 | |
73 | Requires: libinput-devel >= 1.19.0 | |
74 | Requires: libseat-devel >= 0.2.0 | |
ed3567b5 JP |
75 | Requires: libxcb-devel |
76 | Requires: pixman-devel | |
1b63c53c | 77 | Requires: systemd-devel >= 1:237 |
ed3567b5 | 78 | Requires: udev-devel |
6e181c2e JP |
79 | Requires: wayland-devel >= 1.20 |
80 | Requires: wayland-protocols >= 1.24 | |
81 | Requires: xcb-util-errors-devel | |
82 | Requires: xcb-util-renderutil-devel | |
ed3567b5 JP |
83 | Requires: xcb-util-wm-devel |
84 | Requires: xorg-lib-libxkbcommon-devel | |
85 | ||
86 | %description devel | |
87 | Header files for wlroots library. | |
88 | ||
89 | %package static | |
90 | Summary: Static wlroots library | |
91 | Group: Development/Libraries | |
92 | Requires: %{name}-devel = %{version}-%{release} | |
93 | ||
94 | %description static | |
95 | Static wlroots library. | |
96 | ||
97 | %prep | |
98 | %setup -q | |
378d42d3 | 99 | %patch0 -p1 |
ed3567b5 JP |
100 | |
101 | %build | |
0fe6cd47 | 102 | %meson build \ |
6f4d7c7f | 103 | -Dexamples=false \ |
0fe6cd47 | 104 | -Dxwayland=enabled |
ed3567b5 JP |
105 | %ninja_build -C build |
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | %ninja_install -C build | |
110 | ||
111 | %clean | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
114 | %post -p /sbin/ldconfig | |
115 | %postun -p /sbin/ldconfig | |
116 | ||
117 | %files | |
118 | %defattr(644,root,root,755) | |
119 | %doc CONTRIBUTING.md README.md | |
6e181c2e | 120 | %attr(755,root,root) %{_libdir}/libwlroots.so.10 |
ed3567b5 JP |
121 | |
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
124 | %attr(755,root,root) %{_libdir}/libwlroots.so | |
125 | %{_includedir}/wlr | |
126 | %{_pkgconfigdir}/wlroots.pc | |
127 | ||
128 | %files static | |
129 | %defattr(644,root,root,755) | |
130 | %{_libdir}/libwlroots.a |