diff --git a/.gitignore b/.gitignore index e69de29..34c4be0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/egl-wayland-743d702fac0feb02d52ff34deadecb32284f18ea.tar.gz diff --git a/10_nvidia_wayland.json b/10_nvidia_wayland.json new file mode 100644 index 0000000..c08a641 --- /dev/null +++ b/10_nvidia_wayland.json @@ -0,0 +1,6 @@ +{ + "file_format_version" : "1.0.0", + "ICD" : { + "library_path" : "libnvidia-egl-wayland.so.1" + } +} diff --git a/egl-wayland.spec b/egl-wayland.spec new file mode 100644 index 0000000..d5b9070 --- /dev/null +++ b/egl-wayland.spec @@ -0,0 +1,76 @@ +%global commit 743d702fac0feb02d52ff34deadecb32284f18ea +%global date 20170120 +%global shortcommit0 %(c=%{commit}; echo ${c:0:7}) + +Name: egl-wayland +Version: 1.0.0 +Release: 0.6%{?shortcommit0:.%{date}git%{shortcommit0}}%{?dist} +Summary: Wayland EGL External Platform library + +License: MIT +URL: https://github.com/NVIDIA +Source0: %url/%{name}/archive/%{commit}.tar.gz#/%{name}-%{commit}.tar.gz +Source1: 10_nvidia_wayland.json + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: eglexternalplatform-devel +BuildRequires: mesa-libEGL-devel +BuildRequires: wayland-devel + +# Required for directory ownership +Requires: libglvnd-egl%{?_isa} + +%description +%summary + +%prep +%autosetup -n %{name}-%{commit} +NOCONFIGURE=1 ./autogen.sh + +%build +%configure --disable-static +%make_build V=1 + + +%install +%make_install +install -m 0755 -d %{buildroot}%{_datadir}/egl/egl_external_platform.d/ +install -pm 0644 %{SOURCE1} %{buildroot}%{_datadir}/egl/egl_external_platform.d/ +rm %{buildroot}%{_libdir}/libnvidia-egl-wayland.so +find %{buildroot} -name '*.la' -exec rm -f {} ';' + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%doc README.md +%{_libdir}/*.so.* +%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json + + +%changelog +* Thu Feb 02 2017 Leigh Scott - 1.0.0-0.6.20170120git743d702 +- Add requires libglvnd-egl +- Make review changes + +* Wed Feb 01 2017 Leigh Scott - 1.0.0-0.5.20170120git743d702 +- Drop devel sub-package + +* Wed Feb 01 2017 Leigh Scott - 1.0.0-0.4.20170120git743d702 +- Add 10_nvidia_wayland.json to libs sub-package + +* Wed Feb 01 2017 Leigh Scott - 1.0.0-0.3.20170120git743d702 +- Add loader directory to common sub-package +- Move libs to sub-package + +* Fri Jan 20 2017 Leigh Scott - 1.0.0-0.2.20170120git743d702 +- Add date to release + +* Fri Jan 20 2017 Leigh Scott - 1.0.0-0.1.git743d702 +- First build + diff --git a/sources b/sources index e69de29..fa169a7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (egl-wayland-743d702fac0feb02d52ff34deadecb32284f18ea.tar.gz) = a1ed0c51e86e1143b8de4e17eb2881b2d78a8fe3ff0c4ac66ae0137b0d8246a37749af2799abfaca9a01f8fc7eb2b5418b63541346b26d3a96f12d8f0f5164ea