3 %bcond_without tests # build without tests
5 Summary: Remove embedding limitations from TrueType fonts
11 Source0: https://github.com/hisdeedsaredust/ttembed/archive/v%{version}/%{name}-%{version}.tar.gz
12 # Source0-md5: 1eccad30e260d4ccd2a1f8a9b1a165ce
13 URL: https://github.com/hisdeedsaredust/ttembed
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Remove embedding limitations from TrueType fonts, by setting the
18 fsType field in the OS/2 table to zero. That's it; this program is a
25 CFLAGS="%{rpmcflags}" \
29 # smoke test - fail on not font file
30 echo 'not a font' > test
31 if [ "$(./ttembed test 2>&1)" != "test: Not TTF/OTF" ]; then
32 echo "TEST FAIL: not a font input test" 1>&2
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
41 install -p %{name} $RPM_BUILD_ROOT%{_bindir}
42 cp -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %doc LICENSE README.md
51 %{_mandir}/man1/ttembed.1*