Name: yahei-fonts Version: 1.0 Release: 1%{?dist} Summary: Yahei Fonts Package License: Microsoft Commercial License URL: http://example.com/yahei-fonts Source0: yahei.tar.gz BuildArch: noarch %description This package installs the Yahei fonts to /usr/share/fonts/ and updates the font cache. %prep %setup -q -n yahei %install mkdir -p %{buildroot}/usr/share/fonts/yahei cp -a ms* %{buildroot}/usr/share/fonts/yahei/ %post fc-cache -fv %files /usr/share/fonts/yahei %changelog * Sun Sep 01 2024 Nobody - 1.0-1 - Initial package