From 3f16375f34b7c7f305d7733409026b954087351775bd30ddbebaaa0a5fa984f2 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Mon, 5 Jul 2021 09:17:38 +0000 Subject: [PATCH] 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 --- 1.1.7.tar.gz => egl-wayland-1.1.7.tar.gz | 0 libnvidia-egl-wayland.changes | 6 +++++ libnvidia-egl-wayland.spec | 31 ++++++++++-------------- 3 files changed, 19 insertions(+), 18 deletions(-) rename 1.1.7.tar.gz => egl-wayland-1.1.7.tar.gz (100%) diff --git a/1.1.7.tar.gz b/egl-wayland-1.1.7.tar.gz similarity index 100% rename from 1.1.7.tar.gz rename to egl-wayland-1.1.7.tar.gz diff --git a/libnvidia-egl-wayland.changes b/libnvidia-egl-wayland.changes index f4a1b34..5c475ce 100644 --- a/libnvidia-egl-wayland.changes +++ b/libnvidia-egl-wayland.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jul 4 17:10:01 UTC 2021 - Callum Farmer + +- Use better tarball URL +- Run spec-cleaner + ------------------------------------------------------------------- Thu Jul 1 22:28:26 UTC 2021 - Stefan Dirsch diff --git a/libnvidia-egl-wayland.spec b/libnvidia-egl-wayland.spec index c62ada6..17ea916 100644 --- a/libnvidia-egl-wayland.spec +++ b/libnvidia-egl-wayland.spec @@ -16,24 +16,21 @@ # -%define so_ver 1 - -# Common info +%define so_ver 1 +%define lname libnvidia-egl-wayland%{so_ver} +%define rname egl-wayland Name: libnvidia-egl-wayland -%define lname libnvidia-egl-wayland%{so_ver} Version: 1.1.7 Release: 0 -URL: https://github.com/NVIDIA/egl-wayland Summary: The EGLStream-based Wayland external platform License: MIT Group: Development/Libraries/C and C++ -Source: https://github.com/NVIDIA/egl-wayland/archive/refs/tags/%{version}.tar.gz - -# Build-time parameters +URL: https://github.com/NVIDIA/egl-wayland +Source0: https://github.com/NVIDIA/egl-wayland/archive/%{version}/%{rname}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: meson >= 0.50 BuildRequires: ninja -BuildRequires: pkg-config +BuildRequires: pkgconfig BuildRequires: pkgconfig(egl) BuildRequires: pkgconfig(eglexternalplatform) >= 1.1 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 EGL drivers that support the external platform mechanism. -%package -n %lname +%package -n %{lname} Summary: The EGLStream-based Wayland external platform Group: System/Libraries -%description -n %lname +%description -n %{lname} 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. @@ -63,7 +60,6 @@ EGL drivers that support the external platform mechanism. %package -n libnvidia-egl-wayland-devel Summary: Development package for %{name} Group: Development/Languages/C and C++ - Requires: %{lname} = %{version}-%{release} %description -n libnvidia-egl-wayland-devel @@ -77,21 +73,20 @@ This package provides headers and libraries required to build software using %{name}. %prep -%autosetup -n egl-wayland-%{version}%{?extraver} +%autosetup -n %{rname}-%{version} %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_build %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 %doc README.md %{_libdir}/libnvidia-egl-wayland.so.%{so_ver}*