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: f690aa88f03ab79ae5b6ec9ba08f46a5
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
24 BuildRequires: wayland-egl-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This is a work-in-progress implementation of a EGL External Platform
29 library to add client-side Wayland support to EGL on top of EGLDevice
30 and EGLStream families of extensions.
32 This library implements an EGL External Platform interface to work
33 along with EGL drivers that support the external platform mechanism.
35 %description -l pl.UTF-8
36 Ten pakiet zawiera będącą w trakcie tworzenia implementację biblioteki
37 platformy zewnętrznej EGL dodającą obsługę strony klienta Wayland do
38 EGL w oparciu o rodziny rozszerzeń EGLDevice i EGLStream.
40 Ta biblioteka implementuje interfejs EGL External Platform do
41 współpracy ze sterownikami EGL obsługującymi mechanizm platform
45 Summary: Header files for Wayland EGL library
46 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Wayland EGL
47 Group: Development/Libraries
48 Requires: %{name} = %{version}-%{release}
49 Requires: eglexternalplatform >= 1.0
50 Requires: eglexternalplatform < 2
53 Header files for Wayland EGL library.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki Wayland EGL.
59 Summary: Static Wayland EGL library
60 Summary(pl.UTF-8): Statyczna biblioteka Wayland EGL
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
65 Static Wayland EGL library.
67 %description static -l pl.UTF-8
68 Statyczna biblioteka Wayland EGL.
81 %{?with_static_libs:--enable-static}
85 rm -rf $RPM_BUILD_ROOT
88 DESTDIR=$RPM_BUILD_ROOT
90 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
93 rm -rf $RPM_BUILD_ROOT
95 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
99 %defattr(644,root,root,755)
100 %doc COPYING README.md
101 %attr(755,root,root) %{_libdir}/libnvidia-egl-wayland.so.*.*.*
102 %attr(755,root,root) %ghost %{_libdir}/libnvidia-egl-wayland.so.1
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libnvidia-egl-wayland.so
107 %{_pkgconfigdir}/wayland-eglstream.pc
108 # protocol description
109 %{_datadir}/wayland-eglstream
110 %{_npkgconfigdir}/wayland-eglstream-protocols.pc
112 %if %{with static_libs}
114 %defattr(644,root,root,755)
115 %{_libdir}/libnvidia-egl-wayland.a