Accepting request 904039 from home:gmbr3:Active

- Use better tarball URL
- Run spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/904039
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libnvidia-egl-wayland?expand=0&rev=7
This commit is contained in:
Stefan Dirsch 2021-07-05 09:17:38 +00:00 committed by Git OBS Bridge
parent 26e3346c02
commit 3f16375f34
3 changed files with 19 additions and 18 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Jul 4 17:10:01 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Use better tarball URL
- Run spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 1 22:28:26 UTC 2021 - Stefan Dirsch <sndirsch@suse.com> Thu Jul 1 22:28:26 UTC 2021 - Stefan Dirsch <sndirsch@suse.com>

View File

@ -16,24 +16,21 @@
# #
%define so_ver 1 %define so_ver 1
%define lname libnvidia-egl-wayland%{so_ver}
# Common info %define rname egl-wayland
Name: libnvidia-egl-wayland Name: libnvidia-egl-wayland
%define lname libnvidia-egl-wayland%{so_ver}
Version: 1.1.7 Version: 1.1.7
Release: 0 Release: 0
URL: https://github.com/NVIDIA/egl-wayland
Summary: The EGLStream-based Wayland external platform Summary: The EGLStream-based Wayland external platform
License: MIT License: MIT
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Source: https://github.com/NVIDIA/egl-wayland/archive/refs/tags/%{version}.tar.gz URL: https://github.com/NVIDIA/egl-wayland
Source0: https://github.com/NVIDIA/egl-wayland/archive/%{version}/%{rname}-%{version}.tar.gz
# Build-time parameters
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: meson >= 0.50 BuildRequires: meson >= 0.50
BuildRequires: ninja BuildRequires: ninja
BuildRequires: pkg-config BuildRequires: pkgconfig
BuildRequires: pkgconfig(egl) BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(eglexternalplatform) >= 1.1 BuildRequires: pkgconfig(eglexternalplatform) >= 1.1
BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-client)
@ -49,11 +46,11 @@ 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 This library implements an EGL External Platform interface to work along with
EGL drivers that support the external platform mechanism. EGL drivers that support the external platform mechanism.
%package -n %lname %package -n %{lname}
Summary: The EGLStream-based Wayland external platform Summary: The EGLStream-based Wayland external platform
Group: System/Libraries Group: System/Libraries
%description -n %lname %description -n %{lname}
This is an implementation of a EGL External Platform library to add client-side This is an implementation of a EGL External Platform library to add client-side
Wayland support to EGL on top of EGLDevice and EGLStream families of extensions. Wayland support to EGL on top of EGLDevice and EGLStream families of extensions.
@ -63,7 +60,6 @@ EGL drivers that support the external platform mechanism.
%package -n libnvidia-egl-wayland-devel %package -n libnvidia-egl-wayland-devel
Summary: Development package for %{name} Summary: Development package for %{name}
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Requires: %{lname} = %{version}-%{release} Requires: %{lname} = %{version}-%{release}
%description -n libnvidia-egl-wayland-devel %description -n libnvidia-egl-wayland-devel
@ -77,21 +73,20 @@ This package provides headers and libraries required to build software
using %{name}. using %{name}.
%prep %prep
%autosetup -n egl-wayland-%{version}%{?extraver} %autosetup -n %{rname}-%{version}
%build %build
export LDFLAGS="-Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -flto=auto" export LDFLAGS="-Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro %{?_lto_cflags}"
%meson %meson
%meson_build %meson_build
%install %install
%meson_install %meson_install
%post -n %lname -p /sbin/ldconfig %post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %files -n %{lname}
%files -n %lname
%license COPYING %license COPYING
%doc README.md %doc README.md
%{_libdir}/libnvidia-egl-wayland.so.%{so_ver}* %{_libdir}/libnvidia-egl-wayland.so.%{so_ver}*