From f1f524202b9ebc8f796e3cdf0e7d68bde41882f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 29 Dec 2014 13:59:22 +0200 Subject: [PATCH 1/1] new, version 1.1 based on fedora package (3389299) review-request: https://bugzilla.redhat.com/1036754 --- ttembed.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 ttembed.spec diff --git a/ttembed.spec b/ttembed.spec new file mode 100644 index 0000000..9c296f1 --- /dev/null +++ b/ttembed.spec @@ -0,0 +1,51 @@ +# +# Conditional build: +%bcond_without tests # build without tests + +Summary: Remove embedding limitations from TrueType fonts +Name: ttembed +Version: 1.1 +Release: 1 +License: Public Domain +Group: Applications +Source0: https://github.com/hisdeedsaredust/ttembed/archive/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 1eccad30e260d4ccd2a1f8a9b1a165ce +URL: https://github.com/hisdeedsaredust/ttembed +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%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 +%setup -q + +%build +CFLAGS="%{rpmcflags}" \ +%{__make} + +%if %{with tests} +# smoke test - fail on not font file +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 +%endif + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} +install -p %{name} $RPM_BUILD_ROOT%{_bindir} +cp -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1 + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc LICENSE README.md +%{_bindir}/ttembed +%{_mandir}/man1/ttembed.1* -- 2.44.0