]> git.pld-linux.org Git - packages/egl-wayland.git/blob - egl-wayland.spec
73a18be0013afc7741fa6f8f37a1bc82c558c874
[packages/egl-wayland.git] / egl-wayland.spec
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
8 Version:        1.0.3
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
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)
25
26 %description
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.
30
31 This library implements an EGL External Platform interface to work
32 along with EGL drivers that support the external platform mechanism.
33
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.
38
39 Ta biblioteka implementuje interfejs EGL External Platform do
40 współpracy ze sterownikami EGL obsługującymi mechanizm platform
41 zewnętrznych.
42
43 %package devel
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
50
51 %description devel
52 Header files for Wayland EGL library.
53
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki Wayland EGL.
56
57 %package static
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}
62
63 %description static
64 Static Wayland EGL library.
65
66 %description static -l pl.UTF-8
67 Statyczna biblioteka Wayland EGL.
68
69 %prep
70 %setup -q
71 %patch0 -p1
72
73 %build
74 %{__libtoolize}
75 %{__aclocal} -I m4
76 %{__autoconf}
77 %{__autoheader}
78 %{__automake}
79 %configure \
80         %{?with_static_libs:--enable-static}
81 %{__make}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85
86 %{__make} install \
87         DESTDIR=$RPM_BUILD_ROOT
88
89 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %post   -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
96
97 %files
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
102
103 %files devel
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
110
111 %if %{with static_libs}
112 %files static
113 %defattr(644,root,root,755)
114 %{_libdir}/libnvidia-egl-wayland.a
115 %endif
This page took 0.049934 seconds and 2 git commands to generate.