Package powersave: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | 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@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@renninger.de, trenn@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@/bin/dbus-send@%_bindir/dbus-send@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 * Thu Oct 16 2008 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.15.20-alt1.M41.2 - run cpufreq-detect.sh before HAL * Fri Oct 10 2008 Michail Yakushin <silicium@altlinux.ru> 0.15.20-alt1.M41.1 - add cpufreq-detect.sh script * Sun Apr 06 2008 Damir Shayhutdinov <damir@altlinux.ru> 0.15.20-alt1 - New upstream version * Sat Oct 20 2007 Damir Shayhutdinov <damir@altlinux.ru> 0.15.11-alt3 - New upstream version * Fri Jan 19 2007 Damir Shayhutdinov <damir@altlinux.ru> 0.14.0-alt3 - Move libraries into separate subpackage (#10686) - Fix initscript (raorn@, #10776) * Thu Dec 28 2006 Damir Shayhutdinov <damir@altlinux.ru> 0.14.0-alt2 - Rebuilt with new dbus * Mon Dec 11 2006 Damir Shayhutdinov <damir@altlinux.ru> 0.14.0-alt1 - NMU - New version * Tue Jul 04 2006 Anton Farygin <rider@altlinux.ru> 0.12.20-alt1 - new version * Fri Apr 21 2006 Anton Farygin <rider@altlinux.ru> 0.12.11-alt2 - pkg-config added * Fri Apr 21 2006 Anton Farygin <rider@altlinux.ru> 0.12.11-alt1 - new version * Thu Apr 06 2006 Anton Farygin <rider@altlinux.ru> 0.12.2-alt2 - fixed powersave configs location (#9372) * Wed Mar 22 2006 Anton Farygin <rider@altlinux.ru> 0.12.2-alt1 - new version * Tue Feb 21 2006 Anton Farygin <rider@altlinux.ru> 0.10.22-alt2 - new version * Sun Oct 30 2005 Anton Farygin <rider@altlinux.ru> 0.10.15.1-alt2 - post-scripts fixed * Wed Oct 26 2005 Anton Farygin <rider@altlinux.ru> 0.10.15.1-alt1 - new version - fixed powersaved initscript * Mon Oct 17 2005 Anton Farygin <rider@altlinux.ru> 0.10.15-alt1 - updated to new version - disabled suspend2disk by default (swsuspend don't work with std-* kernels) * Tue Jul 05 2005 Anton Farygin <rider@altlinux.ru> 0.9.25-alt2 - fixed negative values into polling select interval * Tue Jul 05 2005 Anton Farygin <rider@altlinux.ru> 0.9.25-alt1 - first build for ALT Linux |