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