From 7529a97f813b555d6c7ee6626fab7f7adcbc0f4f Mon Sep 17 00:00:00 2001 From: zhangxianting Date: Tue, 21 Nov 2023 18:58:59 +0800 Subject: [PATCH] enable fPIE and remove rpath --- mutter.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mutter.spec b/mutter.spec index 12bbc1c..74d3bdb 100644 --- a/mutter.spec +++ b/mutter.spec @@ -1,6 +1,8 @@ +%define chrpath_delete() (find $RPM_BUILD_ROOT/ -type f -exec file {} ';' | grep -w "ELF" | awk -F ':' '{print $1}' | xargs -i chrpath --delete {}) + Name: mutter Version: 3.30.1 -Release: 9 +Release: 10 Summary: Window and compositing manager based on Clutter License: GPLv2+ URL: https://www.gnome.org @@ -58,12 +60,14 @@ developing applications that use %{name}. %build autoreconf -if (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi; - %configure --enable-compile-warnings=maximum --enable-remote-desktop --enable-installed-tests --with-libwacom --enable-egl-device) + %configure --enable-compile-warnings=maximum --enable-remote-desktop --enable-installed-tests --with-libwacom --enable-egl-device CFLAGS="%{optflags} -fPIE -pie") %make_build %install %make_install +%chrpath_delete + %delete_la_and_a desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop @@ -98,6 +102,12 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %{_mandir}/man1/*.1.gz %changelog +* Tue Nov 21 2023 zhangxianting - 3.30.1.10 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:enable fPIE and remove rpath + * Tue Oct 13 2020 hanhui - 3.30.1.9 - change mesa-libEGL-devel to libglvnd-devel in buildrequires -- Gitee