1 |
pterjan |
21120 |
%define ffversion 20090923 |
2 |
|
|
%define docversion 20090914 |
3 |
|
|
%define Summary Font Editor for PostScript, TrueType, OpenType and various fonts |
4 |
|
|
|
5 |
|
|
Name: fontforge |
6 |
|
|
Version: 1.0 |
7 |
|
|
Release: %mkrel 0.%{ffversion}.3 |
8 |
|
|
Summary: %{Summary} |
9 |
|
|
License: BSD-like |
10 |
|
|
Group: Publishing |
11 |
|
|
Source0: http://fontforge.sourceforge.net/fontforge_full-%{ffversion}.tar.bz2 |
12 |
|
|
Source2: http://fontforge.sourceforge.net/fontforge_htdocs-%{docversion}.tar.bz2 |
13 |
|
|
Source3: http://fontforge.sourceforge.net/cidmaps.tar.bz2 |
14 |
|
|
Source4: http://fontforge.sourceforge.net/fontforge-tutorial.pdf |
15 |
|
|
Source11: %{name}-16x16.png |
16 |
|
|
Source12: %{name}-32x32.png |
17 |
|
|
Source13: %{name}-48x48.png |
18 |
|
|
Patch0: fontforge-%{version}-uni-nodevel.patch |
19 |
|
|
Patch1: fontforge-%{version}-local-helpdir.patch |
20 |
|
|
# Patches from Debian |
21 |
|
|
Patch10: 008_libgif.diff |
22 |
|
|
Patch11: 024_def_background.diff |
23 |
|
|
URL: http://fontforge.sourceforge.net/ |
24 |
|
|
# (Abel) it wants either autotrace or potrace |
25 |
|
|
Requires: fonttracer |
26 |
|
|
Requires: tetex-mfwin |
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 |
|
|
# (Abel) libuninameslist.so.0 is a runtime dependency via dlopen() |
34 |
|
|
Requires: %{mklibname uninameslist 0} |
35 |
|
|
BuildRequires: libuninameslist-devel |
36 |
|
|
BuildRequires: chrpath |
37 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
38 |
|
|
|
39 |
|
|
%description |
40 |
|
|
FontForge is an outline font editor that lets you create your own |
41 |
|
|
postscript, truetype, opentype, cid-keyed, multi-master, cff, svg and |
42 |
|
|
bitmap (bdf) fonts, or edit existing ones. Also lets you convert one |
43 |
|
|
format to another. FontForge has support for many macintosh font formats. |
44 |
|
|
|
45 |
|
|
%prep |
46 |
|
|
%setup -q -n fontforge-%{ffversion} |
47 |
|
|
%patch0 -p1 -b .uninames |
48 |
|
|
%patch1 -p1 -b .helpdir |
49 |
|
|
%patch10 -p1 -b .libgif |
50 |
|
|
%patch11 -p1 -b .background |
51 |
|
|
install -m 644 %{SOURCE4} . |
52 |
|
|
|
53 |
|
|
# needed by patch |
54 |
|
|
#autoconf |
55 |
|
|
|
56 |
|
|
mkdir -p htdocs cidmap |
57 |
|
|
tar xjf %{SOURCE2} -C htdocs |
58 |
|
|
tar xjf %{SOURCE3} -C cidmap |
59 |
|
|
|
60 |
|
|
%build |
61 |
|
|
%configure2_5x \ |
62 |
|
|
--with-multilayer \ |
63 |
|
|
--with-devicetables \ |
64 |
|
|
--disable-shared |
65 |
|
|
make |
66 |
|
|
|
67 |
|
|
%install |
68 |
|
|
rm -rf %{buildroot} |
69 |
|
|
%makeinstall |
70 |
|
|
|
71 |
|
|
rm -rf %{buildroot}%{_libdir} |
72 |
|
|
|
73 |
|
|
# XDG compliance |
74 |
|
|
mkdir -p %{buildroot}%{_datadir}/applications |
75 |
|
|
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF |
76 |
|
|
[Desktop Entry] |
77 |
|
|
Name=FontForge |
78 |
|
|
Comment=%{Summary} |
79 |
|
|
Exec=%{name} |
80 |
|
|
Icon=%{name} |
81 |
|
|
Terminal=false |
82 |
|
|
Type=Application |
83 |
|
|
StartupNotify=true |
84 |
|
|
Categories=Graphics;Scanning;OCR;Office;Viewer; |
85 |
|
|
EOF |
86 |
|
|
|
87 |
|
|
# icons |
88 |
|
|
install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png |
89 |
|
|
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png |
90 |
|
|
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png |
91 |
|
|
|
92 |
|
|
# added with htdocs in %doc section |
93 |
|
|
rm -rf %{buildroot}%{_datadir}/doc/fontforge |
94 |
|
|
|
95 |
|
|
rm -rf %{buildroot}%{_includedir} |
96 |
|
|
|
97 |
|
|
chrpath -d %{buildroot}%{_bindir}/%{name} |
98 |
|
|
|
99 |
|
|
%find_lang FontForge |
100 |
|
|
|
101 |
|
|
%clean |
102 |
|
|
rm -rf %{buildroot} |
103 |
|
|
|
104 |
|
|
%files -f FontForge.lang |
105 |
|
|
%defattr(-,root,root) |
106 |
|
|
%doc LICENSE htdocs README-unix README-Unix.html fontforge-tutorial.pdf |
107 |
|
|
%{_bindir}/* |
108 |
|
|
%{_mandir}/man1/* |
109 |
|
|
%{_iconsdir}/hicolor/16x16/apps/%{name}.png |
110 |
|
|
%{_iconsdir}/hicolor/32x32/apps/%{name}.png |
111 |
|
|
%{_iconsdir}/hicolor/48x48/apps/%{name}.png |
112 |
|
|
%{_datadir}/applications/mandriva-%{name}.desktop |
113 |
|
|
%{_datadir}/fontforge |
114 |
|
|
|
115 |
|
|
|
116 |
|
|
|