%define name tosh_lcd %define version 1.0.1 %define release 1mdk Name: %{name} Version: %{version} Release: %{release} Summary: Program for changing LCD panel brightness on Toshiba laptops Source: %{name}-%{version}.tar.bz2 URL: http://libxg.free.fr/tosh_lcd/ Group: System/Kernel and hardware BuildRoot: %{_tmppath}/%{name}-buildroot Copyright: GPL Prefix: %{_prefix} #Requires: /dev/toshiba %description Program for changing brightness and width of the LCD panel of Toshiba laptops. Requires the Toshiba driver and the device /dev/toshiba (mknod --mode=0666 /dev/toshiba c 10 181) Tosh_lcd can be used by any user having write access on /dev/toshiba %prep mkdir -p $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT %setup %build make all %install mkdir -p $RPM_BUILD_ROOT%{_prefix} make install prefix=$RPM_BUILD_ROOT%{_prefix} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,0755) %doc README NEWS COPYING AUTHORS /usr/bin/tosh_lcd %changelog * Wed Jan 24 2001 xg 1.0.1 - make rpm package * Wed Apr 19 2000 xg 1.0.0 - Initial creation