1 | Summary: A Power Manager for MATE |
---|
2 | Name: mate-power-manager |
---|
3 | Version: 1.16.2 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | License: GPLv2 |
---|
6 | Group: Applications/System |
---|
7 | URL: http://mate-desktop.org/ |
---|
8 | |
---|
9 | Source0: http://pub.mate-desktop.org/releases/1.16/%{name}-%{version}.tar.xz |
---|
10 | |
---|
11 | # patch for Vine |
---|
12 | Patch1001: mate-power-manager-1.16.0-use-vine-sleep-helper.patch |
---|
13 | Patch1002: mate-power-manager-1.12.0-vine-settings.patch |
---|
14 | |
---|
15 | BuildRequires: mate-common |
---|
16 | BuildRequires: mate-doc-utils |
---|
17 | BuildRequires: libnotify-devel |
---|
18 | BuildRequires: mate-desktop-devel |
---|
19 | BuildRequires: mate-panel-devel |
---|
20 | BuildRequires: gtk2-devel |
---|
21 | BuildRequires: dbus-glib-devel |
---|
22 | BuildRequires: libcanberra-devel |
---|
23 | BuildRequires: libwnck-devel |
---|
24 | BuildRequires: unique-devel |
---|
25 | BuildRequires: upower-devel |
---|
26 | BuildRequires: popt-devel |
---|
27 | BuildRequires: libgnome-keyring-devel |
---|
28 | BuildRequires: yelp-tools |
---|
29 | BuildRequires: gtk-doc |
---|
30 | BuildRequires: autoconf |
---|
31 | BuildRequires: automake |
---|
32 | |
---|
33 | Requires: vine-sleep-helper |
---|
34 | Requires(posttrans,postun): glib2 |
---|
35 | Requires(post,postun): desktop-file-utils |
---|
36 | |
---|
37 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
38 | |
---|
39 | Vendor: Project Vine |
---|
40 | Distribution: Vine Linux |
---|
41 | Packager: Takemikaduchi, iwaim |
---|
42 | |
---|
43 | |
---|
44 | %description |
---|
45 | MATE Power Manager is a MATE session daemon that acts as a policy agent on top of |
---|
46 | UPower, which requires fairly new versions of the kernel and udev. |
---|
47 | MATE Power Manager listens for system events and responds with user-configurable actions. |
---|
48 | |
---|
49 | MATE Power Manager comes in three main parts: |
---|
50 | |
---|
51 | - mate-power-manager: the manager daemon itself |
---|
52 | - mate-power-preferences: the control panel program, for configuration |
---|
53 | - mate-power-statistics: the statistics graphing program |
---|
54 | |
---|
55 | |
---|
56 | %prep |
---|
57 | %setup -q |
---|
58 | %patch1001 -p1 -b .vine |
---|
59 | %patch1002 -p1 -b .vine |
---|
60 | |
---|
61 | %build |
---|
62 | NOCONFIGURE=1 ./autogen.sh |
---|
63 | %configure \ |
---|
64 | --libexecdir=%{_libexecdir}/mate \ |
---|
65 | --disable-static |
---|
66 | |
---|
67 | %{__make} %{?_smp_mflags} |
---|
68 | |
---|
69 | |
---|
70 | %install |
---|
71 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
72 | |
---|
73 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
74 | |
---|
75 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
76 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
77 | |
---|
78 | %find_lang %{name} |
---|
79 | |
---|
80 | |
---|
81 | %clean |
---|
82 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
83 | |
---|
84 | %post |
---|
85 | /sbin/ldconfig |
---|
86 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
87 | touch --no-create %{_datadir}/icons/hicolor |
---|
88 | gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
89 | |
---|
90 | %postun |
---|
91 | /sbin/ldconfig |
---|
92 | if [ $1 -eq 0 ]; then |
---|
93 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
94 | touch --no-create %{_datadir}/icons/hicolor |
---|
95 | gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
96 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
97 | fi |
---|
98 | |
---|
99 | %posttrans |
---|
100 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
101 | |
---|
102 | |
---|
103 | %files -f %{name}.lang |
---|
104 | %defattr(-,root,root,-) |
---|
105 | %doc COPYING ChangeLog NEWS README |
---|
106 | %{_sysconfdir}/xdg/autostart/mate-power-manager.desktop |
---|
107 | %{_bindir}/mate-power-manager |
---|
108 | %{_bindir}/mate-power-preferences |
---|
109 | %{_bindir}/mate-power-statistics |
---|
110 | %{_libexecdir}/mate/mate-brightness-applet |
---|
111 | %{_libexecdir}/mate/mate-inhibit-applet |
---|
112 | %{_sbindir}/mate-power-backlight-helper |
---|
113 | %{_datadir}/applications/mate-power-preferences.desktop |
---|
114 | %{_datadir}/applications/mate-power-statistics.desktop |
---|
115 | %{_datadir}/dbus-1/services/org.mate.panel.applet.BrightnessAppletFactory.service |
---|
116 | %{_datadir}/dbus-1/services/org.mate.panel.applet.InhibitAppletFactory.service |
---|
117 | %{_datadir}/dbus-1/services/org.mate.PowerManager.service |
---|
118 | %{_datadir}/glib-2.0/schemas/org.mate.power-manager.gschema.xml |
---|
119 | %{_datadir}/icons/hicolor/*/*/* |
---|
120 | %{_datadir}/help/* |
---|
121 | %{_datadir}/mate-panel/applets/org.mate.BrightnessApplet.mate-panel-applet |
---|
122 | %{_datadir}/mate-panel/applets/org.mate.InhibitApplet.mate-panel-applet |
---|
123 | %{_datadir}/%{name} |
---|
124 | %{_datadir}/polkit-1/actions/org.mate.power.policy |
---|
125 | %{_mandir}/man1/*.1.gz |
---|
126 | |
---|
127 | |
---|
128 | %changelog |
---|
129 | * Sun Mar 26 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.2-1 |
---|
130 | - update to 1.16.2 |
---|
131 | |
---|
132 | * Sun Nov 27 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.0-1 |
---|
133 | - new upstream release |
---|
134 | - update use-vine-sleep-helper.patch (Patch1001) |
---|
135 | - update Packager |
---|
136 | |
---|
137 | * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1 |
---|
138 | - new upstream release |
---|
139 | |
---|
140 | * Tue Dec 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.1-1 |
---|
141 | - new upstream release |
---|
142 | |
---|
143 | * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1 |
---|
144 | - new upstream release |
---|
145 | - update Patch1001 (mate-power-manager-1.12.0-use-vine-sleep-helper.patch) |
---|
146 | - update Patch1002 (mate-power-manager-1.12.0-vine-settings.patch) |
---|
147 | |
---|
148 | * Wed Sep 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-1 |
---|
149 | - new upstream release |
---|
150 | |
---|
151 | * Sun Aug 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-3 |
---|
152 | - add Patch1001 (mate-power-manager-1.10.1-use-vine-sleep-helper.patch) |
---|
153 | - add Patch1002 (mate-power-manager-1.10.1-vine-settings.patch) |
---|
154 | - add Requires: vine-sleep-helper |
---|
155 | |
---|
156 | * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-2 |
---|
157 | - remove BuildRequires: libmatekeyring-devel |
---|
158 | |
---|
159 | * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-1 |
---|
160 | - new upstream release |
---|
161 | |
---|
162 | * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1 |
---|
163 | - new upstream release |
---|
164 | - remove Patch0 (mate-power-manager_dbus_interface_keyboard_backlight_controls.patch) |
---|
165 | - add BuildRequires: mate-desktop-devel |
---|
166 | |
---|
167 | * Wed Nov 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1 |
---|
168 | - new upstream release |
---|
169 | - remove Patch1-5 |
---|
170 | |
---|
171 | * Sun Sep 21 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-2 |
---|
172 | - change BuildRequires: upower-devel instead of libupower09-devel |
---|
173 | - add BuildRequires: yelp-tools |
---|
174 | - add Patch0-5 from fedora |
---|
175 | |
---|
176 | * Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1 |
---|
177 | - new upstream release |
---|
178 | - add BuildRequires: libgnome-keyring-devel, libupower09-devel, itstool |
---|
179 | - remove BuildRequires: upower-devel |
---|
180 | |
---|
181 | * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.3-1 |
---|
182 | - new upstream release |
---|
183 | |
---|
184 | * Sun Sep 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.2-1 |
---|
185 | - new upstream release |
---|
186 | |
---|
187 | * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1 |
---|
188 | - new upstream release |
---|
189 | - remove BuildRequires: mate-conf-devel, libmatenotify-devel |
---|
190 | - add BuildRequires: libnotify-devel |
---|
191 | |
---|
192 | * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1 |
---|
193 | - new upstream release |
---|
194 | |
---|
195 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-1 |
---|
196 | - new upstream release |
---|
197 | |
---|
198 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2 |
---|
199 | - change category |
---|
200 | |
---|
201 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
202 | - initial build for Vine Linux |
---|
203 | |
---|