%define version @VERSION@ %define name battfink Summary: Battfink is a power management preference dialog. Name: %{name} Version: %{version} Release: 1 Vendor: GNOME URL: http://ftp.gnome.org/pub/GNOME/sources/battfink/%{version}/ Source: http://ftp.gnome.org/pub/GNOME/sources/battfink/%{version}/%{name}-%{version}.tar.bz2 License: GPL Group: Applications/System Packager: Glynn Foster BuildRoot: %{_tmppath}/%{name}-buildroot BuildPrereq: gtk2-devel, libglade2-devel, libgnomeui-devel, GConf2-devel Requires: apmd, gtk2, libglade2, libgnomeui, GConf2 Provides: %{name} %define rpm_prefix /usr %description Battfink is a power management preference dialog that allows you to manage the power saving options for your desktop. Battfink allows you to configure your display power saving options, setting timeouts for standby, suspend and power off. Battfink also allows you to display a notification icon in the Panel Notification Area for your battery status. If a battery is not available, then a simple plug icon will be displayed to show that the system is running on AC power. %prep %setup -q [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %{__rm} -rf $RPM_BUILD_ROOT %build ./configure --prefix=%{rpm_prefix} %{__make} all %install [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %{__rm} -rf $RPM_BUILD_ROOT %{__make} prefix=$RPM_BUILD_ROOT%{rpm_prefix} install %clean [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog HACKING INSTALL %doc NEWS README THANKS TODO %{rpm_prefix} %changelog * Thu Mar 06 2003 Glynn Foster - first release for version 0.1