[packages/foot] add support for pgo build; rel 3
atler
atler at pld-linux.org
Mon Mar 21 12:06:19 CET 2022
commit c4dad6428f676819e7f5036690df563126ba25ad
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Mar 21 12:02:49 2022 +0100
add support for pgo build; rel 3
foot.spec | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/foot.spec b/foot.spec
index c9858ff..82b0312 100644
--- a/foot.spec
+++ b/foot.spec
@@ -1,7 +1,11 @@
+#
+# Conditional build:
+%bcond_without pgo # disable profile guided optimizations
+
Summary: A fast, lightweight and minimalistic Wayland terminal emulator
Name: foot
Version: 1.11.0
-Release: 2
+Release: 3
License: MIT
Group: Applications/Terminal
Source0: https://codeberg.org/dnkl/foot/archive/%{version}.tar.gz
@@ -24,6 +28,10 @@ BuildRequires: tllist-devel >= 1.0.4
BuildRequires: wayland-devel
BuildRequires: wayland-protocols >= 1.21
BuildRequires: xorg-lib-libxkbcommon-devel >= 1.0.0
+%if %{with pgo}
+BuildRequires: cage
+BuildRequires: fonts-TTF-DejaVu
+%endif
Requires(post,postun): desktop-file-utils
Requires(post,postun): gtk-update-icon-cache
Requires: fcft < 4.0.0
@@ -76,10 +84,22 @@ ZSH completion for foot command line.
%build
%meson build \
+ %{?with_pgo:-Db_pgo=generate} \
-Dterminfo=disabled
%ninja_build -C build
+%if %{with pgo}
+%ninja_test -C build
+
+./pgo/full-headless-cage.sh . build
+
+%__meson configure build \
+ -Db_pgo=use
+
+%ninja_build -C build
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/foot.git/commitdiff/c4dad6428f676819e7f5036690df563126ba25ad
More information about the pld-cvs-commit
mailing list