ALT Linux repositórios
Group :: Sistema/Kernel e hardware
RPM: powersave
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: powersave
Summary: General Powermanagement daemon supporting APM and ACPI and CPU frequency scaling
Version: 0.15.20
Release: alt1.M41.2
License: GPL
Group: System/Kernel and hardware
Url: http://sourceforge.net/projects/powersave
Summary: General Powermanagement daemon supporting APM and ACPI and CPU frequency scaling
ExclusiveArch: %ix86 x86_64 ia64
Source0: %name-%version.tar.bz2
Source1: %name.init
Source2: cpufreq-detect.sh
Source3: cpufreq.init
Packager: Damir Shayhutdinov <damir at altlinux.ru>
Patch0: powersave-0.10.22-disable-videobios.patch
Patch1: powersave-0.10.15-disable-suspend.patch
Patch2: powersave-0.15.11-alt-fix-linkage.patch
# Automatically added by buildreq on Mon Apr 24 2006
BuildRequires: doxygen gcc-c++ libcpufreq-devel libdbus-glib-devel libhal-devel libsysfs-devel glibc-kernheaders pkg-config lynx
BuildPreReq: fillup >= 1.42-alt4 liblazy-devel
PreReq: fillup >= 1.42-alt4 hal >= 0.5.4-alt6 acpid
Requires: lib%name = %version-%release
%description
Powersave gives you control over the ACPI power buttons, three user
defined battery states (warning, low, critical) and supports proper
standby/suspend handling.
Additionally it could control the frequency of your processor if it
supports SpeedStep(Intel) or PowerNow(AMD) technology. This will
greatly reduce power consumption and heat production in your system.
Together with the kpowersave it should be the preferred power
managing application.
Authors:
--------
Thomas Renninger (mail at renninger.de, trenn at suse.de)
%package -n lib%name
Summary: Shared library for controlling various ACPI parameters.
Group: System/Libraries
%description -n lib%name
C shared library which provides interface to control various ACPI parameters,
such as CPU frequency, ACPI power buttons, standby/suspend etc.
%package -n lib%name-devel
Summary: Headers for developing programs that will use lib%name
License: GPL
Group: Development/C
Requires: lib%name = %version-%release
Provides: %name-devel = %version-%release
Obsoletes: %name-devel < 0.14.0-alt3
%description -n lib%name-devel
This package contains the headers that programmers will need to develop
applications which will use lib%name.
%prep
%setup -q -n %name-%version
#patch0 -p1
#patch1 -p1
%patch2 -p1
%__subst "s/\/var\/run\/hal\/haldaemon.pid/\/var\/run\/hal\.pid/" daemon/*.cpp
%build
sed -i -e 's/CVS-HEAD/%version/' configure.ac
subst 's,/var/adm/fillup-templates,%_fillupdir,' config_files/Makefile.am
autoreconf -fi
%configure CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS -fno-exceptions" \
--enable-buildenv --libdir=%_libdir --mandir=%_mandir --enable-docs \
--with-kde-bindir=%_bindir --with-gnome-bindir=%_bindir
%make_build -e 'VERSION_NO="\"%version\""'
%install
# Version will be used for link to library: .so.%version, see below in %files
%make install -e DESTDIR=%buildroot POWERSAVE_LIB_VERSION=%version TRANSLATION_DIR="%_datadir/locale/"
# rc script
mkdir -p $RPM_BUILD_ROOT%_initdir
install -pm755 %SOURCE1 $RPM_BUILD_ROOT%_initdir/powersaved
install -pm755 %SOURCE2 $RPM_BUILD_ROOT%_sbindir/cpufreq-detect.sh
install -pm755 %SOURCE3 $RPM_BUILD_ROOT%_initdir/cpufreq
rm -f $RPM_BUILD_ROOT%_sbindir/rcpowersaved
sed -i 's at /bin/dbus-send at %_bindir/dbus-send at g' %buildroot%_libexecdir/powersave/{powersave-notify,scripts/helper_functions}
%find_lang power-management
%files -f power-management.lang
%doc docs/README* docs/powersave.html docs/powersave_manual.txt contrib
%_sbindir/*
%_bindir/*
%_libexecdir/powersave
%_mandir/*/*
%_initdir/*
%_fillupdir/*
%_sysconfdir/dbus-1/system.d/powersave.conf
%_sysconfdir/acpi/*
%exclude %_defaultdocdir/powersave/scripts/restore_default_config
%exclude %_libexecdir/powersave/rcpowersaved
%files -n lib%name
%_libdir/libpowersave*.so.*
%files -n lib%name-devel
%_includedir/*
%_libdir/libpowersave*.so
%_libdir/pkgconfig/*
%post
%fillup_config scheme_acoustic powersave
%fillup_config scheme_performance powersave
%fillup_config scheme_powersave powersave
%fillup_config scheme_presentation powersave
%fillup_config events powersave
%fillup_config thermal powersave
%fillup_config battery powersave
%fillup_config sleep powersave
%fillup_config cpufreq powersave
%fillup_config common powersave
%fillup_config disk powersave
%post_service powersaved
%post_service cpufreq
%post -n lib%name
%post_ldconfig
%preun
%preun_service powersaved
%preun_service cpufreq
%postun -n lib%name
%postun_ldconfig
%changelog
…
Todas as alterações você pod ver aqui
Summary: General Powermanagement daemon supporting APM and ACPI and CPU frequency scaling
Version: 0.15.20
Release: alt1.M41.2
License: GPL
Group: System/Kernel and hardware
Url: http://sourceforge.net/projects/powersave
Summary: General Powermanagement daemon supporting APM and ACPI and CPU frequency scaling
ExclusiveArch: %ix86 x86_64 ia64
Source0: %name-%version.tar.bz2
Source1: %name.init
Source2: cpufreq-detect.sh
Source3: cpufreq.init
Packager: Damir Shayhutdinov <damir at altlinux.ru>
Patch0: powersave-0.10.22-disable-videobios.patch
Patch1: powersave-0.10.15-disable-suspend.patch
Patch2: powersave-0.15.11-alt-fix-linkage.patch
# Automatically added by buildreq on Mon Apr 24 2006
BuildRequires: doxygen gcc-c++ libcpufreq-devel libdbus-glib-devel libhal-devel libsysfs-devel glibc-kernheaders pkg-config lynx
BuildPreReq: fillup >= 1.42-alt4 liblazy-devel
PreReq: fillup >= 1.42-alt4 hal >= 0.5.4-alt6 acpid
Requires: lib%name = %version-%release
%description
Powersave gives you control over the ACPI power buttons, three user
defined battery states (warning, low, critical) and supports proper
standby/suspend handling.
Additionally it could control the frequency of your processor if it
supports SpeedStep(Intel) or PowerNow(AMD) technology. This will
greatly reduce power consumption and heat production in your system.
Together with the kpowersave it should be the preferred power
managing application.
Authors:
--------
Thomas Renninger (mail at renninger.de, trenn at suse.de)
%package -n lib%name
Summary: Shared library for controlling various ACPI parameters.
Group: System/Libraries
%description -n lib%name
C shared library which provides interface to control various ACPI parameters,
such as CPU frequency, ACPI power buttons, standby/suspend etc.
%package -n lib%name-devel
Summary: Headers for developing programs that will use lib%name
License: GPL
Group: Development/C
Requires: lib%name = %version-%release
Provides: %name-devel = %version-%release
Obsoletes: %name-devel < 0.14.0-alt3
%description -n lib%name-devel
This package contains the headers that programmers will need to develop
applications which will use lib%name.
%prep
%setup -q -n %name-%version
#patch0 -p1
#patch1 -p1
%patch2 -p1
%__subst "s/\/var\/run\/hal\/haldaemon.pid/\/var\/run\/hal\.pid/" daemon/*.cpp
%build
sed -i -e 's/CVS-HEAD/%version/' configure.ac
subst 's,/var/adm/fillup-templates,%_fillupdir,' config_files/Makefile.am
autoreconf -fi
%configure CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS -fno-exceptions" \
--enable-buildenv --libdir=%_libdir --mandir=%_mandir --enable-docs \
--with-kde-bindir=%_bindir --with-gnome-bindir=%_bindir
%make_build -e 'VERSION_NO="\"%version\""'
%install
# Version will be used for link to library: .so.%version, see below in %files
%make install -e DESTDIR=%buildroot POWERSAVE_LIB_VERSION=%version TRANSLATION_DIR="%_datadir/locale/"
# rc script
mkdir -p $RPM_BUILD_ROOT%_initdir
install -pm755 %SOURCE1 $RPM_BUILD_ROOT%_initdir/powersaved
install -pm755 %SOURCE2 $RPM_BUILD_ROOT%_sbindir/cpufreq-detect.sh
install -pm755 %SOURCE3 $RPM_BUILD_ROOT%_initdir/cpufreq
rm -f $RPM_BUILD_ROOT%_sbindir/rcpowersaved
sed -i 's at /bin/dbus-send at %_bindir/dbus-send at g' %buildroot%_libexecdir/powersave/{powersave-notify,scripts/helper_functions}
%find_lang power-management
%files -f power-management.lang
%doc docs/README* docs/powersave.html docs/powersave_manual.txt contrib
%_sbindir/*
%_bindir/*
%_libexecdir/powersave
%_mandir/*/*
%_initdir/*
%_fillupdir/*
%_sysconfdir/dbus-1/system.d/powersave.conf
%_sysconfdir/acpi/*
%exclude %_defaultdocdir/powersave/scripts/restore_default_config
%exclude %_libexecdir/powersave/rcpowersaved
%files -n lib%name
%_libdir/libpowersave*.so.*
%files -n lib%name-devel
%_includedir/*
%_libdir/libpowersave*.so
%_libdir/pkgconfig/*
%post
%fillup_config scheme_acoustic powersave
%fillup_config scheme_performance powersave
%fillup_config scheme_powersave powersave
%fillup_config scheme_presentation powersave
%fillup_config events powersave
%fillup_config thermal powersave
%fillup_config battery powersave
%fillup_config sleep powersave
%fillup_config cpufreq powersave
%fillup_config common powersave
%fillup_config disk powersave
%post_service powersaved
%post_service cpufreq
%post -n lib%name
%post_ldconfig
%preun
%preun_service powersaved
%preun_service cpufreq
%postun -n lib%name
%postun_ldconfig
%changelog
…
Todas as alterações você pod ver aqui