-
Notifications
You must be signed in to change notification settings - Fork 0
/
egl-x11.spec
80 lines (66 loc) · 2.28 KB
/
egl-x11.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
%global commit0 6092c1f6cff86702bbecedb918b214a5dca362f9
%global date 20241113
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
#global tag %{version}
Name: egl-x11
Version: 1.0.0%{!?tag:^%{date}git%{shortcommit0}}
Release: 2%{?dist}
Summary: NVIDIA XLib and XCB EGL Platform Library
License: Apache-2.0
URL: https://github.com/NVIDIA/egl-x11
%if 0%{?tag:1}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
%else
Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
%endif
# Allow building with an older meson:
Patch0: egl-x11-meson-0.58.patch
BuildRequires: gcc
BuildRequires: meson
BuildRequires: pkgconfig(eglexternalplatform) >= 1.2
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(gbm) >= 21.3.0
BuildRequires: pkgconfig(libdrm) >= 2.4.99
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(x11-xcb)
# Minimum version 1.17.0 for explicit sync support (Fedora 40+):
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-dri3)
BuildRequires: pkgconfig(xcb-present)
# Required for directory ownership
Requires: libglvnd-egl%{?_isa}
%description
This is an EGL platform library for the NVIDIA driver to support XWayland via
xlib (using EGL_KHR_platform_x11) or xcb (using EGL_EXT_platform_xcb).
%prep
%if 0%{?tag:1}
%autosetup -p1
%else
%autosetup -p1 -n %{name}-%{commit0}
%endif
%build
%meson \
-D xcb=true \
-D xlib=enabled
%meson_build
%install
%meson_install
rm -fv %{buildroot}%{_libdir}/*.so
%files
%license LICENSE
%doc README.md
%{_libdir}/libnvidia-egl-xcb.so.1
%{_libdir}/libnvidia-egl-xcb.so.1.0.0
%{_libdir}/libnvidia-egl-xlib.so.1
%{_libdir}/libnvidia-egl-xlib.so.1.0.0
%{_datadir}/egl/egl_external_platform.d/20_nvidia_xcb.json
%{_datadir}/egl/egl_external_platform.d/20_nvidia_xlib.json
%changelog
* Mon Nov 18 2024 Simone Caronni <[email protected]> - 1.0.0^20241113git6092c1f-2
- Update to latest snapshot.
* Wed Sep 18 2024 Simone Caronni <[email protected]> - 1.0.0^20240916gitf13be94-1
- Update to latest snapshot.
* Thu Sep 12 2024 Simone Caronni <[email protected]> - 0.1^20240910git4b333d9-1
- Update to latest packaging guidelines for snapshots.
* Wed Sep 04 2024 Simone Caronni <[email protected]> - 0.1-1.20240828git2be2296
- First build.