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.14.0
Release: alt3
License: GPL
Group: System/Kernel and hardware
Url: http://forge.novell.com/modules/xfmod/project/?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
Packager: Damir Shayhutdinov <damir at altlinux.ru>
Patch0: powersave-0.10.22-disable-videobios.patch
Patch1: powersave-0.10.15-disable-suspend.patch
# Automatically added by buildreq on Mon Apr 24 2006
BuildRequires: doxygen gcc-c++ gcc-g77 glibc-devel-static libcpufreq-devel libdbus-glib-devel libhal-devel libsysfs-devel linux-libc-headers lynx pkg-config
BuildPreReq: fillup >= 1.42-alt4
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
%__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%_sysconfdir/rc.d/init.d
%__install -m755 %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/rc.d/init.d/powersaved
%__rm -f $RPM_BUILD_ROOT%_sbindir/rcpowersaved
%find_lang power-management
%files -f power-management.lang
%doc docs/README* docs/powersave.html docs/powersave_manual.txt contrib
%_sbindir/*
%_bindir/*
%exclude %_bindir/on_ac_power
%_libexecdir/powersave
%_mandir/*/*
%_initdir/powersaved
%_fillupdir/*
%_sysconfdir/dbus-1/system.d/powersave.conf
%_sysconfdir/acpi/*
%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 -n lib%name
%post_ldconfig
%preun
%preun_service powersaved
%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.14.0
Release: alt3
License: GPL
Group: System/Kernel and hardware
Url: http://forge.novell.com/modules/xfmod/project/?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
Packager: Damir Shayhutdinov <damir at altlinux.ru>
Patch0: powersave-0.10.22-disable-videobios.patch
Patch1: powersave-0.10.15-disable-suspend.patch
# Automatically added by buildreq on Mon Apr 24 2006
BuildRequires: doxygen gcc-c++ gcc-g77 glibc-devel-static libcpufreq-devel libdbus-glib-devel libhal-devel libsysfs-devel linux-libc-headers lynx pkg-config
BuildPreReq: fillup >= 1.42-alt4
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
%__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%_sysconfdir/rc.d/init.d
%__install -m755 %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/rc.d/init.d/powersaved
%__rm -f $RPM_BUILD_ROOT%_sbindir/rcpowersaved
%find_lang power-management
%files -f power-management.lang
%doc docs/README* docs/powersave.html docs/powersave_manual.txt contrib
%_sbindir/*
%_bindir/*
%exclude %_bindir/on_ac_power
%_libexecdir/powersave
%_mandir/*/*
%_initdir/powersaved
%_fillupdir/*
%_sysconfdir/dbus-1/system.d/powersave.conf
%_sysconfdir/acpi/*
%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 -n lib%name
%post_ldconfig
%preun
%preun_service powersaved
%postun -n lib%name
%postun_ldconfig
%changelog
…
Todas as alterações você pod ver aqui