Accepting request 903553 from home:jengelh:branches:X11:XOrg
OBS-URL: https://build.opensuse.org/request/show/903553 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libnvidia-egl-wayland?expand=0&rev=3
This commit is contained in:
parent
694c4b99ac
commit
7668333b4a
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 1 16:03:04 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Throw out ancient specfile constructs like BuildRoot and
|
||||||
|
defattr that have had proper defaults for long. Use more of the
|
||||||
|
contemporary macros, and drop all the nonstandard CFLAGS/LDFLAGS,
|
||||||
|
drop the unconditional strip calls.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 1 12:58:02 UTC 2021 - Stefan Dirsch <sndirsch@suse.com>
|
Thu Jul 1 12:58:02 UTC 2021 - Stefan Dirsch <sndirsch@suse.com>
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ Release: 0
|
|||||||
URL: https://github.com/NVIDIA/egl-wayland
|
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/Other
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
# Build-time parameters
|
# Build-time parameters
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -40,7 +40,6 @@ BuildRequires: pkgconfig(wayland-egl-backend) >= 3
|
|||||||
BuildRequires: pkgconfig(wayland-scanner)
|
BuildRequires: pkgconfig(wayland-scanner)
|
||||||
BuildRequires: pkgconfig(wayland-server)
|
BuildRequires: pkgconfig(wayland-server)
|
||||||
BuildRequires: pkgconfig(x11)
|
BuildRequires: pkgconfig(x11)
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
Source: egl-wayland-%{version}.tar.gz
|
Source: egl-wayland-%{version}.tar.gz
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -52,7 +51,7 @@ 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: Development/Libraries/Other
|
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
|
||||||
@ -78,45 +77,27 @@ This package provides headers and libraries required to build software
|
|||||||
using %{name}.
|
using %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n egl-wayland-%{version}%{?extraver}
|
%autosetup -n egl-wayland-%{version}%{?extraver}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
_CFLAGS='%{optflags}'
|
export LDFLAGS="-Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -flto=auto"
|
||||||
_LDFLAGS='-Wl,--strip-all -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro'
|
%meson
|
||||||
meson setup build \
|
%meson_build
|
||||||
--buildtype=release \
|
|
||||||
--optimization=2 \
|
|
||||||
--strip \
|
|
||||||
\
|
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--libdir=%{_libdir} \
|
|
||||||
--default-library=shared \
|
|
||||||
\
|
|
||||||
-Db_lto=true \
|
|
||||||
-Db_ndebug=if-release \
|
|
||||||
-Dc_args="$_CFLAGS" \
|
|
||||||
-Dc_link_args="$_LDFLAGS"
|
|
||||||
ninja -v -C build %{?_smp_mflags}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
DESTDIR=%{buildroot} ninja -C build install
|
%meson_install
|
||||||
|
|
||||||
%clean
|
|
||||||
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
|
|
||||||
|
|
||||||
%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
|
||||||
%defattr(-,root,root)
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_libdir}/libnvidia-egl-wayland.so.%{so_ver}*
|
%{_libdir}/libnvidia-egl-wayland.so.%{so_ver}*
|
||||||
%{_datadir}/wayland-eglstream/
|
%{_datadir}/wayland-eglstream/
|
||||||
|
|
||||||
%files -n libnvidia-egl-wayland-devel
|
%files -n libnvidia-egl-wayland-devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_libdir}/libnvidia-egl-wayland.so
|
%{_libdir}/libnvidia-egl-wayland.so
|
||||||
|
Loading…
x
Reference in New Issue
Block a user