]> git.pld-linux.org Git - packages/ttembed.git/blame - ttembed.spec
executable bit
[packages/ttembed.git] / ttembed.spec
CommitLineData
f1f52420
ER
1#
2# Conditional build:
3%bcond_without tests # build without tests
4
5Summary: Remove embedding limitations from TrueType fonts
6Name: ttembed
7Version: 1.1
91716d15 8Release: 2
f1f52420
ER
9License: Public Domain
10Group: Applications
11Source0: https://github.com/hisdeedsaredust/ttembed/archive/v%{version}/%{name}-%{version}.tar.gz
12# Source0-md5: 1eccad30e260d4ccd2a1f8a9b1a165ce
13URL: https://github.com/hisdeedsaredust/ttembed
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17Remove embedding limitations from TrueType fonts, by setting the
18fsType field in the OS/2 table to zero. That's it; this program is a
19one-trick pony.
20
21%prep
22%setup -q
23
24%build
25CFLAGS="%{rpmcflags}" \
26%{__make}
27
28%if %{with tests}
29# smoke test - fail on not font file
30echo 'not a font' > test
31if [ "$(./ttembed test 2>&1)" != "test: Not TTF/OTF" ]; then
32 echo "TEST FAIL: not a font input test" 1>&2
33 exit 1
34fi
35rm test
36%endif
37
38%install
39rm -rf $RPM_BUILD_ROOT
40install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
41install -p %{name} $RPM_BUILD_ROOT%{_bindir}
42cp -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46
47%files
48%defattr(644,root,root,755)
49%doc LICENSE README.md
91716d15 50%attr(755,root,root) %{_bindir}/ttembed
f1f52420 51%{_mandir}/man1/ttembed.1*
This page took 0.060576 seconds and 4 git commands to generate.