]> git.pld-linux.org Git - packages/fbset.git/blobdiff - fbset.spec
- use macros in %{pre,post}{,un}
[packages/fbset.git] / fbset.spec
index 473f77dc2f23b93879610bb1b59f4502877b20f5..83118c5580286bc5a37133f38844220a181c6eba 100644 (file)
@@ -2,15 +2,17 @@ Summary:      Framebuffer utilities for changing video modes.
 Summary(pl):   Nardzêdzie do zmieniania trybu graficznego we framebufferze
 Name:          fbset
 Version:       2.1
-Release:       1
+Release:       8
 License:       GPL
 Group:         Applications/System
 Group(de):     Applikationen/System
 Group(pl):     Aplikacje/System
 Source0:       http://www.cs.kuleuven.ac.be/~geert/bin/%{name}-%{version}.tar.gz
-Source1:       fbset.init
-Source2:       fbset.sysconfig
+Source1:       %{name}.init
+Source2:       %{name}.sysconfig
+Patch0:                %{name}-fixmode.patch
 URL:           http://www.cs.kuleuven.ac.be/~geert/Console/
+BuildRequires: flex
 Requires:      open
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -24,9 +26,10 @@ konsolach fbcon.
 
 %prep
 %setup -q
+%patch -p1
 
 %build
-%{__make} OPTFLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}"
+%{__make} CC="%{__cc} %{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -42,12 +45,10 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/fbset
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/fbset
 
 %post
-/sbin/chkconfig --add fbset
+%chkconfig_add
 
 %preun
-if [ "$1" = "0" ]; then
-       /sbin/chkconfig --del fbset
-fi
+%chkconfig_del
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.248811 seconds and 4 git commands to generate.