]> git.pld-linux.org Git - packages/bogl.git/blame - bogl.spec
- release 9 (by relup.sh)
[packages/bogl.git] / bogl.spec
CommitLineData
f8c106e9
ER
1# TODO
2# - optflags
b89a8594 3Summary: A terminal program for displaying Unicode on the console
7dc2ac00 4Summary(pl.UTF-8): Program terminalowy do wyświetlania Unikodu na konsoli
b8c32bd8
PZ
5Name: bogl
6Version: 0.1.18
36d813ed 7Release: 9
b89a8594 8Epoch: 0
b8c32bd8 9License: GPL
b89a8594 10Group: Libraries
b8c32bd8
PZ
11Source0: %{name}_%{version}-1.tar.gz
12# Source0-md5: 9658700ed196eb1789c12aca0a095cb5
13Source1: wlite-0.8.1.tar.gz
14# Source1-md5: 03a2faa33978e88ea2b9ff4679b8f2df
15Source2: http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz
82936dea 16# Source2-md5: cca6a3cb6cfbde5f3ebb24278a9022a4
b8c32bd8 17Source3: http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-asian.tar.gz
82936dea 18# Source3-md5: d3184f182c6eebfcf156d08a65696496
b8c32bd8
PZ
19Source4: 14x14cjk.bdf.gz
20# Source4-md5: c08ab351a43a91632127f509aadc6797
9ebdc26b 21Patch0: %{name}-0.1.18-rh.patch
22Patch1: %{name}-0.1.9-fpic.patch
23Patch3: %{name}-0.1.9-2.6fbdev.patch
24Patch4: %{name}-0.1.18-gcc.patch
25Patch5: %{name}-0.1.18-noexecstack.patch
4b1b159a 26Patch6: %{name}-page_mask.patch
2da82318 27Patch7: %{name}-shared.patch
b89a8594 28URL: http://www.stanford.edu/~blp/projects.html
b8c32bd8
PZ
29BuildRequires: gd-devel
30BuildRequires: libpng-devel
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
b89a8594
JB
34BOGL stands for Ben's Own Graphics Library. It is a small graphics
35library for Linux kernel framebuffers. It supports only very simple
b8c32bd8
PZ
36graphics.
37
b2f658de
JR
38%description -l pl.UTF-8
39BOGL oznacza Ben's Own Graphics Library (bibliotekę graficzną Bena).
40Jest to mała biblioteka dla framebufferów jądra Linuksa. Obsługuje
41tylko bardzo prostą grafikę.
b89a8594 42
b8c32bd8 43%package devel
b89a8594 44Summary: Development files required to build BOGL applications
7dc2ac00 45Summary(pl.UTF-8): Pliki programistyczne potrzebne do budowania aplikacji BOGL
b8c32bd8 46Group: Development/Libraries
b89a8594 47Requires: %{name} = %{epoch}:%{version}-%{release}
b8c32bd8
PZ
48
49%description devel
b89a8594
JB
50The bogl-devel package contains the header files for writing BOGL
51applications.
52
b2f658de
JR
53%description devel -l pl.UTF-8
54Ten pakiet zawiera pliki nagłówkowe do pisania aplikacji BOGL.
b89a8594
JB
55
56%package static
57Summary: Static BOGL libraries
7dc2ac00 58Summary(pl.UTF-8): Statyczne biblioteki BOGL
b89a8594
JB
59Group: Development/Libraries
60Requires: %{name}-devel = %{epoch}:%{version}-%{release}
61
62%description static
63Static BOGL libraries.
64
b2f658de 65%description static -l pl.UTF-8
b89a8594 66Statyczne biblioteki BOGL.
b8c32bd8
PZ
67
68%package bterm
b89a8594 69Summary: A Unicode capable terminal program for the Linux framebuffer
7dc2ac00 70Summary(pl.UTF-8): Obsługujący Unikod program terminalowy dla linuksowego framebuffera
b8c32bd8 71Group: Applications/System
b89a8594 72Requires: %{name} = %{epoch}:%{version}-%{release}
b8c32bd8
PZ
73
74%description bterm
75The bterm application is a terminal emulator that displays to a Linux
b89a8594
JB
76framebuffer. It is able to display Unicode text on the console.
77
b2f658de
JR
78%description bterm -l pl.UTF-8
79Aplikacja bterm to emulator terminala wyświetlający obraz na
80linuksowym framebufferze. Potrafi wyświetlać tekst unikodowy na
b89a8594 81konsoli.
b8c32bd8
PZ
82
83%prep
b89a8594 84%setup -q -n %{name} -a 1
b8c32bd8
PZ
85%patch0 -p1
86%patch1 -p1
87%patch3 -p1
88%patch4 -p1
89%patch5 -p1
4b1b159a 90%patch6 -p1
2da82318 91%patch7 -p1
b8c32bd8
PZ
92
93mkdir -p fonts
94cd fonts
95tar zxf %{SOURCE2}
96tar zxf %{SOURCE3}
97
98%build
4b1b159a 99%{__make} -j1 \
2da82318 100 CFLAGS="%{rpmcflags} -fPIC"
b8c32bd8
PZ
101#./mergebdf fonts/9x18.bdf fonts/18x18ja.bdf > font.bdf
102gunzip -c %{SOURCE4} > font.bdf
103./bdftobogl -b font.bdf > font.bgf
104
105%install
106rm -rf $RPM_BUILD_ROOT
b89a8594
JB
107
108%{__make} install \
109 DESTDIR=$RPM_BUILD_ROOT \
110 libdir=%{_libdir}
111
112%{__make} -C wlite install \
113 prefix=$RPM_BUILD_ROOT%{_prefix} \
114 libdir=$RPM_BUILD_ROOT%{_libdir}
115
b8c32bd8 116if [ -f wlite/libwlitediet.a ]; then
b89a8594 117 install -m 644 wlite/libwlitediet.a $RPM_BUILD_ROOT%{_libdir}
b8c32bd8 118fi
b89a8594
JB
119install -d $RPM_BUILD_ROOT%{_libdir}/bogl
120install font.bgf $RPM_BUILD_ROOT%{_libdir}/bogl
121install font.bdf $RPM_BUILD_ROOT%{_libdir}/bogl
122gzip -9n $RPM_BUILD_ROOT%{_libdir}/bogl/font.bdf
123gzip -9n $RPM_BUILD_ROOT%{_libdir}/bogl/font.bgf
b8c32bd8
PZ
124
125%clean
126rm -rf $RPM_BUILD_ROOT
127
b89a8594
JB
128%post -p /sbin/ldconfig
129%postun -p /sbin/ldconfig
b8c32bd8
PZ
130
131%files
132%defattr(644,root,root,755)
133%doc README
16b7d1c8 134%attr(755,root,root) %{_libdir}/libbogl.so.*.*
b8c32bd8
PZ
135
136%files devel
137%defattr(644,root,root,755)
138%attr(755,root,root) %{_bindir}/bdftobogl
139%attr(755,root,root) %{_bindir}/mergebdf
140%attr(755,root,root) %{_bindir}/pngtobogl
141%attr(755,root,root) %{_bindir}/reduce-font
16b7d1c8
JB
142%attr(755,root,root) %{_libdir}/libbogl.so
143%{_libdir}/libbterm.a
144%{_libdir}/libwlite.a
b8c32bd8 145%{_includedir}/bogl
16b7d1c8 146%{_includedir}/wlite*.h
b8c32bd8 147
16b7d1c8
JB
148%files static
149%defattr(644,root,root,755)
150%{_libdir}/libbogl.a
b89a8594 151
b8c32bd8
PZ
152%files bterm
153%defattr(644,root,root,755)
154%doc README.BOGL-bterm
155%attr(755,root,root) %{_bindir}/bterm
16b7d1c8 156# XXX: dir duplicated with terminfo package
b8c32bd8
PZ
157%dir %{_datadir}/terminfo/b
158%{_datadir}/terminfo/b/bterm
159%{_libdir}/bogl
This page took 0.076536 seconds and 4 git commands to generate.