commit a0cd4191090488540ada5bb35a6ff1d425963853 Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:57:42 2019 +0800 Package init diff --git a/ttembed.spec b/ttembed.spec new file mode 100644 index 0000000..a99db33 --- /dev/null +++ b/ttembed.spec @@ -0,0 +1,42 @@ +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 diff --git a/v1.1.tar.gz b/v1.1.tar.gz new file mode 100644 index 0000000..e564e04 Binary files /dev/null and b/v1.1.tar.gz differ