summaryrefslogtreecommitdiffstats
path: root/packaging/mandriva.2007.1.tdepowersave.spec
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2013-07-14 19:31:37 -0500
committerDarrell Anderson <[email protected]>2013-07-14 19:31:37 -0500
commit933e53832eeb45c6f660dcf46bed5dc68aaf24c2 (patch)
tree532a8a0d9b144be6e26b587904578cd3253a126f /packaging/mandriva.2007.1.tdepowersave.spec
parente49bd16b78beb8f75a079916b6d4e8d2ce457c58 (diff)
downloadtdepowersave-933e53832eeb45c6f660dcf46bed5dc68aaf24c2.tar.gz
tdepowersave-933e53832eeb45c6f660dcf46bed5dc68aaf24c2.zip
Update references from kpowersave to tdepowersave.
Diffstat (limited to 'packaging/mandriva.2007.1.tdepowersave.spec')
-rw-r--r--packaging/mandriva.2007.1.tdepowersave.spec98
1 files changed, 98 insertions, 0 deletions
diff --git a/packaging/mandriva.2007.1.tdepowersave.spec b/packaging/mandriva.2007.1.tdepowersave.spec
new file mode 100644
index 0000000..f5390f5
--- /dev/null
+++ b/packaging/mandriva.2007.1.tdepowersave.spec
@@ -0,0 +1,98 @@
+%define name tdepowersave
+%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: libqt3-devel libqt3-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
+TDEPowersave 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:
+--------
+
+
+#--------------------------------------------------------------------
+
+%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/tdepowersave.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/tdepowersaverc
+%{_datadir}/autostart/tdepowersave-autostart.desktop
+%{_datadir}/apps/%{name}
+%{_iconsdir}/hicolor/*/apps/*.png
+%{_datadir}/icons/*.png
+%{_datadir}/applications/tde/tdepowersave.desktop
+%doc %{_docdir}/HTML/*/tdepowersave
+%{_libdir}/trinity/*
+%{_libdir}/*.so
+%{_libdir}/*.la
+%{_miconsdir}/%{name}.png
+%{_iconsdir}/%{name}.png
+%{_liconsdir}/%{name}.png
+%{_menudir}/%{name}
+
+%changelog