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