1 |
shlomif |
292435 |
%define ffversion 20120731 |
2 |
|
|
%define dl_ffversion %{ffversion}-b |
3 |
|
|
%define docversion 20120731-b |
4 |
pterjan |
21120 |
%define Summary Font Editor for PostScript, TrueType, OpenType and various fonts |
5 |
|
|
|
6 |
|
|
Name: fontforge |
7 |
|
|
Version: 1.0 |
8 |
fwang |
436903 |
Release: %mkrel 0.%{ffversion}.6 |
9 |
pterjan |
21120 |
Summary: %{Summary} |
10 |
|
|
License: BSD-like |
11 |
|
|
Group: Publishing |
12 |
shlomif |
292435 |
Source0: http://garr.dl.sourceforge.net/project/fontforge/fontforge-source/fontforge_full-%{dl_ffversion}.tar.bz2 |
13 |
|
|
Source2: http://garr.dl.sourceforge.net/project/fontforge/fontforge-docs/fontforge_htdocs-%{docversion}.tar.bz2 |
14 |
doktor5000 |
158412 |
Source3: http://fontforge.sourceforge.net/cidmaps.tgz |
15 |
pterjan |
21120 |
Source4: http://fontforge.sourceforge.net/fontforge-tutorial.pdf |
16 |
|
|
Source11: %{name}-16x16.png |
17 |
|
|
Source12: %{name}-32x32.png |
18 |
|
|
Source13: %{name}-48x48.png |
19 |
|
|
Patch0: fontforge-%{version}-uni-nodevel.patch |
20 |
doktor5000 |
158412 |
Patch1: fontforge-1.0-20100501-mga-local-helpdir.patch |
21 |
pterjan |
21120 |
# Patches from Debian |
22 |
|
|
Patch10: 008_libgif.diff |
23 |
|
|
Patch11: 024_def_background.diff |
24 |
tv |
303406 |
# Patches from OpenSuse: |
25 |
fwang |
436903 |
Patch21: libpng16-dynamic.diff |
26 |
pterjan |
21120 |
URL: http://fontforge.sourceforge.net/ |
27 |
|
|
BuildRequires: freetype2-devel |
28 |
|
|
BuildRequires: jpeg-devel |
29 |
|
|
BuildRequires: png-devel |
30 |
|
|
BuildRequires: tiff-devel |
31 |
|
|
BuildRequires: libungif-devel |
32 |
|
|
BuildRequires: libxml2-devel |
33 |
tv |
303409 |
BuildRequires: libx11-devel |
34 |
doktor5000 |
235150 |
# (Abel) it wants either autotrace or potrace |
35 |
|
|
Requires: fonttracer |
36 |
pterjan |
21120 |
# (Abel) libuninameslist.so.0 is a runtime dependency via dlopen() |
37 |
|
|
Requires: %{mklibname uninameslist 0} |
38 |
|
|
BuildRequires: libuninameslist-devel |
39 |
|
|
BuildRequires: chrpath |
40 |
tv |
303406 |
# (tv) libpng is a runtime dependency via dlopen() |
41 |
fwang |
436903 |
Requires: %{mklibname png 16 16} |
42 |
pterjan |
21120 |
|
43 |
|
|
%description |
44 |
|
|
FontForge is an outline font editor that lets you create your own |
45 |
|
|
postscript, truetype, opentype, cid-keyed, multi-master, cff, svg and |
46 |
|
|
bitmap (bdf) fonts, or edit existing ones. Also lets you convert one |
47 |
|
|
format to another. FontForge has support for many macintosh font formats. |
48 |
|
|
|
49 |
|
|
%prep |
50 |
shlomif |
292435 |
%setup -q -n fontforge-%{dl_ffversion} |
51 |
pterjan |
21120 |
%patch0 -p1 -b .uninames |
52 |
doktor5000 |
158412 |
%patch1 -p1 -b .helpdir |
53 |
pterjan |
21120 |
%patch10 -p1 -b .libgif |
54 |
|
|
%patch11 -p1 -b .background |
55 |
tv |
303406 |
%patch21 -p0 -b .libpng2 |
56 |
pterjan |
21120 |
install -m 644 %{SOURCE4} . |
57 |
|
|
|
58 |
|
|
mkdir -p htdocs cidmap |
59 |
|
|
tar xjf %{SOURCE2} -C htdocs |
60 |
doktor5000 |
158412 |
tar xf %{SOURCE3} -C cidmap |
61 |
pterjan |
21120 |
|
62 |
|
|
%build |
63 |
shlomif |
292435 |
# For the motivation behind --without-freetype-src, see: |
64 |
|
|
# http://sourceforge.net/mailarchive/forum.php?thread_name=m3pqthbe44.fsf%%40jhcloos.com&forum_name=fontforge-devel |
65 |
|
|
# (Replace the double-percent with a single percent.). |
66 |
|
|
%configure2_5x --disable-shared --without-freetype-src |
67 |
doktor5000 |
158412 |
%make |
68 |
pterjan |
21120 |
|
69 |
|
|
%install |
70 |
|
|
rm -rf %{buildroot} |
71 |
|
|
%makeinstall |
72 |
|
|
|
73 |
|
|
rm -rf %{buildroot}%{_libdir} |
74 |
|
|
|
75 |
|
|
# XDG compliance |
76 |
|
|
mkdir -p %{buildroot}%{_datadir}/applications |
77 |
dams |
452186 |
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF |
78 |
pterjan |
21120 |
[Desktop Entry] |
79 |
|
|
Name=FontForge |
80 |
|
|
Comment=%{Summary} |
81 |
|
|
Exec=%{name} |
82 |
|
|
Icon=%{name} |
83 |
|
|
Terminal=false |
84 |
|
|
Type=Application |
85 |
|
|
StartupNotify=true |
86 |
|
|
Categories=Graphics;Scanning;OCR;Office;Viewer; |
87 |
|
|
EOF |
88 |
|
|
|
89 |
|
|
# icons |
90 |
|
|
install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png |
91 |
|
|
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png |
92 |
|
|
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png |
93 |
|
|
|
94 |
|
|
# added with htdocs in %doc section |
95 |
|
|
rm -rf %{buildroot}%{_datadir}/doc/fontforge |
96 |
|
|
|
97 |
|
|
rm -rf %{buildroot}%{_includedir} |
98 |
|
|
|
99 |
|
|
chrpath -d %{buildroot}%{_bindir}/%{name} |
100 |
|
|
|
101 |
|
|
%find_lang FontForge |
102 |
|
|
|
103 |
|
|
%files -f FontForge.lang |
104 |
|
|
%defattr(-,root,root) |
105 |
|
|
%doc LICENSE htdocs README-unix README-Unix.html fontforge-tutorial.pdf |
106 |
|
|
%{_bindir}/* |
107 |
|
|
%{_mandir}/man1/* |
108 |
|
|
%{_iconsdir}/hicolor/16x16/apps/%{name}.png |
109 |
|
|
%{_iconsdir}/hicolor/32x32/apps/%{name}.png |
110 |
|
|
%{_iconsdir}/hicolor/48x48/apps/%{name}.png |
111 |
dams |
452186 |
%{_datadir}/applications/%{name}.desktop |
112 |
pterjan |
21120 |
%{_datadir}/fontforge |