3 %bcond_with static_libs # static library
5 Summary: Wayland EGL External Platform library
6 Summary(pl.UTF-8): Biblioteka platformy zewnętrznej Wayland EGL
12 #Source0Download: https://github.com/NVIDIA/egl-wayland/releases
13 Source0: https://github.com/NVIDIA/egl-wayland/archive/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: 10158315632b9ea045e8287b7f85298a
15 Patch0: %{name}-pc.patch
16 URL: https://github.com/NVIDIA/egl-wayland
17 BuildRequires: autoconf >= 2.64
18 BuildRequires: automake >= 1:1.11
19 BuildRequires: eglexternalplatform >= 1.0
20 BuildRequires: eglexternalplatform < 2
21 BuildRequires: libtool >= 2:2.2
22 BuildRequires: pkgconfig
23 BuildRequires: wayland-devel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This is a work-in-progress implementation of a EGL External Platform
28 library to add client-side Wayland support to EGL on top of EGLDevice
29 and EGLStream families of extensions.
31 This library implements an EGL External Platform interface to work
32 along with EGL drivers that support the external platform mechanism.
34 %description -l pl.UTF-8
35 Ten pakiet zawiera będącą w trakcie tworzenia implementację biblioteki
36 platformy zewnętrznej EGL dodającą obsługę strony klienta Wayland do
37 EGL w oparciu o rodziny rozszerzeń EGLDevice i EGLStream.
39 Ta biblioteka implementuje interfejs EGL External Platform do
40 współpracy ze sterownikami EGL obsługującymi mechanizm platform
44 Summary: Header files for Wayland EGL library
45 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Wayland EGL
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
48 Requires: eglexternalplatform >= 1.0
49 Requires: eglexternalplatform < 2
52 Header files for Wayland EGL library.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki Wayland EGL.
58 Summary: Static Wayland EGL library
59 Summary(pl.UTF-8): Statyczna biblioteka Wayland EGL
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 Static Wayland EGL library.
66 %description static -l pl.UTF-8
67 Statyczna biblioteka Wayland EGL.
80 %{?with_static_libs:--enable-static}
84 rm -rf $RPM_BUILD_ROOT
87 DESTDIR=$RPM_BUILD_ROOT
89 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
92 rm -rf $RPM_BUILD_ROOT
94 %post -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
98 %defattr(644,root,root,755)
99 %doc COPYING README.md
100 %attr(755,root,root) %{_libdir}/libnvidia-egl-wayland.so.*.*.*
101 %attr(755,root,root) %ghost %{_libdir}/libnvidia-egl-wayland.so.1
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libnvidia-egl-wayland.so
106 %{_pkgconfigdir}/wayland-eglstream.pc
107 # protocol description
108 %{_datadir}/wayland-eglstream
109 %{_npkgconfigdir}/wayland-eglstream-protocols.pc
111 %if %{with static_libs}
113 %defattr(644,root,root,755)
114 %{_libdir}/libnvidia-egl-wayland.a