]> git.pld-linux.org Git - packages/ttembed.git/commitdiff
new, version 1.1 auto/th/ttembed-1.1-1
authorElan Ruusamäe <glen@delfi.ee>
Mon, 29 Dec 2014 11:59:22 +0000 (13:59 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 29 Dec 2014 11:59:54 +0000 (13:59 +0200)
based on fedora package (3389299)
review-request: https://bugzilla.redhat.com/1036754

ttembed.spec [new file with mode: 0644]

diff --git a/ttembed.spec b/ttembed.spec
new file mode 100644 (file)
index 0000000..9c296f1
--- /dev/null
@@ -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*
This page took 0.07036 seconds and 4 git commands to generate.