source: projects/specs/trunk/b/battfink/battfink-vl.spec @ 521

Revision 521, 2.4 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1%define version 0.4
2%define name battfink
3
4Summary: Battfink is a power management preference dialog.
5Summary(ja): Battfink ¥Ñ¥ï¡¼¥Þ¥Í¡¼¥¸¥á¥ó¥ÈÀßÄê¥À¥¤¥¢¥í¥°
6Name: %{name}
7Version: %{version}
8Release: 0vl1
9URL: http://ftp.gnome.org/pub/GNOME/sources/battfink/%{version}/
10Source: http://ftp.gnome.org/pub/GNOME/sources/battfink/%{version}/%{name}-%{version}.tar.bz2
11License: GPL
12Group: Applications/System
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14BuildPrereq: gtk2-devel, libglade2-devel, libgnomeui-devel, GConf2-devel
15BuildPrereq: desktop-file-utils
16Requires: apmd, gtk2, libglade2, libgnomeui, GConf2
17PreReq: scrollkeeper
18
19%description
20Battfink is a power management preference dialog that allows you to
21manage the power saving options for your desktop.
22
23Battfink allows you to configure your display power saving options,
24setting timeouts for standby, suspend and power off.
25
26Battfink also allows you to display a notification icon in the
27Panel Notification Area for your battery status. If a battery is
28not available, then a simple plug icon will be displayed to show
29that 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
46desktop-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
56scrollkeeper-update > /dev/null 2>&1 || :
57export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
58SCHEMAS="%{name}.schemas"
59for S in $SCHEMAS; do
60  gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
61done
62
63%postun
64scrollkeeper-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
Note: See TracBrowser for help on using the repository browser.