[packages/ttembed] new, version 1.1
glen
glen at pld-linux.org
Mon Dec 29 13:02:03 CET 2014
commit f1f524202b9ebc8f796e3cdf0e7d68bde41882f4
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Dec 29 13:59:22 2014 +0200
new, version 1.1
based on fedora package (3389299)
review-request: https://bugzilla.redhat.com/1036754
ttembed.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
---
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*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ttembed.git/commitdiff/f1f524202b9ebc8f796e3cdf0e7d68bde41882f4
More information about the pld-cvs-commit
mailing list