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