[packages/egl-wayland] - new - added pc patch to move arch-specific .pc file to arch-specific pkgconfig dir

qboosh qboosh at pld-linux.org
Thu Jun 28 22:00:58 CEST 2018


commit 39ab6e128d1216ec51c2c803a5ba7243afe9b4b3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jun 28 22:02:17 2018 +0200

    - new
    - added pc patch to move arch-specific .pc file to arch-specific pkgconfig dir

 egl-wayland-pc.patch |  13 ++++++
 egl-wayland.spec     | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 128 insertions(+)
---
diff --git a/egl-wayland.spec b/egl-wayland.spec
new file mode 100644
index 0000000..73a18be
--- /dev/null
+++ b/egl-wayland.spec
@@ -0,0 +1,115 @@
+#
+# Conditional build:
+%bcond_with	static_libs	# static library
+#
+Summary:	Wayland EGL External Platform library
+Summary(pl.UTF-8):	Biblioteka platformy zewnętrznej Wayland EGL
+Name:		egl-wayland
+Version:	1.0.3
+Release:	1
+License:	MIT
+Group:		Libraries
+#Source0Download: https://github.com/NVIDIA/egl-wayland/releases
+Source0:	https://github.com/NVIDIA/egl-wayland/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	10158315632b9ea045e8287b7f85298a
+Patch0:		%{name}-pc.patch
+URL:		https://github.com/NVIDIA/egl-wayland
+BuildRequires:	autoconf >= 2.64
+BuildRequires:	automake >= 1:1.11
+BuildRequires:	eglexternalplatform >= 1.0
+BuildRequires:	eglexternalplatform < 2
+BuildRequires:	libtool >= 2:2.2
+BuildRequires:	pkgconfig
+BuildRequires:	wayland-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a work-in-progress implementation of a EGL External Platform
+library to add client-side Wayland support to EGL on top of EGLDevice
+and EGLStream families of extensions.
+
+This library implements an EGL External Platform interface to work
+along with EGL drivers that support the external platform mechanism.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera będącą w trakcie tworzenia implementację biblioteki
+platformy zewnętrznej EGL dodającą obsługę strony klienta Wayland do
+EGL w oparciu o rodziny rozszerzeń EGLDevice i EGLStream.
+
+Ta biblioteka implementuje interfejs EGL External Platform do
+współpracy ze sterownikami EGL obsługującymi mechanizm platform
+zewnętrznych.
+
+%package devel
+Summary:	Header files for Wayland EGL library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki Wayland EGL
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	eglexternalplatform >= 1.0
+Requires:	eglexternalplatform < 2
+
+%description devel
+Header files for Wayland EGL library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Wayland EGL.
+
+%package static
+Summary:	Static Wayland EGL library
+Summary(pl.UTF-8):	Statyczna biblioteka Wayland EGL
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static Wayland EGL library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka Wayland EGL.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	%{?with_static_libs:--enable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING README.md
+%attr(755,root,root) %{_libdir}/libnvidia-egl-wayland.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libnvidia-egl-wayland.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libnvidia-egl-wayland.so
+%{_pkgconfigdir}/wayland-eglstream.pc
+# protocol description
+%{_datadir}/wayland-eglstream
+%{_npkgconfigdir}/wayland-eglstream-protocols.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libnvidia-egl-wayland.a
+%endif
diff --git a/egl-wayland-pc.patch b/egl-wayland-pc.patch
new file mode 100644
index 0000000..f45d92c
--- /dev/null
+++ b/egl-wayland-pc.patch
@@ -0,0 +1,13 @@
+--- egl-wayland-1.0.3/Makefile.am.orig	2018-06-28 21:23:32.231426943 +0200
++++ egl-wayland-1.0.3/Makefile.am	2018-06-28 21:23:36.914760221 +0200
+@@ -50,7 +50,9 @@
+     wayland-eglstream.pc            \
+     wayland-eglstream-protocols.pc
+ 
+-noarch_pkgconfig_DATA = $(wayland_eglstream_pkgconfig_files)
++noarch_pkgconfig_DATA = wayland-eglstream-protocols.pc
++pkgconfigdir= $(libdir)/pkgconfig
++pkgconfig_DATA = wayland-eglstream.pc
+ 
+ CLEANFILES =                                  \
+     $(libnvidia_egl_wayland_la_built_sources) \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/egl-wayland.git/commitdiff/39ab6e128d1216ec51c2c803a5ba7243afe9b4b3



More information about the pld-cvs-commit mailing list