]> git.pld-linux.org Git - packages/mate-power-manager.git/blob - mate-power-manager.spec
bc0dcf15b7a0e4ec98155b125b6b4d8fa38b6738
[packages/mate-power-manager.git] / mate-power-manager.spec
1 Summary:        MATE power management service
2 Name:           mate-power-manager
3 Version:        1.5.1
4 Release:        1
5 License:        GPL v2+
6 Group:          X11/Applications
7 Source0:        http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
8 # Source0-md5:  8ef2d2e6552461f88ac233377a5f5760
9 Patch0:         bashism.patch
10 URL:            http://wiki.mate-desktop.org/mate-power-manager
11 BuildRequires:  cairo-devel >= 1.0.0
12 BuildRequires:  dbus-glib-devel
13 BuildRequires:  desktop-file-utils
14 BuildRequires:  glib2-devel
15 BuildRequires:  gtk+2-devel >= 2:2.17.7
16 BuildRequires:  libcanberra-devel
17 BuildRequires:  libcanberra-gtk-devel
18 BuildRequires:  libmatekeyring-devel >= 1.1.0
19 BuildRequires:  libmatenotify-devel
20 BuildRequires:  libunique-devel
21 BuildRequires:  mate-common
22 BuildRequires:  mate-control-center-devel
23 BuildRequires:  mate-doc-utils
24 BuildRequires:  mate-panel-devel
25 BuildRequires:  popt-devel
26 BuildRequires:  rarian-compat
27 BuildRequires:  rpmbuild(find_lang) >= 1.36
28 BuildRequires:  systemd-devel >= 1:195
29 BuildRequires:  tar >= 1:1.22
30 BuildRequires:  upower-devel
31 BuildRequires:  xz
32 Requires:       glib2 >= 1:2.26.0
33 Requires:       gtk-update-icon-cache
34 Requires:       hicolor-icon-theme
35 Requires:       mate-panel
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 MATE Power Manager uses the information and facilities provided by
40 UPower displaying icons and handling user callbacks in an interactive
41 MATE session.
42
43 %prep
44 %setup -q
45 %patch0 -p1
46
47 %build
48 NOCONFIGURE=1 ./autogen.sh
49 %configure \
50         --disable-silent-rules \
51         --disable-static \
52         --disable-scrollkeeper \
53         --enable-applets
54
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT
61
62 %find_lang %{name} --with-mate --with-omf
63
64 desktop-file-install \
65      --delete-original \
66      --remove-category=MATE \
67      --add-category=X-Mate \
68      --dir=$RPM_BUILD_ROOT%{_desktopdir} \
69 $RPM_BUILD_ROOT%{_desktopdir}/*.desktop
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post
75 %update_icon_cache hicolor
76 %glib_compile_schemas
77
78 %postun
79 %update_icon_cache hicolor
80 %glib_compile_schemas
81
82 %files  -f %{name}.lang
83 %defattr(644,root,root,755)
84 %doc AUTHORS README
85 %attr(755,root,root) %{_bindir}/mate-power-bugreport.sh
86 %attr(755,root,root) %{_bindir}/mate-power-manager
87 %attr(755,root,root) %{_bindir}/mate-power-preferences
88 %attr(755,root,root) %{_bindir}/mate-power-statistics
89 %attr(755,root,root) %{_sbindir}/mate-power-backlight-helper
90 %attr(755,root,root) %{_libdir}/mate-brightness-applet
91 %attr(755,root,root) %{_libdir}/mate-inhibit-applet
92 %{_mandir}/man1/mate-power-manager.1*
93 %{_mandir}/man1/mate-power-preferences.1*
94 %{_mandir}/man1/mate-power-statistics.1*
95 /etc/xdg/autostart/mate-power-manager.desktop
96 %{_desktopdir}/mate-power-preferences.desktop
97 %{_desktopdir}/mate-power-statistics.desktop
98 %{_iconsdir}/hicolor/*/apps/mate-*.*
99 %{_datadir}/dbus-1/services/mate-power-manager.service
100 %{_datadir}/dbus-1/services/org.mate.panel.applet.BrightnessAppletFactory.service
101 %{_datadir}/dbus-1/services/org.mate.panel.applet.InhibitAppletFactory.service
102 %{_datadir}/%{name}
103 %{_datadir}/polkit-1/actions/org.mate.power.policy
104 %{_datadir}/mate-2.0/ui/brightness-applet-menu.xml
105 %{_datadir}/mate-2.0/ui/inhibit-applet-menu.xml
106 %{_datadir}/mate-panel/applets/org.mate.BrightnessApplet.mate-panel-applet
107 %{_datadir}/mate-panel/applets/org.mate.InhibitApplet.mate-panel-applet
108 %{_datadir}/glib-2.0/schemas/org.mate.power-manager.gschema.xml
109
110 # XXX proper dir
111 %dir %{_datadir}/mate-2.0
112 %dir %{_datadir}/mate-2.0/ui
This page took 0.031642 seconds and 2 git commands to generate.