[521] | 1 | %define version 0.4 |
---|
| 2 | %define name battfink |
---|
| 3 | |
---|
| 4 | Summary: Battfink is a power management preference dialog. |
---|
| 5 | Summary(ja): Battfink ¥Ñ¥ï¡¼¥Þ¥Í¡¼¥¸¥á¥ó¥ÈÀßÄê¥À¥¤¥¢¥í¥° |
---|
| 6 | Name: %{name} |
---|
| 7 | Version: %{version} |
---|
| 8 | Release: 0vl1 |
---|
| 9 | URL: http://ftp.gnome.org/pub/GNOME/sources/battfink/%{version}/ |
---|
| 10 | Source: http://ftp.gnome.org/pub/GNOME/sources/battfink/%{version}/%{name}-%{version}.tar.bz2 |
---|
| 11 | License: GPL |
---|
| 12 | Group: Applications/System |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | BuildPrereq: gtk2-devel, libglade2-devel, libgnomeui-devel, GConf2-devel |
---|
| 15 | BuildPrereq: desktop-file-utils |
---|
| 16 | Requires: apmd, gtk2, libglade2, libgnomeui, GConf2 |
---|
| 17 | PreReq: scrollkeeper |
---|
| 18 | |
---|
| 19 | %description |
---|
| 20 | Battfink is a power management preference dialog that allows you to |
---|
| 21 | manage the power saving options for your desktop. |
---|
| 22 | |
---|
| 23 | Battfink allows you to configure your display power saving options, |
---|
| 24 | setting timeouts for standby, suspend and power off. |
---|
| 25 | |
---|
| 26 | Battfink also allows you to display a notification icon in the |
---|
| 27 | Panel Notification Area for your battery status. If a battery is |
---|
| 28 | not available, then a simple plug icon will be displayed to show |
---|
| 29 | that the system is running on AC power. |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | %prep |
---|
| 33 | %setup -q |
---|
| 34 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %build |
---|
| 38 | %configure |
---|
| 39 | %{__make} |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | %install |
---|
| 43 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 44 | %makeinstall |
---|
| 45 | |
---|
| 46 | desktop-file-install --vendor gnome --delete-original \ |
---|
| 47 | --dir $RPM_BUILD_ROOT%{_datadir}/control-center-2.0/capplets \ |
---|
| 48 | $RPM_BUILD_ROOT%{_datadir}/control-center-2.0/capplets/* |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | %clean |
---|
| 52 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | %post |
---|
| 56 | scrollkeeper-update > /dev/null 2>&1 || : |
---|
| 57 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
| 58 | SCHEMAS="%{name}.schemas" |
---|
| 59 | for S in $SCHEMAS; do |
---|
| 60 | gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null |
---|
| 61 | done |
---|
| 62 | |
---|
| 63 | %postun |
---|
| 64 | scrollkeeper-update > /dev/null 2>&1 || : |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | %files |
---|
| 68 | %defattr(-,root,root) |
---|
| 69 | %doc AUTHORS COPYING ChangeLog HACKING INSTALL |
---|
| 70 | %doc NEWS README TODO |
---|
| 71 | %{_sysconfdir}/gconf/schemas/%{name}.schemas |
---|
| 72 | %{_bindir}/%{name} |
---|
| 73 | %{_libdir}/bonobo/servers/* |
---|
| 74 | %{_datadir}/%{name}/ |
---|
| 75 | %{_datadir}/control-center-2.0/capplets/*.desktop |
---|
| 76 | %{_datadir}/locale/*/LC_MESSAGES/*.mo |
---|
| 77 | %{_datadir}/omf/%{name}/* |
---|
| 78 | %{_datadir}/pixmaps/%{name}.png |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | %changelog |
---|
| 84 | * Sat Apr 19 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4-0vl1 |
---|
| 85 | - initial build |
---|
| 86 | |
---|