3 %bcond_with pgo # disable profile guided optimizations
5 Summary: A fast, lightweight and minimalistic Wayland terminal emulator
10 Group: Applications/Terminal
11 Source0: https://codeberg.org/dnkl/foot/archive/%{version}.tar.gz
12 # Source0-md5: 2b325683189e9c71ffc9d35c996d2ea0
14 URL: https://codeberg.org/dnkl/foot/
15 BuildRequires: fcft-devel < 4.0.0
16 BuildRequires: fcft-devel >= 3.0.1
17 BuildRequires: fontconfig-devel
18 BuildRequires: libutf8proc-devel
19 BuildRequires: meson >= 0.58.0
21 BuildRequires: pixman-devel
22 BuildRequires: pkgconfig
23 BuildRequires: python3
24 BuildRequires: rpm-build >= 4.6
25 BuildRequires: rpmbuild(macros) >= 1.736
27 BuildRequires: systemd-devel
28 BuildRequires: tllist-devel >= 1.0.4
29 BuildRequires: wayland-devel
30 BuildRequires: wayland-protocols >= 1.21
31 BuildRequires: xorg-lib-libxkbcommon-devel >= 1.0.0
34 BuildRequires: fonts-TTF-DejaVu
36 Requires(post,postun): desktop-file-utils
37 Requires(post,postun): gtk-update-icon-cache
38 Requires: fcft < 4.0.0
39 Requires: fcft >= 3.0.1
40 Requires: hicolor-icon-theme
41 Requires: terminfo >= 6.2.20210731
42 Requires: xorg-lib-libxkbcommon >= 1.0.0
43 Obsoletes: terminfo-foot < 1.10.3-2
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 A fast, lightweight and minimalistic Wayland terminal emulator.
49 %package -n bash-completion-foot
50 Summary: Bash completion for foot command line
51 Group: Applications/Shells
52 Requires: %{name} = %{version}-%{release}
53 Requires: bash-completion >= 1:2.0
56 %description -n bash-completion-foot
57 Bash completion for foot command line.
59 %package -n fish-completion-foot
60 Summary: fish-completion for foot
61 Group: Applications/Shells
62 Requires: %{name} = %{version}-%{release}
66 %description -n fish-completion-foot
67 fish-completion for foot.
69 %description -n fish-completion-foot -l pl.UTF-8
70 Pakiet ten dostarcza uzupełnianie nazw w fish dla foot.
72 %package -n zsh-completion-foot
73 Summary: ZSH completion for foot command line
74 Group: Applications/Shells
75 Requires: %{name} = %{version}-%{release}
79 %description -n zsh-completion-foot
80 ZSH completion for foot command line.
88 %{?with_pgo:-Db_pgo=generate} \
96 ./pgo/full-headless-cage.sh . build
98 %__meson configure build \
101 %ninja_build -C build
105 rm -rf $RPM_BUILD_ROOT
107 %ninja_install -C build
110 rm -rf $RPM_BUILD_ROOT
113 %update_desktop_database_post
114 %update_icon_cache hicolor
117 %update_desktop_database_postun
118 %update_icon_cache hicolor
121 %defattr(644,root,root,755)
122 %doc CHANGELOG.md README.md
123 %dir %{_sysconfdir}/xdg/foot
124 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/foot/foot.ini
125 %attr(755,root,root) %{_bindir}/foot
126 %attr(755,root,root) %{_bindir}/footclient
127 %{systemduserunitdir}/foot-server@.service
128 %{systemduserunitdir}/foot-server@.socket
130 %{_desktopdir}/foot.desktop
131 %{_desktopdir}/foot-server.desktop
132 %{_desktopdir}/footclient.desktop
133 %{_iconsdir}/hicolor/*/apps/foot.png
134 %{_iconsdir}/hicolor/scalable/apps/foot.svg
135 %{_mandir}/man1/foot.1*
136 %{_mandir}/man1/footclient.1*
137 %{_mandir}/man5/foot.ini.5*
138 %{_mandir}/man7/foot-ctlseqs.7*
140 %files -n bash-completion-foot
141 %defattr(644,root,root,755)
143 %{bash_compdir}/footclient
145 %files -n fish-completion-foot
146 %defattr(644,root,root,755)
147 %{fish_compdir}/foot.fish
148 %{fish_compdir}/footclient.fish
150 %files -n zsh-completion-foot
151 %defattr(644,root,root,755)
153 %{zsh_compdir}/_footclient