X-Git-Url: http://git.pld-linux.org/?p=packages%2Ffbset.git;a=blobdiff_plain;f=fbset.spec;h=83118c5580286bc5a37133f38844220a181c6eba;hp=473f77dc2f23b93879610bb1b59f4502877b20f5;hb=b29fdd2a2560c303b665de31442eea09cc96648f;hpb=4ba79093d54ce87160484f066c93ed3f667401ed diff --git a/fbset.spec b/fbset.spec index 473f77d..83118c5 100644 --- a/fbset.spec +++ b/fbset.spec @@ -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