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