]>
Commit | Line | Data |
---|---|---|
18744dc1 JB |
1 | Summary: Auto-generating hints for TrueType fonts |
2 | Summary(pl.UTF-8): Automatyczne generowanie hintingu dla fontów TrueType | |
3 | Name: ttfautohint | |
7dd8584d | 4 | Version: 1.2 |
18744dc1 JB |
5 | Release: 1 |
6 | License: FreeType License or GPL v2+ | |
7dd8584d JB |
7 | Group: Applications/Graphics |
8 | Source0: http://download.savannah.gnu.org/releases/freetype/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: ebc7f07eaa29af8550828ac043364150 | |
18744dc1 | 10 | URL: http://freetype.org/ |
7dd8584d JB |
11 | BuildRequires: QtCore-devel >= 4.8 |
12 | BuildRequires: QtGui-devel >= 4.8 | |
18744dc1 | 13 | BuildRequires: freetype-devel >= 1:2.4.5 |
7dd8584d JB |
14 | BuildRequires: harfbuzz-devel >= 0.9.19 |
15 | BuildRequires: pkgconfig >= 1:0.24 | |
e31616ab | 16 | BuildRequires: qt4-build >= 4.6 |
18744dc1 | 17 | Requires: freetype >= 1:2.4.5 |
7dd8584d | 18 | Requires: harfbuzz >= 0.9.19 |
18744dc1 JB |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | This project provides a utility which takes a TrueType font as the | |
23 | input, remove its hinting bytecode instructions (if any), and return a | |
24 | new font where all glyphs are bytecode hinted using the information | |
25 | given by FreeType's autohinting module. The idea is to provide the | |
26 | same quality of the autohinter on platforms which don't use FreeType. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Ten projekt zapewnia narzędzie przyjmujące na wejściu fonty TrueType, | |
30 | usuwające z nich instrukcje bajtkodowe hintingu (jeśli są) i tworzące | |
31 | nowy font, w którym wszystkie glify wykorzystują hinting utworzony | |
32 | przy użyciu modułu autohintingu z FreeType. Celem jest zapewnienie tej | |
33 | samej jakości, którą daje autohinter, na platformach nie | |
34 | wykorzystujących FreeType. | |
35 | ||
e31616ab JB |
36 | %package gui |
37 | Summary: GUI application to replace hints in a TrueType font | |
38 | Summary(pl.UTF-8): Graficzna aplikacja do podmiany reguł hintingu w fontach TrueType | |
39 | Group: X11/Applications/Graphics | |
7dd8584d | 40 | Requires: QtGui >= 4.8 |
e31616ab JB |
41 | Requires: freetype >= 1:2.4.5 |
42 | ||
43 | %description gui | |
44 | GUI application to replace hints in a TrueType font. The new hints are | |
45 | based on FreeType's auto-hinter. | |
46 | ||
47 | %description gui -l pl.UTF-8 | |
48 | Graficzna aplikacja do podmiany reguł hintingu w fontach TrueType. | |
49 | Nowe reguły są oparte na auto-hinterze z FreeType. | |
50 | ||
18744dc1 JB |
51 | %prep |
52 | %setup -q | |
53 | ||
54 | %build | |
55 | %configure \ | |
e31616ab JB |
56 | MOC=/usr/bin/moc-qt4 \ |
57 | QMAKE=/usr/bin/qmake-qt4 \ | |
58 | QTDIR=%{_libdir}/qt4 \ | |
18744dc1 | 59 | --disable-silent-rules |
e31616ab | 60 | |
18744dc1 JB |
61 | %{__make} |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
e31616ab JB |
69 | # requirements to automatically install man pages are insane - do it manually |
70 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
71 | cp -p frontend/ttf*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
72 | ||
18744dc1 JB |
73 | %clean |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc AUTHORS COPYING ChangeLog FTL.TXT NEWS README THANKS TODO | |
79 | %attr(755,root,root) %{_bindir}/ttfautohint | |
80 | %{_mandir}/man1/ttfautohint.1* | |
e31616ab JB |
81 | |
82 | %files gui | |
83 | %defattr(644,root,root,755) | |
84 | %attr(755,root,root) %{_bindir}/ttfautohintGUI | |
85 | %{_mandir}/man1/ttfautohintGUI.1* |