]> git.pld-linux.org Git - packages/SVGATextMode.git/blob - SVGATextMode.spec
- updated to 1.10
[packages/SVGATextMode.git] / SVGATextMode.spec
1 Summary:        A utility for improving the appearance of text consoles.
2 Name:           SVGATextMode
3 Version:        1.10
4 Release:        1
5 License:        GPL
6 Group:          Applications/System
7 Group(de):      Applikationen/System
8 Group(pl):      Aplikacje/System
9 Source0:        ftp://sunsite.unc.edu/pub/Linux/utils/console/%{name}-%{version}-src.tar.gz
10 Source1:        %{name}.init
11 Patch0:         %{name}-conf.patch
12 Patch1:         %{name}-make.patch
13 Patch2:         %{name}-cache.patch
14 BuildRequires:  bison
15 Prereq:         /sbin/chkconfig
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 ExclusiveArch:  %{ix86} alpha
18
19 %description
20 SVGATextMode is a utility for reprogramming (S)VGA hardware, which can
21 improve the appearance of text consoles. You should install
22 SVGATextMode if you want to alter the appearance of your text
23 consoles. The utility uses a configuration file (Xconfig or
24 XF86Config) to set up textmodes with higher resolution, larger fonts,
25 higher display refresh rates, etc.
26
27 Although SVGATextMode can be used to program any text mode size, your
28 results will depend on your VGA card.
29
30 %description -l pl
31 SVGATextMode jest narzêdziem s³u¿±cym konfiguracji sprzêtu (S)VGA,
32 które pozwala na polepszenie wygl±du konsoli tekstowej. To narzêdzie
33 wykorzystuje plik konfiguracyjny by ustawiaæ wy¿sze rozdzielczo¶ci,
34 wiêksze fonty, wy¿sze czêstotliwo¶ci od¶wie¿ania itp.
35
36 %prep
37 %setup -q
38 %patch0 -p1
39 %patch1 -p1
40 %patch2 -p1
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 STMmenu $RPM_BUILD_ROOT%{_sbindir}/stm-menu
55
56 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
57
58 echo ".so SVGATextMode.8" > $RPM_BUILD_ROOT%{_mandir}/man8/stm.8
59
60 gzip -9nf doc/* README \
61         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) %{_sysconfdir}/TextConfig
77 %doc {README,README.FIRST,CREDITS,COPYING,HISTORY,TODO}.gz
78 %doc doc/*.gz
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.070482 seconds and 3 git commands to generate.