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.
151 lines
4.1 KiB
151 lines
4.1 KiB
13 years ago
|
# Default version for this component
|
||
|
%define kdecomp kpowersave
|
||
|
|
||
|
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||
13 years ago
|
%if "%{?tde_prefix}" != "/usr"
|
||
13 years ago
|
%define _variant .opt
|
||
|
%endif
|
||
|
|
||
|
# TDE 3.5.13 specific building variables
|
||
13 years ago
|
%define tde_bindir %{tde_prefix}/bin
|
||
|
%define tde_datadir %{tde_prefix}/share
|
||
|
%define tde_docdir %{tde_datadir}/doc
|
||
|
%define tde_includedir %{tde_prefix}/include
|
||
|
%define tde_libdir %{tde_prefix}/%{_lib}
|
||
|
%define tde_mandir %{tde_datadir}/man
|
||
|
%define tde_appdir %{tde_datadir}/applications
|
||
|
|
||
|
%define tde_tdeappdir %{tde_appdir}/kde
|
||
|
%define tde_tdedocdir %{tde_docdir}/kde
|
||
|
%define tde_tdeincludedir %{tde_includedir}/kde
|
||
|
%define tde_tdelibdir %{tde_libdir}/trinity
|
||
|
|
||
|
%define _docdir %{tde_docdir}
|
||
13 years ago
|
|
||
|
|
||
|
Name: trinity-%{kdecomp}
|
||
13 years ago
|
Version: 0.7.3
|
||
|
Release: 2%{?dist}%{?_variant}
|
||
13 years ago
|
Summary: HAL based power management applet for Trinityfiles or directories.
|
||
|
|
||
|
License: GPLv2+
|
||
|
Group: Applications/Utilities
|
||
|
|
||
|
Vendor: Trinity Project
|
||
|
Packager: Francois Andriot <francois.andriot@free.fr>
|
||
|
URL: http://www.trinitydesktop.org/
|
||
|
|
||
13 years ago
|
Prefix: %{tde_prefix}
|
||
13 years ago
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
|
|
||
|
Source0: %{kdecomp}-3.5.13.tar.gz
|
||
|
|
||
|
|
||
|
BuildRequires: tqtinterface-devel
|
||
13 years ago
|
BuildRequires: trinity-tdelibs-devel
|
||
|
BuildRequires: trinity-tdebase-devel
|
||
13 years ago
|
BuildRequires: desktop-file-utils
|
||
|
|
||
|
%description
|
||
|
KPowersave is a TDE systray applet which allows to control the power
|
||
|
management settings and policies of your computer.
|
||
|
It relies on HAL to do the heavy lifting.
|
||
|
|
||
|
Current feature list:
|
||
|
* support for ACPI, APM and PMU
|
||
|
* trigger suspend to disk/ram and standby
|
||
|
* switch cpu frequency policy (between: performance, dynamic and powersave)
|
||
|
* applet icon with information about AC state, battery fill and battery
|
||
|
(warning) states
|
||
|
* applet tooltip with information about battery fill and remaining battery
|
||
|
time/percentage
|
||
|
* autosuspend (to suspend the machine if the user has been inactive for a
|
||
|
defined time)
|
||
|
* a global configurable blacklist with programs which prevent autosuspend
|
||
|
(e.g. videoplayer and cd burning tools)
|
||
|
* trigger lock screen and select the lock method
|
||
|
* KNotify support
|
||
|
* online help
|
||
|
* localisations for many languages
|
||
13 years ago
|
|
||
13 years ago
|
KPowersave supports schemes with following configurable specific
|
||
|
settings for:
|
||
|
* screensaver
|
||
|
* DPMS
|
||
|
* autosuspend
|
||
|
* scheme specific blacklist for autosuspend
|
||
|
* notification settings
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n applications/%{kdecomp}
|
||
|
|
||
|
%build
|
||
|
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||
13 years ago
|
export PATH="%{tde_bindir}:${PATH}"
|
||
|
|
||
|
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
|
||
13 years ago
|
|
||
13 years ago
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
%__mkdir_p build
|
||
13 years ago
|
cd build
|
||
13 years ago
|
%endif
|
||
|
|
||
13 years ago
|
%cmake \
|
||
13 years ago
|
-DCMAKE_INSTALL_PREFIX=%{tde_prefix} \
|
||
|
-DBIN_INSTALL_DIR=%{tde_bindir} \
|
||
|
-DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
|
||
|
-DLIB_INSTALL_DIR=%{tde_libdir} \
|
||
|
-DSHARE_INSTALL_PREFIX=%{tde_datadir} \
|
||
|
-DCMAKE_SKIP_RPATH="OFF" \
|
||
13 years ago
|
..
|
||
|
|
||
|
%__make %{?_smp_mflags}
|
||
|
|
||
|
|
||
|
%install
|
||
13 years ago
|
export PATH="%{tde_bindir}:${PATH}"
|
||
13 years ago
|
%__rm -rf %{buildroot}
|
||
|
%__make install DESTDIR=%{buildroot} -C build
|
||
|
|
||
|
|
||
|
%clean
|
||
|
%__rm -rf %{buildroot}
|
||
|
|
||
|
|
||
|
%post
|
||
13 years ago
|
update-desktop-database %{tde_appdir} > /dev/null
|
||
13 years ago
|
/sbin/ldconfig
|
||
13 years ago
|
touch --no-create %{tde_datadir}/icons/hicolor || :
|
||
|
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
||
13 years ago
|
|
||
|
%postun
|
||
13 years ago
|
update-desktop-database %{tde_appdir} > /dev/null
|
||
13 years ago
|
/sbin/ldconfig
|
||
13 years ago
|
touch --no-create %{tde_datadir}/icons/hicolor || :
|
||
|
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
||
13 years ago
|
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
13 years ago
|
%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
||
13 years ago
|
%{tde_bindir}/kpowersave
|
||
|
%{tde_libdir}/libkdeinit_kpowersave.la
|
||
|
%{tde_libdir}/libkdeinit_kpowersave.so
|
||
|
%{tde_tdelibdir}/kpowersave.la
|
||
|
%{tde_tdelibdir}/kpowersave.so
|
||
|
%{tde_tdeappdir}/kpowersave.desktop
|
||
|
%{tde_datadir}/apps/kpowersave/eventsrc
|
||
|
%{tde_datadir}/apps/kpowersave/icons/*/*/*/*.png
|
||
|
%{tde_datadir}/icons/hicolor/*/*/*.png
|
||
|
%{tde_datadir}/autostart/kpowersave-autostart.desktop
|
||
|
%{tde_datadir}/config/kpowersaverc
|
||
13 years ago
|
|
||
|
%Changelog
|
||
13 years ago
|
* Sat Nov 26 2011 Francois Andriot <francois.andriot@free.fr> - 0.7.3-2
|
||
|
- Add missing /sbin/ldconfig
|
||
|
- Add missing doc file
|
||
|
|
||
13 years ago
|
* Sat Nov 19 2011 Francois Andriot <francois.andriot@free.fr> - 0.7.3-1
|
||
|
- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
|