]>
Commit | Line | Data |
---|---|---|
1 | Summary: A terminal program for displaying Unicode on the console. | |
2 | Name: bogl | |
3 | Version: 0.1.18 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: System Environment/Libraries | |
7 | Source0: %{name}_%{version}-1.tar.gz | |
8 | # Source0-md5: 9658700ed196eb1789c12aca0a095cb5 | |
9 | Source1: wlite-0.8.1.tar.gz | |
10 | # Source1-md5: 03a2faa33978e88ea2b9ff4679b8f2df | |
11 | Source2: http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz | |
12 | # Source2-md5: 10f3f2839d686bc8490421ddb8c001b9 | |
13 | Source3: http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-asian.tar.gz | |
14 | # Source3-md5: cbad2d5e91bab16acf1a92f2814b3f1e | |
15 | Source4: 14x14cjk.bdf.gz | |
16 | # Source4-md5: c08ab351a43a91632127f509aadc6797 | |
17 | Patch0: bogl-0.1.18-rh.patch | |
18 | Patch1: bogl-0.1.9-fpic.patch | |
19 | Patch3: bogl-0.1.9-2.6fbdev.patch | |
20 | Patch4: bogl-0.1.18-gcc.patch | |
21 | Patch5: bogl-0.1.18-noexecstack.patch | |
22 | URL: http://www.msu.edu/user/pfaffben/projects.html | |
23 | BuildRequires: gd-devel | |
24 | BuildRequires: libpng-devel | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | BOGL stands for Ben's Own Graphics Library. It is a small graphics | |
29 | library for Linux kernel frame buffers. It supports only very simple | |
30 | graphics. | |
31 | ||
32 | %package devel | |
33 | Summary: Development files required to build BOGL applications. | |
34 | Group: Development/Libraries | |
35 | Requires: bogl = %{epoch}:%{version}-%{release} | |
36 | ||
37 | %description devel | |
38 | The bogl-devel package contains the static libraries and header files | |
39 | for writing BOGL applications. | |
40 | ||
41 | %package bterm | |
42 | Summary: A Unicode capable terminal program for the Linux frame buffer. | |
43 | Group: Applications/System | |
44 | Requires: bogl = %{epoch}:%{version}-%{release} | |
45 | ||
46 | %description bterm | |
47 | The bterm application is a terminal emulator that displays to a Linux | |
48 | frame buffer. It is able to display Unicode text on the console. | |
49 | ||
50 | %prep | |
51 | %setup -q -n bogl -a 1 | |
52 | %patch0 -p1 | |
53 | %patch1 -p1 | |
54 | %patch3 -p1 | |
55 | %patch4 -p1 | |
56 | %patch5 -p1 | |
57 | ||
58 | mkdir -p fonts | |
59 | cd fonts | |
60 | tar zxf %{SOURCE2} | |
61 | tar zxf %{SOURCE3} | |
62 | ||
63 | %build | |
64 | make CFLAGS="$RPM_OPT_FLAGS" | |
65 | #./mergebdf fonts/9x18.bdf fonts/18x18ja.bdf > font.bdf | |
66 | gunzip -c %{SOURCE4} > font.bdf | |
67 | ./bdftobogl -b font.bdf > font.bgf | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | make DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} install | |
72 | make -C wlite prefix=$RPM_BUILD_ROOT/%{_prefix} libdir=$RPM_BUILD_ROOT/%{_libdir} install | |
73 | if [ -f wlite/libwlitediet.a ]; then | |
74 | install -m 644 wlite/libwlitediet.a $RPM_BUILD_ROOT/%{_libdir} | |
75 | fi | |
76 | mkdir -p $RPM_BUILD_ROOT/usr/lib/bogl/ | |
77 | cp font.bgf $RPM_BUILD_ROOT/usr/lib/bogl/ | |
78 | cp font.bdf $RPM_BUILD_ROOT/usr/lib/bogl/ | |
79 | gzip -9 $RPM_BUILD_ROOT/usr/lib/bogl/font.bdf | |
80 | gzip -9 $RPM_BUILD_ROOT/usr/lib/bogl/font.bgf | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | ||
87 | %postun -p /sbin/ldconfig | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
91 | %doc README | |
92 | %{_libdir}/*.so.* | |
93 | ||
94 | %files devel | |
95 | %defattr(644,root,root,755) | |
96 | %attr(755,root,root) %{_bindir}/bdftobogl | |
97 | %attr(755,root,root) %{_bindir}/mergebdf | |
98 | %attr(755,root,root) %{_bindir}/pngtobogl | |
99 | %attr(755,root,root) %{_bindir}/reduce-font | |
100 | %{_libdir}/*.a | |
101 | %{_libdir}/*.so | |
102 | %{_includedir}/bogl | |
103 | %{_includedir}/wlite* | |
104 | ||
105 | %files bterm | |
106 | %defattr(644,root,root,755) | |
107 | %doc README.BOGL-bterm | |
108 | %attr(755,root,root) %{_bindir}/bterm | |
109 | %dir %{_datadir}/terminfo/b | |
110 | %{_datadir}/terminfo/b/bterm | |
111 | %{_libdir}/bogl | |
112 | ||
113 | %changelog |