]> git.pld-linux.org Git - packages/SVGATextMode.git/blob - SVGATextMode.spec
- buildprereq: bison
[packages/SVGATextMode.git] / SVGATextMode.spec
1 Summary:        A utility for improving the appearance of text consoles.
2 Name:           SVGATextMode
3 Version:        1.9
4 Release:        2
5 Copyright:      GPL
6 Group:          Applications/System
7 Source0:        ftp://sunsite.unc.edu/pub/Linux/utils/console/%{name}-%{version}-src.tar.gz 
8 Source1:        %{name}.init
9 Patch0:         SVGATextMode-src-conf.patch
10 Patch1:         SVGATextMode-src-agp.patch
11 Patch2:         SVGATextMode-src-make.patch
12 BuildRequires:  bison
13 Prereq:         /sbin/chkconfig
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 ExclusiveArch:  %{ix86} alpha
16
17 %description
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.
25
26 Although SVGATextMode can be used to program any text
27 mode size, your results will depend on your VGA card.
28
29 %description -l pl
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
34 od¶wierzania itp.
35
36 %prep
37 %setup -q -n %{name}-%{version}-src
38 %patch0 -p1 -b .conf
39 %patch1 -p1 -b .agp
40 %patch2 -p1 -b .make
41
42 %build
43 make dep
44 make all
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
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}
52
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}
56
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
62
63 %clean 
64 rm -rf $RPM_BUILD_ROOT
65
66 %post
67 /sbin/chkconfig --add %{name} 2>/dev/null
68
69 %preun
70 if [ "$1" = "0" ]; then
71         /sbin/chkconfig --del %{name} 2>/dev/null
72 fi
73
74 %files
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
78 %doc doc/*
79 %attr(755,root,root) %{_sbindir}/*
80 %attr(644,root,root) %{_mandir}/man*/*
81 %attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.072916 seconds and 4 git commands to generate.