[ttembed/f19] Initial import (1036754)

Petr Vobornik pvoborni at fedoraproject.org
Wed Dec 11 15:37:58 UTC 2013


commit 13e9e85c8f2bf492b9c621023240ce243bdbfd7f
Author: Petr Vobornik <pvoborni at redhat.com>
Date:   Wed Dec 11 16:17:15 2013 +0100

    Initial import (1036754)

 .gitignore   |    1 +
 sources      |    1 +
 ttembed.spec |   42 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2d67de1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v1.1.tar.gz
diff --git a/sources b/sources
index e69de29..5b0fa1f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1eccad30e260d4ccd2a1f8a9b1a165ce  v1.1.tar.gz
diff --git a/ttembed.spec b/ttembed.spec
new file mode 100644
index 0000000..8a670ed
--- /dev/null
+++ b/ttembed.spec
@@ -0,0 +1,42 @@
+Name:       ttembed
+Version:    1.1
+Release:    1%{?dist}
+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
+
+%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
+export CFLAGS="$CFLAGS %{optflags}"
+make %{?_smp_mflags}
+
+%install
+install -d %{buildroot}%{_bindir}
+install -p -m 755 %{name} %{buildroot}%{_bindir}
+install -d %{buildroot}%{_mandir}/man1/
+install -p -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/
+
+%files
+%{_bindir}/%{name}
+%{_mandir}/man1/*
+%doc LICENSE README.md
+
+%check
+# 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
+
+%changelog
+* Mon Dec 2 2013 Petr Vobornik <pvoborni at redhat.com> - 1.1-1
+- initial package


More information about the scm-commits mailing list