Package init

This commit is contained in:
dogsheng 2019-11-19 11:57:42 +08:00
commit a0cd419109
2 changed files with 42 additions and 0 deletions

42
ttembed.spec Normal file
View File

@ -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 <yanglijin@huawei.com> - 1.1-11
- init package

BIN
v1.1.tar.gz Normal file

Binary file not shown.