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: 62c7f8c9f53e3dd18df50bcc3f7ddd4c
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.1
20 BuildRequires: eglexternalplatform < 2
21 BuildRequires: libtool >= 2:2.2
22 BuildRequires: pkgconfig
23 BuildRequires: wayland-devel >= 1.15
24 BuildRequires: wayland-egl-devel
25 BuildRequires: wayland-protocols >= 1.8
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This is a work-in-progress implementation of a EGL External Platform
30 library to add client-side Wayland support to EGL on top of EGLDevice
31 and EGLStream families of extensions.
33 This library implements an EGL External Platform interface to work
34 along with EGL drivers that support the external platform mechanism.
36 %description -l pl.UTF-8
37 Ten pakiet zawiera będącą w trakcie tworzenia implementację biblioteki
38 platformy zewnętrznej EGL dodającą obsługę strony klienta Wayland do
39 EGL w oparciu o rodziny rozszerzeń EGLDevice i EGLStream.
41 Ta biblioteka implementuje interfejs EGL External Platform do
42 współpracy ze sterownikami EGL obsługującymi mechanizm platform
46 Summary: Header files for Wayland EGL library
47 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Wayland EGL
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
50 Requires: eglexternalplatform >= 1.0
51 Requires: eglexternalplatform < 2
54 Header files for Wayland EGL library.
56 %description devel -l pl.UTF-8
57 Pliki nagłówkowe biblioteki Wayland EGL.
60 Summary: Static Wayland EGL library
61 Summary(pl.UTF-8): Statyczna biblioteka Wayland EGL
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
66 Static Wayland EGL library.
68 %description static -l pl.UTF-8
69 Statyczna biblioteka Wayland EGL.
82 --disable-silent-rules \
83 %{?with_static_libs:--enable-static}
87 rm -rf $RPM_BUILD_ROOT
90 DESTDIR=$RPM_BUILD_ROOT
92 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
95 rm -rf $RPM_BUILD_ROOT
97 %post -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
101 %defattr(644,root,root,755)
102 %doc COPYING README.md
103 %attr(755,root,root) %{_libdir}/libnvidia-egl-wayland.so.*.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libnvidia-egl-wayland.so.1
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libnvidia-egl-wayland.so
109 %{_pkgconfigdir}/wayland-eglstream.pc
110 # protocol description
111 %{_datadir}/wayland-eglstream
112 %{_npkgconfigdir}/wayland-eglstream-protocols.pc
114 %if %{with static_libs}
116 %defattr(644,root,root,755)
117 %{_libdir}/libnvidia-egl-wayland.a