# ttf-fluent-emoji.spec # Ported from the Arch Linux PKGBUILD (https://github.com/tetunori/fluent-emoji-webfont): # pkgname=ttf-fluent-emoji pkgver=0.8.5 pkgrel=2 # depends=('fontconfig') provides=('emoji-font') # # Source tarball sha256 (matches PKGBUILD): # 98ddb337dd27f4afb451d9c191674045439e49ec1fcd0751816b9a0c09aa667f # Portability fallbacks for distros where these macros are not predefined %{!?_fontdir:%global _fontdir %{_datadir}/fonts} %{!?_licensedir:%global _licensedir %{_datadir}/licenses} Name: ttf-fluent-emoji Version: 0.8.5 Release: 2%{?dist} Summary: Fluent emoji font by Microsoft (TTF) License: MIT URL: https://github.com/tetunori/fluent-emoji-webfont Source0: https://github.com/tetunori/fluent-emoji-webfont/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch # Mirrors PKGBUILD depends=('fontconfig') Requires: fontconfig # Mirrors PKGBUILD provides=('emoji-font') Provides: emoji-font %description Microsoft Fluent emoji fonts in TrueType format (Color, Flat and High Contrast variants), built from the fluent-emoji-webfont project. Installed into %{_fontdir}/fluent-emoji/ and registered with fontconfig. %prep %autosetup -n fluent-emoji-webfont-%{version} %build # Nothing to build: fonts are shipped prebuilt under dist/ %install install -d %{buildroot}%{_fontdir}/fluent-emoji install -m0644 dist/FluentEmojiColor.ttf \ dist/FluentEmojiFlat.ttf \ dist/FluentEmojiHighContrast.ttf \ %{buildroot}%{_fontdir}/fluent-emoji/ install -Dm0644 LICENSE %{buildroot}%{_licensedir}/%{name}/ %post fc-cache -f %{_fontdir}/fluent-emoji >/dev/null 2>&1 || : %postun fc-cache -f %{_fontdir}/fluent-emoji >/dev/null 2>&1 || : %files %license LICENSE %dir %{_fontdir}/fluent-emoji %{_fontdir}/fluent-emoji/FluentEmojiColor.ttf %{_fontdir}/fluent-emoji/FluentEmojiFlat.ttf %{_fontdir}/fluent-emoji/FluentEmojiHighContrast.ttf # TODO: add %changelog with your packager identity