enable fPIE and remove rpath

This commit is contained in:
zhangxianting 2023-11-21 18:58:59 +08:00
parent 06a9273edb
commit 7529a97f81

View File

@ -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 <zhangxianting@uniontech.com> - 3.30.1.10
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:enable fPIE and remove rpath
* Tue Oct 13 2020 hanhui <hanhui15@huawei.com> - 3.30.1.9
- change mesa-libEGL-devel to libglvnd-devel in buildrequires