3 %bcond_with apidocs # DocBook docs (incomplete)
5 Summary: MATE Desktop session manager
6 Name: mate-session-manager
10 Group: X11/Applications
11 Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
12 # Source0-md5: b7ff3686daadb97bc6cd7435a07374d9
13 URL: http://wiki.mate-desktop.org/mate-session-manager
14 BuildRequires: dbus-glib-devel
15 BuildRequires: desktop-file-utils
16 BuildRequires: glib2-devel >= 1:2.16.0
17 BuildRequires: gtk+2-devel >= 2:2.14.0
18 BuildRequires: intltool >= 0.40.0
19 BuildRequires: mate-common
20 BuildRequires: pangox-compat-devel
21 BuildRequires: tar >= 1:1.22
22 BuildRequires: upower-devel >= 0.9.0
23 %{?with_apidocs:BuildRequires: xmlto}
24 BuildRequires: xorg-lib-libSM-devel
26 Requires: glib2 >= 1:2.26.0
27 Requires: gsettings-desktop-schemas
28 Requires: gtk-update-icon-cache
29 Requires: hicolor-icon-theme
30 Requires: mate-desktop >= 1.5
31 # needed to satisfy 'filemanager' component (may be changed if alternatives available)
32 Requires: mate-file-manager
33 # needed to satisfy 'panel' component (may be changed if alternatives available)
35 # needed to satisfy 'windowmanager' component (may be changed if alternatives available)
36 Requires: mate-window-manager
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 MATE Desktop session manager.
43 Summary: Session Manager D-Bus API Reference
44 Summary(pl.UTF-8): Dokumentacja API Session Manager
48 Session Manager D-Bus API Reference.
50 %description apidocs -l pl.UTF-8
51 Dokumentacja API Session Manager.
57 NOCONFIGURE=1 ./autogen.sh
59 --disable-silent-rules \
61 %{!?with_apidocs:--disable-docbook-docs} \
62 %{?with_apidocs:--enable-docbook-docs --docdir=%{_gtkdocdir}/%{name}} \
66 --with-default-wm=marco \
72 rm -rf $RPM_BUILD_ROOT
74 DESTDIR=$RPM_BUILD_ROOT
76 # mate < 1.5 did not exist in pld, avoid dependency on mate-conf
77 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-session.convert
79 desktop-file-install \
80 --remove-category="MATE" \
81 --add-category="X-Mate" \
83 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
84 $RPM_BUILD_ROOT%{_desktopdir}/mate-session-properties.desktop
89 rm -rf $RPM_BUILD_ROOT
92 %update_icon_cache hicolor
96 %update_icon_cache hicolor
99 %files -f %{name}.lang
100 %defattr(644,root,root,755)
101 %doc AUTHORS COPYING README
102 %attr(755,root,root) %{_bindir}/mate-session
103 %attr(755,root,root) %{_bindir}/mate-session-properties
104 %attr(755,root,root) %{_bindir}/mate-session-save
105 %attr(755,root,root) %{_bindir}/mate-wm
106 %{_mandir}/man1/mate-session-properties.1*
107 %{_mandir}/man1/mate-session-save.1*
108 %{_mandir}/man1/mate-session.1*
109 %{_mandir}/man1/mate-wm.1*
110 %{_desktopdir}/mate-session-properties.desktop
111 %{_datadir}/mate-session
112 %{_iconsdir}/hicolor/*/apps/*.png
113 %{_iconsdir}/hicolor/scalable/apps/mate-session-properties.svg
114 %{_datadir}/glib-2.0/schemas/org.mate.session.gschema.xml
115 %{_datadir}/xsessions/mate.desktop
119 %defattr(644,root,root,755)
120 %{_gtkdocdir}/%{name}