a9cd754
Name:           foot
0a643e6
Version:        1.14.0
07070f3
Release:        2%{?dist}
a9cd754
Summary:        Fast, lightweight and minimalistic Wayland terminal emulator
a9cd754
a9cd754
License:        MIT
a9cd754
URL:            https://codeberg.org/dnkl/%{name}
a9cd754
Source0:        %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
a9cd754
07070f3
# https://codeberg.org/dnkl/foot/pulls/1318
07070f3
# https://codeberg.org/dnkl/foot/pulls/1334
07070f3
Patch0:         foot-1.14.0-.desktop-add-StartupWMClass-foot.patch
07070f3
a9cd754
BuildRequires:  gcc
d0ab465
BuildRequires:  meson >= 0.58.0
a9cd754
BuildRequires:  desktop-file-utils
0a643e6
BuildRequires:  libappstream-glib
9482a09
BuildRequires:  python3
d7652f6
BuildRequires:  systemd-rpm-macros
a9cd754
0a643e6
BuildRequires:  libutempter
d0ab465
BuildRequires:  pkgconfig(fcft) >= 3.0.1
a9cd754
BuildRequires:  pkgconfig(fontconfig)
ffdd486
BuildRequires:  pkgconfig(libutf8proc)
a9cd754
BuildRequires:  pkgconfig(pixman-1)
a9cd754
BuildRequires:  pkgconfig(scdoc)
d7652f6
BuildRequires:  pkgconfig(systemd)
a9cd754
BuildRequires:  pkgconfig(tllist) >= 1.0.4
a9cd754
BuildRequires:  pkgconfig(wayland-client)
a9cd754
BuildRequires:  pkgconfig(wayland-cursor)
a9cd754
BuildRequires:  pkgconfig(wayland-protocols)
a9cd754
BuildRequires:  pkgconfig(wayland-scanner) 
a9cd754
BuildRequires:  pkgconfig(xkbcommon)
a9cd754
# require *-static for header-only library
a9cd754
BuildRequires:  tllist-static
a9cd754
d0ab465
Recommends:     %{name}-terminfo
d0ab465
Requires:       (%{name}-terminfo = %{version}-%{release} if %{name}-terminfo)
a9cd754
# Optional dependency for bell = notify option
a9cd754
Recommends:     /usr/bin/notify-send
8ddc869
# Optional dependency for opening URLs
8ddc869
Recommends:     /usr/bin/xdg-open
a9cd754
Requires:       hicolor-icon-theme
a9cd754
a9cd754
%description
a9cd754
Fast, lightweight and minimalistic Wayland terminal emulator.
a9cd754
Features:
a9cd754
 * Fast
a9cd754
 * Lightweight, in dependencies, on-disk and in-memory
a9cd754
 * Wayland native
a9cd754
 * DE agnostic
8ddc869
 * Server/daemon mode
a9cd754
 * User configurable font fallback
a9cd754
 * On-the-fly font resize
a9cd754
 * On-the-fly DPI font size adjustment
a9cd754
 * Scrollback search
8ddc869
 * Keyboard driven URL detection
a9cd754
 * Color emoji support
8ddc869
 * IME (via text-input-v3)
a9cd754
 * Multi-seat
a9cd754
 * Synchronized Updates support
a9cd754
 * Sixel image support
a9cd754
a9cd754
%package        terminfo
a9cd754
Summary:        Terminfo files for %{name} terminal
a9cd754
BuildRequires:  /usr/bin/tic
a9cd754
Requires:       ncurses-base
a9cd754
a9cd754
%description    terminfo
a9cd754
%{summary}.
a9cd754
a9cd754
a9cd754
%prep
a9cd754
%autosetup -n %{name}
a9cd754
a9cd754
a9cd754
%build
e7c063f
%meson
a9cd754
%meson_build
a9cd754
a9cd754
a9cd754
%install
a9cd754
%meson_install
0a643e6
install -D -pv -m0644 -t %{buildroot}%{_metainfodir} \
0a643e6
    org.codeberg.dnkl.foot.metainfo.xml
a9cd754
# Will be installed to correct location with rpm macros
a9cd754
rm %{buildroot}%{_docdir}/%{name}/LICENSE
a9cd754
a9cd754
a9cd754
%check
a9cd754
%meson_test
0a643e6
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml
a9cd754
desktop-file-validate \
0a643e6
    %{buildroot}/%{_datadir}/applications/org.codeberg.dnkl.%{name}*.desktop
