]> git.pld-linux.org Git - packages/SVGATextMode.git/blob - SVGATextMode.spec
new spec/updated specs
[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:        1
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 Prereq:         /sbin/chkconfig
13 BuildRoot:      /tmp/%{name}-%{version}-buildroot
14 ExclusiveArch:  %{ix86} alpha
15
16 %description
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.
24
25 Although SVGATextMode can be used to program any text
26 mode size, your results will depend on your VGA card.
27
28 %description -l pl
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
33 od¶wierzania itp.
34
35 %prep
36 %setup -q -n %{name}-%{version}-src
37 %patch0 -p1 -b .conf
38 %patch1 -p1 -b .agp
39 %patch2 -p1 -b .make
40
41 %build
42 make dep
43 make all
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
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}
51
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}
55
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
61
62 %clean 
63 rm -rf $RPM_BUILD_ROOT
64
65 %post
66 /sbin/chkconfig --add %{name} 2>/dev/null
67
68 %preun
69 if [ "$1" = "0" ]; then
70         /sbin/chkconfig --del %{name} 2>/dev/null
71 fi
72
73 %files
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
77 %doc doc/*
78 %attr(755,root,root) %{_sbindir}/*
79 %attr(644,root,root) %{_mandir}/man*/*
80 %attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.07898 seconds and 3 git commands to generate.