/[packages]/updates/5/fontforge/current/SPECS/fontforge.spec
ViewVC logotype

Contents of /updates/5/fontforge/current/SPECS/fontforge.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30