]> git.pld-linux.org Git - packages/bogl.git/blame - bogl.spec
- fixed md5
[packages/bogl.git] / bogl.spec
CommitLineData
b8c32bd8
PZ
1Summary: A terminal program for displaying Unicode on the console.
2Name: bogl
3Version: 0.1.18
4Release: 1
5License: GPL
6Group: System Environment/Libraries
7Source0: %{name}_%{version}-1.tar.gz
8# Source0-md5: 9658700ed196eb1789c12aca0a095cb5
9Source1: wlite-0.8.1.tar.gz
10# Source1-md5: 03a2faa33978e88ea2b9ff4679b8f2df
11Source2: http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz
82936dea 12# Source2-md5: cca6a3cb6cfbde5f3ebb24278a9022a4
b8c32bd8 13Source3: http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-asian.tar.gz
82936dea 14# Source3-md5: d3184f182c6eebfcf156d08a65696496
b8c32bd8
PZ
15Source4: 14x14cjk.bdf.gz
16# Source4-md5: c08ab351a43a91632127f509aadc6797
17Patch0: bogl-0.1.18-rh.patch
18Patch1: bogl-0.1.9-fpic.patch
19Patch3: bogl-0.1.9-2.6fbdev.patch
20Patch4: bogl-0.1.18-gcc.patch
21Patch5: bogl-0.1.18-noexecstack.patch
22URL: http://www.msu.edu/user/pfaffben/projects.html
23BuildRequires: gd-devel
24BuildRequires: libpng-devel
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28BOGL stands for Ben's Own Graphics Library. It is a small graphics
29library for Linux kernel frame buffers. It supports only very simple
30graphics.
31
32%package devel
33Summary: Development files required to build BOGL applications.
34Group: Development/Libraries
35Requires: bogl = %{epoch}:%{version}-%{release}
36
37%description devel
38The bogl-devel package contains the static libraries and header files
39for writing BOGL applications.
40
41%package bterm
42Summary: A Unicode capable terminal program for the Linux frame buffer.
43Group: Applications/System
44Requires: bogl = %{epoch}:%{version}-%{release}
45
46%description bterm
47The bterm application is a terminal emulator that displays to a Linux
48frame 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
58mkdir -p fonts
59cd fonts
60tar zxf %{SOURCE2}
61tar zxf %{SOURCE3}
62
63%build
64make CFLAGS="$RPM_OPT_FLAGS"
65#./mergebdf fonts/9x18.bdf fonts/18x18ja.bdf > font.bdf
66gunzip -c %{SOURCE4} > font.bdf
67./bdftobogl -b font.bdf > font.bgf
68
69%install
70rm -rf $RPM_BUILD_ROOT
71make DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} install
72make -C wlite prefix=$RPM_BUILD_ROOT/%{_prefix} libdir=$RPM_BUILD_ROOT/%{_libdir} install
73if [ -f wlite/libwlitediet.a ]; then
74 install -m 644 wlite/libwlitediet.a $RPM_BUILD_ROOT/%{_libdir}
75fi
76mkdir -p $RPM_BUILD_ROOT/usr/lib/bogl/
77cp font.bgf $RPM_BUILD_ROOT/usr/lib/bogl/
78cp font.bdf $RPM_BUILD_ROOT/usr/lib/bogl/
79gzip -9 $RPM_BUILD_ROOT/usr/lib/bogl/font.bdf
80gzip -9 $RPM_BUILD_ROOT/usr/lib/bogl/font.bgf
81
82%clean
83rm -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
This page took 0.150365 seconds and 4 git commands to generate.