]>
Commit | Line | Data |
---|---|---|
39ab6e12 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with static_libs # static library | |
4 | # | |
5 | Summary: Wayland EGL External Platform library | |
6 | Summary(pl.UTF-8): Biblioteka platformy zewnętrznej Wayland EGL | |
7 | Name: egl-wayland | |
ba00481c | 8 | Version: 1.1.6 |
39ab6e12 JB |
9 | Release: 1 |
10 | License: MIT | |
11 | Group: Libraries | |
12 | #Source0Download: https://github.com/NVIDIA/egl-wayland/releases | |
13 | Source0: https://github.com/NVIDIA/egl-wayland/archive/%{version}/%{name}-%{version}.tar.gz | |
ba00481c | 14 | # Source0-md5: f690aa88f03ab79ae5b6ec9ba08f46a5 |
39ab6e12 JB |
15 | Patch0: %{name}-pc.patch |
16 | URL: https://github.com/NVIDIA/egl-wayland | |
17 | BuildRequires: autoconf >= 2.64 | |
18 | BuildRequires: automake >= 1:1.11 | |
ba00481c | 19 | BuildRequires: eglexternalplatform >= 1.1 |
39ab6e12 JB |
20 | BuildRequires: eglexternalplatform < 2 |
21 | BuildRequires: libtool >= 2:2.2 | |
22 | BuildRequires: pkgconfig | |
23 | BuildRequires: wayland-devel | |
ba00481c | 24 | BuildRequires: wayland-egl-devel |
39ab6e12 JB |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
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. | |
31 | ||
32 | This library implements an EGL External Platform interface to work | |
33 | along with EGL drivers that support the external platform mechanism. | |
34 | ||
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. | |
39 | ||
40 | Ta biblioteka implementuje interfejs EGL External Platform do | |
41 | współpracy ze sterownikami EGL obsługującymi mechanizm platform | |
42 | zewnętrznych. | |
43 | ||
44 | %package devel | |
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 | |
51 | ||
52 | %description devel | |
53 | Header files for Wayland EGL library. | |
54 | ||
55 | %description devel -l pl.UTF-8 | |
56 | Pliki nagłówkowe biblioteki Wayland EGL. | |
57 | ||
58 | %package static | |
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} | |
63 | ||
64 | %description static | |
65 | Static Wayland EGL library. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczna biblioteka Wayland EGL. | |
69 | ||
70 | %prep | |
71 | %setup -q | |
72 | %patch0 -p1 | |
73 | ||
74 | %build | |
75 | %{__libtoolize} | |
76 | %{__aclocal} -I m4 | |
77 | %{__autoconf} | |
78 | %{__autoheader} | |
79 | %{__automake} | |
80 | %configure \ | |
81 | %{?with_static_libs:--enable-static} | |
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
90 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
91 | ||
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %post -p /sbin/ldconfig | |
96 | %postun -p /sbin/ldconfig | |
97 | ||
98 | %files | |
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 | |
103 | ||
104 | %files devel | |
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 | |
111 | ||
112 | %if %{with static_libs} | |
113 | %files static | |
114 | %defattr(644,root,root,755) | |
115 | %{_libdir}/libnvidia-egl-wayland.a | |
116 | %endif |