1 | Summary: A Power Manager for MATE |
---|
2 | Name: mate-power-manager |
---|
3 | Version: 1.8.0 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz |
---|
6 | License: GPLv2 |
---|
7 | Group: Applications/System |
---|
8 | URL: http://mate-desktop.org/ |
---|
9 | |
---|
10 | BuildRequires: mate-common |
---|
11 | BuildRequires: mate-doc-utils |
---|
12 | BuildRequires: libmatekeyring-devel |
---|
13 | BuildRequires: libnotify-devel |
---|
14 | BuildRequires: mate-panel-devel |
---|
15 | BuildRequires: gtk2-devel |
---|
16 | BuildRequires: dbus-glib-devel |
---|
17 | BuildRequires: libcanberra-devel |
---|
18 | BuildRequires: libwnck-devel |
---|
19 | BuildRequires: unique-devel |
---|
20 | BuildRequires: libupower09-devel |
---|
21 | BuildRequires: popt-devel |
---|
22 | BuildRequires: libgnome-keyring-devel |
---|
23 | BuildRequires: itstool |
---|
24 | BuildRequires: gtk-doc |
---|
25 | BuildRequires: autoconf |
---|
26 | BuildRequires: automake |
---|
27 | |
---|
28 | Requires(posttrans,postun): glib2 |
---|
29 | Requires(post,postun): desktop-file-utils |
---|
30 | |
---|
31 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
32 | |
---|
33 | Vendor: Project Vine |
---|
34 | Distribution: Vine Linux |
---|
35 | Packager: Takemikaduchi |
---|
36 | |
---|
37 | |
---|
38 | %description |
---|
39 | MATE Power Manager is a MATE session daemon that acts as a policy agent on top of |
---|
40 | UPower, which requires fairly new versions of the kernel and udev. |
---|
41 | MATE Power Manager listens for system events and responds with user-configurable actions. |
---|
42 | |
---|
43 | MATE Power Manager comes in three main parts: |
---|
44 | |
---|
45 | - mate-power-manager: the manager daemon itself |
---|
46 | - mate-power-preferences: the control panel program, for configuration |
---|
47 | - mate-power-statistics: the statistics graphing program |
---|
48 | |
---|
49 | |
---|
50 | %prep |
---|
51 | %setup -q |
---|
52 | |
---|
53 | |
---|
54 | %build |
---|
55 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
56 | %configure \ |
---|
57 | --libexecdir=%{_libexecdir}/mate \ |
---|
58 | --disable-static |
---|
59 | |
---|
60 | %{__make} %{?_smp_mflags} |
---|
61 | |
---|
62 | |
---|
63 | %install |
---|
64 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
65 | |
---|
66 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
67 | |
---|
68 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
69 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
70 | |
---|
71 | %find_lang %{name} |
---|
72 | |
---|
73 | |
---|
74 | %clean |
---|
75 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
76 | |
---|
77 | %post |
---|
78 | /sbin/ldconfig |
---|
79 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
80 | touch --no-create %{_datadir}/icons/hicolor |
---|
81 | gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
82 | |
---|
83 | %postun |
---|
84 | /sbin/ldconfig |
---|
85 | if [ $1 -eq 0 ]; then |
---|
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 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
90 | fi |
---|
91 | |
---|
92 | %posttrans |
---|
93 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
94 | |
---|
95 | |
---|
96 | %files -f %{name}.lang |
---|
97 | %defattr(-,root,root,-) |
---|
98 | %doc COPYING ChangeLog NEWS README |
---|
99 | %{_sysconfdir}/xdg/autostart/mate-power-manager.desktop |
---|
100 | %{_bindir}/mate-power-bugreport.sh |
---|
101 | %{_bindir}/mate-power-manager |
---|
102 | %{_bindir}/mate-power-preferences |
---|
103 | %{_bindir}/mate-power-statistics |
---|
104 | %{_libexecdir}/mate/mate-brightness-applet |
---|
105 | %{_libexecdir}/mate/mate-inhibit-applet |
---|
106 | %{_sbindir}/mate-power-backlight-helper |
---|
107 | %{_datadir}/MateConf/gsettings/mate-power-manager.convert |
---|
108 | %{_datadir}/applications/mate-power-preferences.desktop |
---|
109 | %{_datadir}/applications/mate-power-statistics.desktop |
---|
110 | %{_datadir}/dbus-1/services/mate-power-manager.service |
---|
111 | %{_datadir}/dbus-1/services/org.mate.panel.applet.BrightnessAppletFactory.service |
---|
112 | %{_datadir}/dbus-1/services/org.mate.panel.applet.InhibitAppletFactory.service |
---|
113 | %{_datadir}/glib-2.0/schemas/org.mate.power-manager.gschema.xml |
---|
114 | %{_datadir}/icons/hicolor/*/*/* |
---|
115 | %{_datadir}/help/* |
---|
116 | %{_datadir}/mate-2.0/ui/*.xml |
---|
117 | %{_datadir}/mate-panel/applets/org.mate.BrightnessApplet.mate-panel-applet |
---|
118 | %{_datadir}/mate-panel/applets/org.mate.InhibitApplet.mate-panel-applet |
---|
119 | %{_datadir}/%{name} |
---|
120 | %{_datadir}/polkit-1/actions/org.mate.power.policy |
---|
121 | %{_mandir}/man1/*.1.gz |
---|
122 | |
---|
123 | |
---|
124 | %changelog |
---|
125 | * Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1 |
---|
126 | - new upstream release |
---|
127 | - add BuildRequires: libgnome-keyring-devel, libupower09-devel, itstool |
---|
128 | - remove BuildRequires: upower-devel |
---|
129 | |
---|
130 | * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.3-1 |
---|
131 | - new upstream release |
---|
132 | |
---|
133 | * Sun Sep 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.2-1 |
---|
134 | - new upstream release |
---|
135 | |
---|
136 | * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1 |
---|
137 | - new upstream release |
---|
138 | - remove BuildRequires: mate-conf-devel, libmatenotify-devel |
---|
139 | - add BuildRequires: libnotify-devel |
---|
140 | |
---|
141 | * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1 |
---|
142 | - new upstream release |
---|
143 | |
---|
144 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-1 |
---|
145 | - new upstream release |
---|
146 | |
---|
147 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2 |
---|
148 | - change category |
---|
149 | |
---|
150 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
151 | - initial build for Vine Linux |
---|
152 | |
---|