]>
Commit | Line | Data |
---|---|---|
f34f4e07 TP |
1 | Summary: Bitmap Font Editor |
2 | Name: gbdfed | |
3 | Version: 1.6 | |
4 | Release: 1 | |
5 | License: BSD 3-Clause | |
6 | Group: X11/Applications | |
7 | Source0: http://sofia.nmsu.edu/~mleisher/Software/gbdfed/%{name}-%{version}.tar.bz2 | |
8 | # Source0-md5: 2a2e1cbfe8566db6d302f0b9ab79b8dd | |
9 | Source1: http://sofia.nmsu.edu/~mleisher/Software/gbdfed/gbdfed16x16.png | |
10 | # Source1-md5: 28625f0878e83687b4c3a293467fc926 | |
11 | Source2: http://sofia.nmsu.edu/~mleisher/Software/gbdfed/gbdfed32x32.png | |
12 | # Source2-md5: da88f074603ef8dc621b05bfda5e09f9 | |
13 | Source3: http://sofia.nmsu.edu/~mleisher/Software/gbdfed/gbdfed48x48.png | |
14 | # Source3-md5: 3681abf22f23a62c48acfca417655dd0 | |
15 | Source4: %{name}.desktop | |
16 | Patch0: %{name}-1.6_64bit.patch | |
17 | Patch1: %{name}-1.6_array-index.patch | |
18 | URL: http://sofia.nmsu.edu/~mleisher/Software/gbdfed/ | |
19 | BuildRequires: freetype-devel | |
20 | BuildRequires: gtk+2-devel >= 2.6 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | A Gtk-based bitmap font (BDF) editor, descendant of XmBDFed. It can | |
25 | import PK/GF fonts, HBF fonts (Han Bitmap Font),Linux console fonts | |
26 | (PSF, CP, FNT), Sun console fonts (vfont), Windows FON/FNT fonts, | |
27 | TrueType fonts and collections, and X server fonts. It exports PSF | |
28 | and HEX fonts and allows you to edit two- and four-bits-per-pixel | |
29 | grayscale fonts. | |
30 | ||
31 | %prep | |
32 | %setup -q | |
33 | %patch0 -p0 | |
34 | %patch1 -p0 | |
35 | ||
36 | %build | |
37 | %configure | |
38 | %{__make} \ | |
39 | DEFINES="-DHAVE_FREETYPE -DHAVE_HBF -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED" | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps,%{_mandir}/man1} | |
44 | ||
45 | install %{name} $RPM_BUILD_ROOT%{_bindir} | |
46 | install -p %{name}.man $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 | |
47 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/%{name}.png | |
48 | install -p %{SOURCE2} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/%{name}.png | |
49 | install -p %{SOURCE3} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/%{name}.png | |
50 | install -p %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir} | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc NEWS README | |
58 | %attr(755,root,root) %{_bindir}/%{name} | |
59 | %{_desktopdir}/%{name}.desktop | |
60 | %{_iconsdir}/hicolor/*x*/apps/%{name}.png | |
61 | %{_mandir}/man1/%{name}.1* |