You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
2.6 KiB
101 lines
2.6 KiB
15 years ago
|
#
|
||
12 years ago
|
# spec file for package tdepowersave (Version 0.7.2)
|
||
15 years ago
|
#
|
||
|
# Copyright (c) hmacht@suse.de, danny.kukawka@web.de
|
||
|
# This file and all modifications and additions to the pristine
|
||
|
# package are under the same license as the package itself.
|
||
|
#
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org
|
||
|
#
|
||
|
|
||
|
# norootforbuild
|
||
|
|
||
|
|
||
12 years ago
|
Name: tdepowersave
|
||
15 years ago
|
License: GPL
|
||
|
Group: System/GUI/KDE
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
Summary: KDE Frontend for Power Management, Battery Monitoring and Suspend
|
||
|
Version: 0.7.2
|
||
|
Release: 2.FC6%{?dist}
|
||
|
ExclusiveArch: %ix86 x86_64 ia64 ppc
|
||
|
Requires: hal >= 0.5.8.1 dbus-qt /sbin/pidof /usr/bin/xset
|
||
|
Source: %{name}-%{version}.tar.bz2
|
||
|
|
||
13 years ago
|
BuildRequires: tdelibs-devel
|
||
15 years ago
|
BuildRequires: gettext
|
||
|
BuildRequires: dbus-qt-devel
|
||
|
BuildRequires: automake
|
||
|
BuildRequires: libXext-devel libXScrnSaver-devel libXtst-devel
|
||
|
BuildRequires: hal-devel desktop-file-utils
|
||
|
|
||
|
%description
|
||
12 years ago
|
TDEPowersave provides battery monitoring, CPU frequency control and suspend/standby
|
||
15 years ago
|
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 -n %{name}-%{version} -q
|
||
|
make -f admin/Makefile.common cvs
|
||
|
|
||
|
%build
|
||
|
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||
|
|
||
|
%configure \
|
||
|
--disable-rpath \
|
||
|
--enable-new-ldflags \
|
||
|
--disable-debug --disable-warnings \
|
||
|
--disable-dependency-tracking
|
||
|
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||
|
|
||
|
desktop-file-install \
|
||
13 years ago
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications/tde \
|
||
15 years ago
|
--vendor="" \
|
||
12 years ago
|
$RPM_BUILD_ROOT%{_datadir}/applications/tde/tdepowersave.desktop
|
||
15 years ago
|
|
||
|
## File lists
|
||
|
# locale's
|
||
|
%find_lang %{name} || touch %{name}.lang
|
||
|
# HTML
|
||
13 years ago
|
HTML_DIR=$(tde-config --expandvars --install html)
|
||
15 years ago
|
if [ -d $RPM_BUILD_ROOT$HTML_DIR ]; then
|
||
|
for lang_dir in $RPM_BUILD_ROOT$HTML_DIR/* ; do
|
||
|
lang=$(basename $lang_dir)
|
||
|
echo "%lang($lang) %doc $HTML_DIR/$lang/*" >> %{name}.lang
|
||
|
done
|
||
|
fi
|
||
|
|
||
|
|
||
|
%post
|
||
|
touch --no-create %{_datadir}/icons/hicolor || :
|
||
|
|
||
|
%postun
|
||
|
touch --no-create %{_datadir}/icons/hicolor || :
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%files -f %{name}.lang
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc README AUTHORS ChangeLog COPYING INSTALL
|
||
12 years ago
|
%{_bindir}/tdepowersave
|
||
|
%{_libdir}/trinity/tdepowersave.*
|
||
|
%{_libdir}/libtdeinit_tdepowersave.*
|
||
|
%{_datadir}/applications/tde/*tdepowersave.desktop
|
||
|
%{_datadir}/apps/tdepowersave/
|
||
|
%{_datadir}/autostart/tdepowersave-autostart.desktop
|
||
|
%{_datadir}/config/tdepowersaverc
|
||
15 years ago
|
%{_datadir}/icons/hicolor/*/*/*
|
||
|
|
||
12 years ago
|
%changelog -n tdepowersave
|