a9cd754
a9cd754
d7652f6
%post
d7652f6
%systemd_user_post %{name}-server@.{service,socket}
d7652f6
d7652f6
%preun
d7652f6
%systemd_user_preun %{name}-server@.{service,socket}
d7652f6
d7652f6
a9cd754
%files
a9cd754
%license LICENSE
d0ab465
%config(noreplace) %{_sysconfdir}/xdg/%{name}/%{name}.ini
a9cd754
%{_bindir}/%{name}
a9cd754
%{_bindir}/%{name}client
a9cd754
%{_datadir}/%{name}/
0a643e6
%{_datadir}/applications/org.codeberg.dnkl.%{name}*.desktop
a9cd754
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
a9cd754
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
0a643e6
%{_metainfodir}/org.codeberg.dnkl.foot.metainfo.xml
0a643e6
%{bash_completions_dir}/foot*
0a643e6
%{fish_completions_dir}/foot*
0a643e6
%{zsh_completions_dir}/_foot*
a9cd754
%dir %{_docdir}/%{name}
d0ab465
%doc %{_docdir}/%{name}/CHANGELOG.md
d0ab465
%doc %{_docdir}/%{name}/README.md
a9cd754
%{_mandir}/man1/%{name}.1*
a9cd754
%{_mandir}/man1/%{name}client.1*
a9cd754
%{_mandir}/man5/%{name}.ini.5*
8ddc869
%{_mandir}/man7/%{name}-ctlseqs.7*
d7652f6
%{_userunitdir}/%{name}-server@.service
d7652f6
%{_userunitdir}/%{name}-server@.socket
a9cd754
a9cd754
%files terminfo
a9cd754
%license LICENSE
a9cd754
%dir %{_datadir}/terminfo/f
a9cd754
%{_datadir}/terminfo/f/%{name}
a9cd754
%{_datadir}/terminfo/f/%{name}-direct
a9cd754
a9cd754
a9cd754
%changelog
07070f3
* Sat Apr 29 2023 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.14.0-2
07070f3
- Use correct dock and window switcher icons in GNOME
07070f3
0a643e6
* Tue Apr 04 2023 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.14.0-1
0a643e6
- Update to 1.14.0 (#2184129)
0a643e6
- Install AppStream metadata
0a643e6
- Use new macros for shell completion directories
0a643e6
290aa5c
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-2
290aa5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
290aa5c
eaa69b0
* Wed Aug 31 2022 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.13.1-1
eaa69b0
- Update to 1.13.1 (#2123078)
eaa69b0
8ffac46
* Sun Aug 07 2022 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.13.0-1
8ffac46
- Update to 1.13.0
8ffac46
cad7bfb
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-2
cad7bfb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
cad7bfb
ad0b36b
* Thu Apr 28 2022 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.12.1-1
ad0b36b
- Update to 1.12.1 (#2079544)
ad0b36b
d0ab465
* Fri Apr 22 2022 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.12.0-1
d0ab465
- Update to 1.12.0 (#2077953)
d0ab465
- Example config was moved to /etc/xdg/foot/foot.ini (upstream change)
d7652f6
- Install systemd unit files for foot --server
d0ab465
9482a09
* Sat Feb 05 2022 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.11.0-1
9482a09
- Update to 1.11.0 (#2051005)
9482a09
cbf346c
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.3-2
cbf346c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
cbf346c
ba9995a
* Wed Dec 08 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.10.3-1
ba9995a
- Update to 1.10.3 (#2030411)
ba9995a
965ffc4
* Fri Dec 03 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.10.2-1
965ffc4
- Update to 1.10.2
965ffc4
f1ab008
* Mon Nov 22 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.10.1-1
f1ab008
- Update to 1.10.1 (#2025735)
f1ab008
9e4d695
* Sun Nov 14 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.10.0-1
9e4d695
- Update to 1.10.0 (#2009965)
9e4d695
e7c063f
* Fri Oct 01 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.9.1-1
e7c063f
- Update to 1.9.1
e7c063f
d33d28f
* Fri Aug 27 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.9.0-1
d33d28f
- Update to 1.9.0
d33d28f
- Override custom terminfo dir with /usr/share/terminfo
d33d28f
36ca656
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-3
36ca656
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
36ca656
ce936a6
* Tue Jul 20 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.8.2-2
ce936a6
- Add runtime dependency on fcft 2.4
ce936a6
0cd548f
* Sun Jul 18 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.8.2-1
0cd548f
- Update to 1.8.2
0cd548f
f0056fc
* Fri Jul 02 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.8.1-1
f0056fc
- Update to 1.8.1
f0056fc
ffdd486
* Fri Jun 25 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.8.0-1
ffdd486
- Update to 1.8.0
ffdd486
c3da6d7
* Sun Apr 18 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.7.2-1
c3da6d7
- Update to 1.7.2
c3da6d7
ce65bfb
* Sun Mar 28 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.7.1-1
ce65bfb
- Update to 1.7.1
ce65bfb
8ddc869
* Sat Mar 20 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.7.0-1
8ddc869
- Update to 1.7.0
8ddc869
a9cd754
* Wed Mar 10 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.6.4-1
a9cd754
- Initial import (#1912856)