]> git.pld-linux.org Git - packages/SVGATextMode.git/blob - SVGATextMode.spec
67080e4197ce68dc7ab7eca8fd65be14f70951ab
[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 License:        GPL
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
9 Source1:        %{name}.init
10 Patch0:         SVGATextMode-src-conf.patch
11 Patch1:         SVGATextMode-src-agp.patch
12 Patch2:         SVGATextMode-src-make.patch
13 BuildRequires:  bison
14 Prereq:         /sbin/chkconfig
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 ExclusiveArch:  %{ix86} alpha
17
18 %description
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.
25
26 Although SVGATextMode can be used to program any text mode size, your
27 results will depend on your VGA card.
28
29 %description -l pl
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.
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) %{_sysconfdir}/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.072664 seconds and 3 git commands to generate.