1 Summary: A utility for improving the appearance of text consoles.
6 Group: Utilities/System
7 Group(pl): Narzêdzia/System
8 Source0: ftp://sunsite.unc.edu/pub/Linux/utils/console/%{name}-%{version}-src.tar.gz
10 Patch0: SVGATextMode-src-conf.patch
11 Patch1: SVGATextMode-src-agp.patch
12 Patch2: SVGATextMode-src-make.patch
14 Prereq: /sbin/chkconfig
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 ExclusiveArch: %{ix86} alpha
19 SVGATextMode is a utility for reprogramming (S)VGA hardware, which can
20 improve the appearance of text consoles. You should install
21 SVGATextMode if you want to alter the appearance of your text
22 consoles. The utility uses a configuration file (Xconfig or
23 XF86Config) to set up textmodes with higher resolution, larger fonts,
24 higher display refresh rates, etc.
26 Although SVGATextMode can be used to program any text mode size, your
27 results will depend on your VGA card.
30 SVGATextMode jest narzêdziem s³u¿±cym konfiguracji sprzêtu (S)VGA,
31 które pozwala na polepszenie wygl±du konsoli tekstowej. To narzêdzie
32 wykorzystuje plik konfiguracyjny by ustawiaæ wy¿sze rozdzielczo¶ci,
33 wiêksze fonty, wy¿sze czêstotliwo¶ci od¶wierzania itp.
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) %{_sysconfdir}/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}