summaryrefslogtreecommitdiffstats
path: root/packaging/mandriva.2007.1.kpowersave.spec
blob: 5c53459ccee6c642fa31bf1e2736415a3ce47cfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
%define name kpowersave
%define version 0.7.2
%define release %mkrel 1

Summary: 	KDE power management applet
Name: 		%{name}
Version:	%{version}
Release: 	%{release}
Source0: 	http://prdownloads.sourceforge.net/powersave/%{name}-%{version}.tar.bz2

License: 	GPL
Group: 		Graphical desktop/KDE
Url: 		http://powersave.sourceforge.net/
BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: 	hal-devel, libdbus-qt-1-devel, tdelibs-devel
%ifarch x86_64
BuildRequires:  lib64qt3-devel, lib64qt3-static-devel lib64gamin-1_0-devel lib64art_lgpl2-devel lib64tdecore4-devel
%else
BuildRequires:  libtqt3-devel libtqt3-static-devel libgamin-1_0-devel libart_lgpl2-devel libtdecore4-devel
%endif
BuildRequires: 	autoconf2.5 automake1.8
%if %mdkversion > 200600
BuildRequires:	libxscrnsaver-devel libxtst-devel
%endif
Requires:     	hal >= 0.5.8.1 /sbin/pidof /usr/bin/xset
%ifarch x86_64  
Requires:     	lib64dbus-qt-1_1 
%else
Requires:     	libdbus-qt-1_1 
%endif
%description
KPowersave provides battery monitoring, CPU frequency control and suspend/standby
triggers and more power management features for KDE. It uses HAL (formerly the
powersave daemon) and supports APM and ACPI for several architectures.

Authors:
--------
    Danny Kukawka (dkukawka@suse.de, danny.kukawka@web.de)
    Thomas Renninger (trenn@suse.de, mail@renninger.de)


#--------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

%build
%make -f admin/Makefile.common cvs
%configure --disable-rpath
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%find_lang %{name}

mkdir -p $RPM_BUILD_ROOT%{_menudir}
kdedesktop2mdkmenu.pl %{name} "System/Monitoring" $RPM_BUILD_ROOT%{_datadir}/applications/tde/kpowersave.desktop $RPM_BUILD_ROOT%{_menudir}/%{name}
install -D -m 644 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 644 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png %{buildroot}%{_liconsdir}/%{name}.png
install -D -m 644 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png %{buildroot}%{_miconsdir}/%{name}.png

%post
%{update_menus}
%if %mdkversion > 200600
%update_icon_cache hicolor
%endif

%postun
%{clean_menus}
%if %mdkversion > 200600
%clean_icon_cache hicolor
%endif

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc README AUTHORS ChangeLog COPYING INSTALL
%{_bindir}/%{name}
%{_datadir}/config/kpowersaverc
%{_datadir}/autostart/kpowersave-autostart.desktop
%{_datadir}/apps/%{name}
%{_iconsdir}/hicolor/*/apps/*.png
%{_datadir}/icons/*.png
%{_datadir}/applications/tde/kpowersave.desktop
%doc %{_docdir}/HTML/*/kpowersave
%{_libdir}/trinity/*
%{_libdir}/*.so
%{_libdir}/*.la
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_menudir}/%{name}

%changelog