]> git.pld-linux.org Git - packages/SVGATextMode.git/blobdiff - SVGATextMode.spec
- release 2,
[packages/SVGATextMode.git] / SVGATextMode.spec
index b03a4da05ffc5cc62427fc0dc282088095021d2f..8eb5c222e2edf6c0824d5962347d9880c3f10e34 100644 (file)
@@ -1,80 +1,71 @@
 Summary:       A utility for improving the appearance of text consoles.
 Name:          SVGATextMode
-Version:       1.9
+Version:       1.10
 Release:       2
-Copyright:     GPL
+License:       GPL
 Group:         Applications/System
-Source0:       ftp://sunsite.unc.edu/pub/Linux/utils/console/%{name}-%{version}-src.tar.gz 
-Source1:       %{name}.init
-Patch0:                SVGATextMode-src-conf.patch
-Patch1:                SVGATextMode-src-agp.patch
-Patch2:                SVGATextMode-src-make.patch
-Prereq:                /sbin/chkconfig
+Group(de):     Applikationen/System
+Group(pl):     Aplikacje/System
+Source0:       ftp://sunsite.unc.edu/pub/Linux/utils/console/%{name}-%{version}-src.tar.gz
+Patch0:                %{name}-conf.patch
+Patch1:                %{name}-make.patch
+Patch2:                %{name}-cache.patch
+Patch3:                %{name}-stmmenu.patch
+Patch4:                %{name}-set80.patch
+BuildRequires: bison
+Requires:      console-tools
+Requires:      dialog
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 ExclusiveArch: %{ix86} alpha
 
 %description
-SVGATextMode is a utility for reprogramming (S)VGA hardware,
-which can improve the appearance of text consoles.
-You should install SVGATextMode if you want to alter the
-appearance of your text consoles. The utility uses a 
-configuration file (Xconfig or XF86Config) to set up 
-textmodes with higher resolution, larger fonts, higher 
-display refresh rates, etc.
+SVGATextMode is a utility for reprogramming (S)VGA hardware, which can
+improve the appearance of text consoles. You should install
+SVGATextMode if you want to alter the appearance of your text
+consoles. The utility uses a configuration file (Xconfig or
+XF86Config) to set up textmodes with higher resolution, larger fonts,
+higher display refresh rates, etc.
 
-Although SVGATextMode can be used to program any text
-mode size, your results will depend on your VGA card.
+Although SVGATextMode can be used to program any text mode size, your
+results will depend on your VGA card.
 
 %description -l pl
-SVGATextMode jest narzêdziem s³u¿±cym konfiguracji sprzêtu
-(S)VGA, które pozwala na polepszenie wygl±du konsoli tekstowej.
-To narzêdzie wykorzystuje plik konfiguracyjny by ustawiaæ
-wy¿sze rozdzielczo¶ci, wiêksze fonty, wy¿sze czêstotliwo¶ci
-od¶wierzania itp.
+SVGATextMode jest narzêdziem s³u¿±cym konfiguracji sprzêtu (S)VGA,
+które pozwala na polepszenie wygl±du konsoli tekstowej. To narzêdzie
+wykorzystuje plik konfiguracyjny by ustawiaæ wy¿sze rozdzielczo¶ci,
+wiêksze fonty, wy¿sze czêstotliwo¶ci od¶wie¿ania itp.
 
 %prep
-%setup -q -n %{name}-%{version}-src
-%patch0 -p1 -b .conf
-%patch1 -p1 -b .agp
-%patch2 -p1 -b .make
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
-make dep
-make all
+%{__make} dep
+%{__make} all \
+       CFLAGS_DEFAULT="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}" \
+       LDFLAGS_DEFAULT="%{!?debug:-s}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},%{_mandir}/man{5,8}}
 
-install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
-install -d $RPM_BUILD_ROOT%{_sbindir}
-install -d $RPM_BUILD_ROOT%{_mandir}/man{5,8}
+%{__make} DESTDIR=$RPM_BUILD_ROOT newinstall man-install
+install STMmenu $RPM_BUILD_ROOT%{_sbindir}/stm-menu
 
-make   DESTDIR=$RPM_BUILD_ROOT newinstall man-install
-install -m 0755 STMmenu $RPM_BUILD_ROOT%{_sbindir}/stm-menu
-install        %{SOURCE1}      $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
-
-rm        $RPM_BUILD_ROOT%{_mandir}/man8/stm.8
+rm -f $RPM_BUILD_ROOT%{_mandir}/man8/stm.8
 echo ".so SVGATextMode.8" > $RPM_BUILD_ROOT%{_mandir}/man8/stm.8
-strip     $RPM_BUILD_ROOT%{_sbindir}/* || :
-gzip -9nf  $RPM_BUILD_ROOT%{_mandir}/man*/* doc/* README
-gzip -9nf  README.FIRST CREDITS COPYING HISTORY TODO
+
+gzip -9nf doc/* README README.FIRST CREDITS HISTORY TODO
 
 %clean 
 rm -rf $RPM_BUILD_ROOT
 
-%post
-/sbin/chkconfig --add %{name} 2>/dev/null
-
-%preun
-if [ "$1" = "0" ]; then
-       /sbin/chkconfig --del %{name} 2>/dev/null
-fi
-
 %files
 %defattr(644,root,root,755)
-%config(noreplace) %verify(not size mtime md5) /etc/TextConfig
-%doc {README,README.FIRST,CREDITS,COPYING,HISTORY,TODO}.gz
-%doc doc/*
+%doc *.gz doc/*.gz
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/TextConfig
 %attr(755,root,root) %{_sbindir}/*
 %attr(644,root,root) %{_mandir}/man*/*
-%attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.03827 seconds and 4 git commands to generate.