]> git.pld-linux.org Git - packages/gnome-power-manager.git/blob - gnome-power-manager.spec
Update to 3.12.0
[packages/gnome-power-manager.git] / gnome-power-manager.spec
1 Summary:        GNOME Power Manager
2 Summary(pl.UTF-8):      Zarządca energii dla GNOME
3 Name:           gnome-power-manager
4 Version:        3.12.0
5 Release:        1
6 License:        GPL v2+
7 Group:          X11/Applications
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gnome-power-manager/3.12/%{name}-%{version}.tar.xz
9 # Source0-md5:  a465189ddbadaae944323a4ad8e23327
10 URL:            http://www.gnome.org/projects/gnome-power-manager/
11 BuildRequires:  autoconf >= 2.65
12 BuildRequires:  automake >= 1:1.11
13 BuildRequires:  cairo-devel >= 1.0.0
14 BuildRequires:  docbook-dtd41-sgml
15 BuildRequires:  docbook-dtd43-xml
16 BuildRequires:  docbook-utils
17 BuildRequires:  gettext-devel
18 BuildRequires:  glib2-devel >= 1:2.36.0
19 BuildRequires:  gnome-common >= 2.24.0
20 BuildRequires:  gnome-doc-utils >= 0.14.0
21 BuildRequires:  gtk+3-devel >= 3.3.8
22 BuildRequires:  intltool >= 0.50.0
23 BuildRequires:  libtool
24 BuildRequires:  pkgconfig
25 BuildRequires:  rpmbuild(find_lang) >= 1.23
26 BuildRequires:  rpmbuild(macros) >= 1.601
27 BuildRequires:  tar >= 1:1.22
28 BuildRequires:  upower-devel >= 0.9.1
29 BuildRequires:  xz
30 Requires(post,postun):  glib2 >= 1:2.26.0
31 Requires(post,postun):  gtk-update-icon-cache
32 Requires:       glib2 >= 1:2.36.0
33 Requires:       gnome-icon-theme
34 Requires:       gnome-session >= 3.0.0
35 Requires:       gnome-themes-standard
36 Requires:       hicolor-icon-theme
37 Requires:       upower >= 0.9.1
38 Obsoletes:      gnome-power
39 # sr@Latn vs. sr@latin
40 Conflicts:      glibc-misc < 6:2.7
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 Uses of GNOME Power Manager infrastructure
45 - A dialogue that warns the user when on UPS power, that automatically
46   begins a kind shutdown when the power gets critically low.
47 - An icon that allows a user to dim the LCD screen with a slider, and
48   does do automatically when going from mains to battery power on a
49   laptop.
50 - An icon, that when an additional battery is inserted, updates its
51   display to show two batteries and recalculates how much time
52   remaining. Would work for wireless mouse and keyboards, UPS's and
53   PDA's.
54 - A daemon that does a clean shutdown when the battery is critically
55   low or does a soft-suspend when you close the lid on your laptop (or
56   press the "suspend" button on your PC).
57 - Tell Totem to use a codec that does low quality processing to
58   conserve battery power.
59 - Postpone indexing of databases (e.g. up2date) or other heavy
60   operations until on mains power.
61 - Presentation programs / movie players don't want the screensaver
62   starting or screen blanking.
63
64 %description -l pl.UTF-8
65 Zastosowania infrastruktury zarządcy energii GNOME:
66 - okno dialogowe ostrzegające użytkownika o zasilaniu z UPS-a,
67   automatycznie rozpoczynające uprzejme zamykanie systemu, kiedy
68   zasilanie jest w stanie krytycznym
69 - ikona umożliwiająca użytkownikowi przyciemnienie ekranu LCD przy
70   użyciu suwaka i robiąca to automatycznie przy przełączaniu z głównego
71   źródła zasilania na baterie w laptopie
72 - ikona, która po dołożeniu dodatkowej baterii uaktualnia wskaźnik,
73   aby pokazywał dwie baterie i przelicza ilość pozostałego czasu;
74   powinna działać dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA
75 - demon wykonujący czyste zamknięcie systemu, kiedy bateria jest w
76   stanie krytycznym i wykonujący zamrożenie systemu (soft-suspend) przy
77   zamykaniu pokrywy laptopa (albo naciśnięciu przycisku "suspend")
78 - informowanie Totema, aby używał kodeka o niższej jakości w celu
79   zaoszczędzenia energii baterii
80 - wstrzymywanie indeksowania baz danych (np. up2date) i innych
81   ciężkich operacji do czasu podłączenia głównego źródła zasilania
82 - zapobieganie uruchomieniu wygaszacza ekranu i samemu wygaszaniu
83   ekranu podczas działania programów prezentacyjnych i odtwarzaczy
84   filmów
85
86 %prep
87 %setup -q
88
89 %build
90 %{__libtoolize}
91 %{__intltoolize}
92 %{__aclocal}
93 %{__automake}
94 %{__autoheader}
95 %{__autoconf}
96 %configure \
97         --disable-silent-rules
98 %{__make}
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT
105
106 %find_lang %{name} --with-gnome --all-name
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %post
112 %update_icon_cache HighContrast
113 %update_icon_cache hicolor
114 %glib_compile_schemas
115
116 %postun
117 %update_icon_cache HighContrast
118 %update_icon_cache hicolor
119 %glib_compile_schemas
120
121 %files -f %{name}.lang
122 %defattr(644,root,root,755)
123 %doc AUTHORS ChangeLog NEWS README
124 %attr(755,root,root) %{_bindir}/gnome-power-statistics
125 %{_mandir}/man1/*.1*
126 %{_datadir}/appdata/gnome-power-statistics.appdata.xml
127 %{_datadir}/glib-2.0/schemas/org.gnome.power-manager.gschema.xml
128 %{_desktopdir}/gnome-power-statistics.desktop
129 %{_iconsdir}/HighContrast/*/*/*
130 %{_iconsdir}/hicolor/*/*/*
This page took 0.119538 seconds and 4 git commands to generate.