Name: ttembed Version: 1.1 Release: 11 Summary: Remove embedding limitations from TrueType fonts License: Public Domain URL: https://github.com/hisdeedsaredust/ttembed Source0: https://github.com/hisdeedsaredust/ttembed/archive/v%{version}.tar.gz BuildRequires: gcc %description Remove embedding limitations from TrueType fonts, by setting the fsType field in the OS/2 table to zero. That's it; this program is a one-trick pony. %prep %autosetup -p1 %build export CFLAGS="$CFLAGS %{optflags}" %make_build %install install -D -p -m 755 ttembed %{buildroot}%{_bindir}/ttembed install -D -p -m 644 ttembed.1 %{buildroot}%{_mandir}/man1/ttembed.1 %check echo 'not a font' > test if [[ "$(./ttembed test 2>&1)" != "test: Not TTF/OTF" ]] ; then echo "TEST FAIL: not a font input test" 1>&2 exit 1 fi rm test %files %doc LICENSE README.md %{_bindir}/ttembed %{_mandir}/man1/* %changelog * Thu Nov 14 2019 Lijin Yang - 1.1-11 - init package