1 | Summary: A Power Manager for MATE |
---|
2 | Name: mate-power-manager |
---|
3 | Version: 1.8.1 |
---|
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.8/%{name}-%{version}.tar.xz |
---|
10 | |
---|
11 | # from fedora |
---|
12 | # upstream patch |
---|
13 | # https://github.com/mate-desktop/mate-power-manager/pull/60 |
---|
14 | # Add DBUS interface to kbdbacklight control |
---|
15 | Patch0: mate-power-manager_dbus_interface_keyboard_backlight_controls.patch |
---|
16 | |
---|
17 | BuildRequires: mate-common |
---|
18 | BuildRequires: mate-doc-utils |
---|
19 | BuildRequires: libmatekeyring-devel |
---|
20 | BuildRequires: libnotify-devel |
---|
21 | BuildRequires: mate-panel-devel |
---|
22 | BuildRequires: gtk2-devel |
---|
23 | BuildRequires: dbus-glib-devel |
---|
24 | BuildRequires: libcanberra-devel |
---|
25 | BuildRequires: libwnck-devel |
---|
26 | BuildRequires: unique-devel |
---|
27 | BuildRequires: upower-devel |
---|
28 | BuildRequires: popt-devel |
---|
29 | BuildRequires: libgnome-keyring-devel |
---|
30 | BuildRequires: yelp-tools |
---|
31 | BuildRequires: gtk-doc |
---|
32 | BuildRequires: autoconf |
---|
33 | BuildRequires: automake |
---|
34 | |
---|
35 | Requires(posttrans,postun): glib2 |
---|
36 | Requires(post,postun): desktop-file-utils |
---|
37 | |
---|
38 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
39 | |
---|
40 | Vendor: Project Vine |
---|
41 | Distribution: Vine Linux |
---|
42 | Packager: Takemikaduchi |
---|
43 | |
---|
44 | |
---|
45 | %description |
---|
46 | MATE Power Manager is a MATE session daemon that acts as a policy agent on top of |
---|
47 | UPower, which requires fairly new versions of the kernel and udev. |
---|
48 | MATE Power Manager listens for system events and responds with user-configurable actions. |
---|
49 | |
---|
50 | MATE Power Manager comes in three main parts: |
---|
51 | |
---|
52 | - mate-power-manager: the manager daemon itself |
---|
53 | - mate-power-preferences: the control panel program, for configuration |
---|
54 | - mate-power-statistics: the statistics graphing program |
---|
55 | |
---|
56 | |
---|
57 | %prep |
---|
58 | %setup -q |
---|
59 | %patch0 -p1 -b .dbus |
---|
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 | %exclude %{_bindir}/mate-power-bugreport |
---|
108 | %exclude %{_bindir}/mate-power-manager-bugreport |
---|
109 | %{_bindir}/mate-power-manager |
---|
110 | %{_bindir}/mate-power-preferences |
---|
111 | %{_bindir}/mate-power-statistics |
---|
112 | %{_libexecdir}/mate/mate-brightness-applet |
---|
113 | %{_libexecdir}/mate/mate-inhibit-applet |
---|
114 | %{_sbindir}/mate-power-backlight-helper |
---|
115 | %{_datadir}/MateConf/gsettings/mate-power-manager.convert |
---|
116 | %{_datadir}/applications/mate-power-preferences.desktop |
---|
117 | %{_datadir}/applications/mate-power-statistics.desktop |
---|
118 | %{_datadir}/dbus-1/services/mate-power-manager.service |
---|
119 | %{_datadir}/dbus-1/services/org.mate.panel.applet.BrightnessAppletFactory.service |
---|
120 | %{_datadir}/dbus-1/services/org.mate.panel.applet.InhibitAppletFactory.service |
---|
121 | %{_datadir}/glib-2.0/schemas/org.mate.power-manager.gschema.xml |
---|
122 | %{_datadir}/icons/hicolor/*/*/* |
---|
123 | %{_datadir}/help/* |
---|
124 | %{_datadir}/mate-2.0/ui/*.xml |
---|
125 | %{_datadir}/mate-panel/applets/org.mate.BrightnessApplet.mate-panel-applet |
---|
126 | %{_datadir}/mate-panel/applets/org.mate.InhibitApplet.mate-panel-applet |
---|
127 | %{_datadir}/%{name} |
---|
128 | %{_datadir}/polkit-1/actions/org.mate.power.policy |
---|
129 | %{_mandir}/man1/*.1.gz |
---|
130 | |
---|
131 | |
---|
132 | %changelog |
---|
133 | * Wed Nov 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1 |
---|
134 | - new upstream release |
---|
135 | - remove Patch1-5 |
---|
136 | |
---|
137 | * Sun Sep 21 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-2 |
---|
138 | - change BuildRequires: upower-devel instead of libupower09-devel |
---|
139 | - add BuildRequires: yelp-tools |
---|
140 | - add Patch0-5 from fedora |
---|
141 | |
---|
142 | * Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1 |
---|
143 | - new upstream release |
---|
144 | - add BuildRequires: libgnome-keyring-devel, libupower09-devel, itstool |
---|
145 | - remove BuildRequires: upower-devel |
---|
146 | |
---|
147 | * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.3-1 |
---|
148 | - new upstream release |
---|
149 | |
---|
150 | * Sun Sep 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.2-1 |
---|
151 | - new upstream release |
---|
152 | |
---|
153 | * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1 |
---|
154 | - new upstream release |
---|
155 | - remove BuildRequires: mate-conf-devel, libmatenotify-devel |
---|
156 | - add BuildRequires: libnotify-devel |
---|
157 | |
---|
158 | * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1 |
---|
159 | - new upstream release |
---|
160 | |
---|
161 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-1 |
---|
162 | - new upstream release |
---|
163 | |
---|
164 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2 |
---|
165 | - change category |
---|
166 | |
---|
167 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
168 | - initial build for Vine Linux |
---|
169 | |
---|