]> git.pld-linux.org Git - packages/gnome-power-manager.git/blob - gnome-power-manager.spec
595cc2096e7c783f42c7e05950ac47c363dcd39c
[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.30.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.30/%{name}-%{version}.tar.xz
9 # Source0-md5:  762c9533d21996fd7a7fb1c5105cdfb6
10 URL:            http://www.gnome.org/projects/gnome-power-manager/
11 BuildRequires:  appdata-tools
12 BuildRequires:  cairo-devel >= 1.0.0
13 BuildRequires:  docbook-dtd41-sgml
14 BuildRequires:  docbook-dtd43-xml
15 BuildRequires:  docbook-utils
16 BuildRequires:  gettext-tools
17 BuildRequires:  glib2-devel >= 1:2.46.0
18 BuildRequires:  gnome-common >= 2.24.0
19 BuildRequires:  gnome-doc-utils >= 0.14.0
20 BuildRequires:  gtk+3-devel >= 3.3.8
21 BuildRequires:  libtool
22 BuildRequires:  meson
23 BuildRequires:  ninja
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.46.0
31 Requires(post,postun):  gtk-update-icon-cache
32 Requires:       glib2 >= 1:2.46.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 %meson build
91 %ninja_build -C build
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %ninja_install -C build
97
98 %find_lang %{name} --with-gnome --all-name
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %post
104 %update_icon_cache hicolor
105 %glib_compile_schemas
106
107 %postun
108 %update_icon_cache hicolor
109 %glib_compile_schemas
110
111 %files -f %{name}.lang
112 %defattr(644,root,root,755)
113 %doc AUTHORS README
114 %attr(755,root,root) %{_bindir}/gnome-power-statistics
115 %{_mandir}/man1/*.1*
116 %{_datadir}/metainfo/org.gnome.PowerStats.appdata.xml
117 %{_datadir}/glib-2.0/schemas/org.gnome.power-manager.gschema.xml
118 %{_desktopdir}/org.gnome.PowerStats.desktop
119 %{_iconsdir}/hicolor/*/*/*
This page took 0.041626 seconds and 2 git commands to generate.