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