1 Summary: A terminal program for displaying Unicode on the console.
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: cca6a3cb6cfbde5f3ebb24278a9022a4
13 Source3: http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-asian.tar.gz
14 # Source3-md5: d3184f182c6eebfcf156d08a65696496
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)
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
33 Summary: Development files required to build BOGL applications.
34 Group: Development/Libraries
35 Requires: bogl = %{epoch}:%{version}-%{release}
38 The bogl-devel package contains the static libraries and header files
39 for writing BOGL applications.
42 Summary: A Unicode capable terminal program for the Linux frame buffer.
43 Group: Applications/System
44 Requires: bogl = %{epoch}:%{version}-%{release}
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.
51 %setup -q -n bogl -a 1
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
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}
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
83 rm -rf $RPM_BUILD_ROOT
85 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
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
103 %{_includedir}/wlite*
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