Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37742305
en ru br
Репозитории ALT
S:43.0-alt1
5.1: 2.26.4-alt1
4.1: 2.22.1-alt1
4.0: 2.16.3-alt1
www.altlinux.org/Changes

Группа :: Графические оболочки/GNOME
Пакет: gnome-power-manager

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define ver_major 2.26

%def_enable xevents
%def_enable policykit
%def_enable applets

Name: gnome-power-manager
Version: %ver_major.4
Release: alt1

Summary: A GNOME daemon that takes care of power management.
License: %gpl2plus
Group: Graphical desktop/GNOME
Url: http://www.gnome.org/projects/gnome-power-manager/

Source: %name-%version.tar
#Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
Patch: %name-%version-%release.patch

PreReq: GConf2
Requires: common-licenses gnome-session gnome-filesystem
%{?_enable_policykit:Requires: PolicyKit-gnome}
Requires: DeviceKit-power

BuildRequires(Pre): libGConf-devel
BuildPreReq: rpm-build-gnome >= 0.5
BuildPreReq: rpm-build-licenses

# From configure.in

BuildPreReq: intltool >= 0.35.0
BuildPreReq: gnome-doc-utils >= 0.3.2
BuildPreReq: glib2-devel >= 2.13.0
BuildPreReq: libgtk+2-devel >= 2.11.0
BuildPreReq: libgnome-keyring-devel >= 0.6.0
BuildPreReq: libglade2-devel >= 2.5.0
BuildPreReq: libnotify-devel >= 0.4.3
BuildPreReq: libwnck-devel >= 2.10.0
BuildPreReq: libcairo-devel >= 1.0.0
BuildPreReq: libXrandr-devel >= 1.2
BuildPreReq: libunique-devel >= 1.0.0
BuildPreReq: libgnome-panel-devel >= 2.0.0
BuildPreReq: libcanberra-devel >= 0.10
BuildPreReq: libdevkit-devel >= 001
BuildPreReq: libdevkit-power-devel
BuildPreReq: libhal-devel >= 0.5.8
BuildPreReq: libdbus-devel libdbus-glib-devel >= 0.7.0

# PolicyKit support

%{?_enable_policykit:BuildPreReq: libPolicyKit-gnome-devel libPolicyKit-devel}

BuildPreReq: libXt-devel libX11-devel libXext-devel libXrandr-devel
BuildPreReq: xmlto
# for docbook2man
BuildPreReq: docbook-utils
# contains GNOME_COMPILE_WARNINGS autoconf macro
BuildPreReq: gnome-common

%description
GNOME Power Manager uses information provided by HAL to display icons
and handle system and user actions in a GNOME session. Authorised users
can set policy and change preferences.

GNOME Power Manager acts as a policy agent on top of the Project Utopia
stack, which includes the kernel, hotplug, udev, and HAL.

GNOME Power Manager listens for HAL events and responds with
user-configurable reactions. The main focus here is the user interface;
e.g. allowing configuration of power management from the desktop in a
sane way (no need for root password, and no need to edit configuration
files).

Most of the backend code is actually in HAL for abstracting various
power aware devices (UPS's) and frameworks (ACPI, PMU, APM etc.)
- so the desktop parts are fairly lightweight and straightforward.

GNOME Power Manager comes in three parts:

- gnome-power-manager:    the manager daemon itself
- gnome-power-preferences:  the control panel program, for configuration

%prep
%setup -q
%patch -p1

# Fix icons location

%__subst 's/pkgdatadir/datadir/' data/icons/*/{actions,status}/Makefile.am

mkdir m4

%build
gnome-doc-prepare -f
%autoreconf
%configure \
   --enable-devicekit-power \
   %{subst_enable policykit} \
   --enable-legacy-buttons \
   --enable-tests \
   %{subst_enable applets} \
   --enable-docbook-docs \
   --with-dpms-ext \
   --disable-scrollkeeper \
   --disable-schemas-install

%make_build

%install
%make_install DESTDIR=%buildroot install

# The license

ln -sf %_licensedir/GPL-2 COPYING

%find_lang --with-gnome %name

%post
%gconf2_install %name

%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi

%files -f %name.lang
%_bindir/%name
%_bindir/gnome-power-preferences
%_libexecdir/gnome-brightness-applet
%_libexecdir/gnome-inhibit-applet
%_bindir/gnome-power-bugreport.sh
%_bindir/gnome-power-cmd.sh
%_bindir/gnome-power-statistics
%bonobo_serversdir/GNOME_*Applet.server
%_datadir/gnome-2.0/ui/GNOME_*Applet.xml
%dir %_datadir/%name
%_datadir/%name/*.glade
%_datadir/dbus-1/services/%name.service
%_desktopdir/gnome-power-preferences.desktop
%_desktopdir/gnome-power-statistics.desktop
%_iconsdir/hicolor/*x*/apps/gnome-brightness-applet.png
%_iconsdir/hicolor/*x*/apps/gnome-inhibit-applet.png
%_iconsdir/hicolor/*x*/apps/gnome-power-manager.png
%_iconsdir/hicolor/*x*/apps/gnome-power-statistics.png
%_iconsdir/hicolor/scalable/apps/gnome-brightness-applet.svg
%_iconsdir/hicolor/scalable/apps/gnome-inhibit-applet.svg
%_iconsdir/hicolor/scalable/apps/gnome-power-manager.svg
%_iconsdir/hicolor/scalable/apps/gnome-power-statistics.svg
%_iconsdir/hicolor/*x*/actions/gpm*.png
%_iconsdir/hicolor/*x*/status/gpm*.png
%_iconsdir/hicolor/scalable/actions/gpm*.svg
%_iconsdir/hicolor/scalable/status/gpm*.svg
%_sysconfdir/xdg/autostart/gnome-power-manager.desktop
%config %gconf_schemasdir/%name.schemas
%_man1dir/*.1.gz
%doc --no-dereference COPYING
%doc README NEWS TODO ChangeLog AUTHORS

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin