!38 enable fPIE and remove rpath

From: @zhangxianting 
Reviewed-by: @dwl301 
Signed-off-by: @dwl301
This commit is contained in:
openeuler-ci-bot 2023-11-25 09:18:59 +00:00 committed by Gitee
commit 044552ff80
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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 Name: mutter
Version: 3.30.1 Version: 3.30.1
Release: 9 Release: 10
Summary: Window and compositing manager based on Clutter Summary: Window and compositing manager based on Clutter
License: GPLv2+ License: GPLv2+
URL: https://www.gnome.org URL: https://www.gnome.org
@ -58,12 +60,14 @@ developing applications that use %{name}.
%build %build
autoreconf -if autoreconf -if
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi; (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 %make_build
%install %install
%make_install %make_install
%chrpath_delete
%delete_la_and_a %delete_la_and_a
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
@ -98,6 +102,12 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/*.1.gz %{_mandir}/man1/*.1.gz
%changelog %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 * Tue Oct 13 2020 hanhui <hanhui15@huawei.com> - 3.30.1.9
- change mesa-libEGL-devel to libglvnd-devel in buildrequires - change mesa-libEGL-devel to libglvnd-devel in buildrequires