[packages/eglexternalplatform] - updated to 1.2, install using meson (added noarch patch from Fedora to keep proper pkgconfigdir)
qboosh
qboosh at pld-linux.org
Fri Sep 6 21:59:27 CEST 2024
commit adc06d2956ec89e703f0ce6bbd33dae2366ef567
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Sep 6 21:55:17 2024 +0200
- updated to 1.2, install using meson (added noarch patch from Fedora to keep proper pkgconfigdir)
eglexternalplatform-noarch.patch | 13 +++++++++++++
eglexternalplatform.spec | 23 +++++++++++++++--------
2 files changed, 28 insertions(+), 8 deletions(-)
---
diff --git a/eglexternalplatform.spec b/eglexternalplatform.spec
index f475978..06df3a7 100644
--- a/eglexternalplatform.spec
+++ b/eglexternalplatform.spec
@@ -1,15 +1,18 @@
Summary: EGL External Platform Interface
Summary(pl.UTF-8): Interfejs EGL External Platform
Name: eglexternalplatform
-Version: 1.1
+Version: 1.2
Release: 1
License: MIT
Group: Development/Libraries
#Source0Download: https://github.com/NVIDIA/eglexternalplatform/releases
Source0: https://github.com/NVIDIA/eglexternalplatform/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: ca1c152789955332cf315a9934742be2
+# Source0-md5: ad353dea7891a494986ff50a7e7f4b87
+Patch0: %{name}-noarch.patch
URL: https://github.com/NVIDIA/eglexternalplatform
-BuildRequires: rpmbuild(macros) >= 1.446
+BuildRequires: meson
+BuildRequires: ninja >= 1.5
+BuildRequires: rpmbuild(macros) >= 1.736
Requires: EGL-devel
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,13 +40,17 @@ czy EGL_KHR_platform_gbm.
%prep
%setup -q
+%patch0 -p1
+
+%build
+%meson build
+
+%ninja_build -C build
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_includedir}/EGL,%{_npkgconfigdir}}
-cp -p interface/*.h $RPM_BUILD_ROOT%{_includedir}/EGL
-cp -p eglexternalplatform.pc $RPM_BUILD_ROOT%{_npkgconfigdir}
+%ninja_install -C build
%clean
rm -rf $RPM_BUILD_ROOT
@@ -51,6 +58,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc COPYING README.md
-%attr(755,root,root) %{_includedir}/EGL/eglexternalplatform.h
-%attr(755,root,root) %{_includedir}/EGL/eglexternalplatformversion.h
+%attr(755,root,root) %{_includedir}/eglexternalplatform.h
+%attr(755,root,root) %{_includedir}/eglexternalplatformversion.h
%{_npkgconfigdir}/eglexternalplatform.pc
diff --git a/eglexternalplatform-noarch.patch b/eglexternalplatform-noarch.patch
new file mode 100644
index 0000000..f438e0c
--- /dev/null
+++ b/eglexternalplatform-noarch.patch
@@ -0,0 +1,13 @@
+diff -Naur eglexternalplatform-1.2.old/meson.build eglexternalplatform-1.2/meson.build
+--- eglexternalplatform-1.2.old/meson.build 2024-09-04 09:42:32.677731661 +0200
++++ eglexternalplatform-1.2/meson.build 2024-09-04 09:42:53.143945396 +0200
+@@ -4,7 +4,8 @@
+ pkg = import('pkgconfig')
+ pkg.generate(filebase: 'eglexternalplatform',
+ name: 'EGL External Platform interface',
+- description: 'EGL External Platform interface')
++ description: 'EGL External Platform interface',
++ install_dir: get_option('datadir') / 'pkgconfig')
+
+ install_headers(
+ 'interface/eglexternalplatform.h',
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/eglexternalplatform.git/commitdiff/adc06d2956ec89e703f0ce6bbd33dae2366ef567
More information about the pld-cvs-commit
mailing list