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
12 Prereq: /sbin/chkconfig
13 BuildRoot: /tmp/%{name}-%{version}-buildroot
14 ExclusiveArch: %{ix86} alpha
17 SVGATextMode is a utility for reprogramming (S)VGA hardware,
18 which can improve the appearance of text consoles.
19 You should install SVGATextMode if you want to alter the
20 appearance of your text consoles. The utility uses a
21 configuration file (Xconfig or XF86Config) to set up
22 textmodes with higher resolution, larger fonts, higher
23 display refresh rates, etc.
25 Although SVGATextMode can be used to program any text
26 mode size, your results will depend on your VGA card.
29 SVGATextMode jest narzêdziem s³u¿±cym konfiguracji sprzêtu
30 (S)VGA, które pozwala na polepszenie wygl±du konsoli tekstowej.
31 To narzêdzie wykorzystuje plik konfiguracyjny by ustawiaæ
32 wy¿sze rozdzielczo¶ci, wiêksze fonty, wy¿sze czêstotliwo¶ci
36 %setup -q -n %{name}-%{version}-src
46 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
49 install -d $RPM_BUILD_ROOT%{_sbindir}
50 install -d $RPM_BUILD_ROOT%{_mandir}/man{5,8}
52 make DESTDIR=$RPM_BUILD_ROOT newinstall man-install
53 install -m 0755 STMmenu $RPM_BUILD_ROOT%{_sbindir}/stm-menu
54 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
56 rm $RPM_BUILD_ROOT%{_mandir}/man8/stm.8
57 echo ".so SVGATextMode.8" > $RPM_BUILD_ROOT%{_mandir}/man8/stm.8
58 strip $RPM_BUILD_ROOT%{_sbindir}/* || :
59 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* doc/* README
60 gzip -9nf README.FIRST CREDITS COPYING HISTORY TODO
63 rm -rf $RPM_BUILD_ROOT
66 /sbin/chkconfig --add %{name} 2>/dev/null
69 if [ "$1" = "0" ]; then
70 /sbin/chkconfig --del %{name} 2>/dev/null
74 %defattr(644,root,root,755)
75 %config(noreplace) %verify(not size mtime md5) /etc/TextConfig
76 %doc {README,README.FIRST,CREDITS,COPYING,HISTORY,TODO}.gz
78 %attr(755,root,root) %{_sbindir}/*
79 %attr(644,root,root) %{_mandir}/man*/*
80 %attr(754,root,root) /etc/rc.d/init.d/%{name}