diff --git a/README.md b/README.md index bb0d2d8..7a345d1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # egl-gbm +The GBM EGL external platform library. + diff --git a/egl-gbm-15_nvidia_gbm.json b/egl-gbm-15_nvidia_gbm.json new file mode 100644 index 0000000..5c2aa9b --- /dev/null +++ b/egl-gbm-15_nvidia_gbm.json @@ -0,0 +1,6 @@ +{ + "file_format_version" : "1.0.0", + "ICD" : { + "library_path" : "libnvidia-egl-gbm.so.1" + } +} diff --git a/egl-gbm.spec b/egl-gbm.spec new file mode 100644 index 0000000..0584eb0 --- /dev/null +++ b/egl-gbm.spec @@ -0,0 +1,60 @@ +Name: egl-gbm +Version: 1.1.2 +Release: 1mamba +Summary: The GBM EGL external platform library +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/NVIDIA/egl-gbm +Source: https://github.com/NVIDIA/egl-gbm.git/%{version}/egl-gbm-%{version}.tar.bz2 +Source1: egl-gbm-15_nvidia_gbm.json +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libdrm-devel +BuildRequires: libmesa-devel +## AUTOBUILDREQ-END +BuildRequires: meson +BuildRequires: eglexternalplatform-devel +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +The GBM EGL external platform library. + +%package -n libnvidia-egl-gbm +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n libnvidia-egl-gbm +The GBM EGL external platform library. +This package contains shared libraries for %{name}. + +%debug_package + +%prep +%setup -q + +%build +%meson +%meson_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%meson_install + +install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/egl/egl_external_platform.d/15_nvidia_gbm.json + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -n libnvidia-egl-gbm +%defattr(-,root,root) +%{_datadir}/egl/egl_external_platform.d/15_nvidia_gbm.json +%{_libdir}/libnvidia-egl-gbm.so +%{_libdir}/libnvidia-egl-gbm.so.* +%doc COPYING + +%changelog +* Thu Oct 31 2024 Silvan Calarco 1.1.2-1mamba +- package created using the webbuild interface