%define gitver %(echo %version | tr _ -) Name: ttf-noto-emoji Version: 2019_11_19_unicode12 Release: 1mamba Summary: Google Noto emoji fonts Group: System/Fonts Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/googlefonts/noto-emoji.git ## GITSOURCE https://github.com/googlefonts/noto-emoji.git v2019-11-19-unicode12 Source: https://github.com/googlefonts/noto-emoji.git/v%{gitver}/noto-emoji-%{version}.tar.bz2 Source1: 66-noto-color-emoji.conf License: OFL ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END Requires(post): fontconfig BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Google Noto emoji fonts. %prep %setup -q -n noto-emoji-%{version} %build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -D -m644 fonts/NotoColorEmoji.ttf %{buildroot}%{_datadir}/fonts/truetype/NotoColorEmoji.ttf install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/fonts/conf.d/66-noto-color-emoji.conf %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post [ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache : %postun [ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache : %files %defattr(-,root,root) %{_sysconfdir}/fonts/conf.d/66-noto-color-emoji.conf %{_datadir}/fonts/truetype/NotoColorEmoji.ttf %doc AUTHORS LICENSE %changelog * Mon Apr 06 2020 Silvan Calarco 2019_11_19_unicode12-1mamba - package created using the webbuild interface