1 Summary: A utility for improving the appearance of text consoles.
6 Group: Applications/System
7 Source0: ftp://sunsite.unc.edu/pub/Linux/utils/console/%{name}-%{version}-src.tar.gz
9 Patch0: SVGATextMode-src-conf.patch
10 Patch1: SVGATextMode-src-agp.patch
11 Patch2: SVGATextMode-src-make.patch
13 Prereq: /sbin/chkconfig
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 ExclusiveArch: %{ix86} alpha
18 SVGATextMode is a utility for reprogramming (S)VGA hardware,
19 which can improve the appearance of text consoles.
20 You should install SVGATextMode if you want to alter the
21 appearance of your text consoles. The utility uses a
22 configuration file (Xconfig or XF86Config) to set up
23 textmodes with higher resolution, larger fonts, higher
24 display refresh rates, etc.
26 Although SVGATextMode can be used to program any text
27 mode size, your results will depend on your VGA card.
30 SVGATextMode jest narzêdziem s³u¿±cym konfiguracji sprzêtu
31 (S)VGA, które pozwala na polepszenie wygl±du konsoli tekstowej.
32 To narzêdzie wykorzystuje plik konfiguracyjny by ustawiaæ
33 wy¿sze rozdzielczo¶ci, wiêksze fonty, wy¿sze czêstotliwo¶ci
37 %setup -q -n %{name}-%{version}-src
47 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
50 install -d $RPM_BUILD_ROOT%{_sbindir}
51 install -d $RPM_BUILD_ROOT%{_mandir}/man{5,8}
53 make DESTDIR=$RPM_BUILD_ROOT newinstall man-install
54 install -m 0755 STMmenu $RPM_BUILD_ROOT%{_sbindir}/stm-menu
55 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
57 rm $RPM_BUILD_ROOT%{_mandir}/man8/stm.8
58 echo ".so SVGATextMode.8" > $RPM_BUILD_ROOT%{_mandir}/man8/stm.8
59 strip $RPM_BUILD_ROOT%{_sbindir}/* || :
60 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* doc/* README
61 gzip -9nf README.FIRST CREDITS COPYING HISTORY TODO
64 rm -rf $RPM_BUILD_ROOT
67 /sbin/chkconfig --add %{name} 2>/dev/null
70 if [ "$1" = "0" ]; then
71 /sbin/chkconfig --del %{name} 2>/dev/null
75 %defattr(644,root,root,755)
76 %config(noreplace) %verify(not size mtime md5) /etc/TextConfig
77 %doc {README,README.FIRST,CREDITS,COPYING,HISTORY,TODO}.gz
79 %attr(755,root,root) %{_sbindir}/*
80 %attr(644,root,root) %{_mandir}/man*/*
81 %attr(754,root,root) /etc/rc.d/init.d/%{name}