3 # - Terminal=true, depends in mate-terminal, but probably should take preferred terminal application
4 # mate-session[4970]: WARNING: Could not launch application 'nvidia-settings.desktop': Unable to start application: Failed to execute child process "xdg-terminal" (No such file or directory)
7 %bcond_with apidocs # DocBook docs (incomplete)
8 %bcond_without systemd # enable systemd support for default (when systemd is not running fallback to ConsoleKit)
10 Summary: MATE Desktop session manager
11 Name: mate-session-manager
15 Group: X11/Applications
16 Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
17 # Source0-md5: 75373b3d5d0d8f5f8f105f34de238a11
18 URL: http://wiki.mate-desktop.org/mate-session-manager
19 BuildRequires: dbus-glib-devel
20 BuildRequires: desktop-file-utils
21 BuildRequires: glib2-devel >= 1:2.16.0
22 BuildRequires: gtk+2-devel >= 2:2.14.0
23 BuildRequires: intltool >= 0.40.0
24 BuildRequires: mate-common
25 BuildRequires: pangox-compat-devel
26 %{?with_systemd:BuildRequires: systemd-devel >= 183}
27 BuildRequires: tar >= 1:1.22
28 BuildRequires: upower-devel >= 0.9.0
29 %{?with_apidocs:BuildRequires: xmlto}
30 BuildRequires: xorg-lib-libSM-devel
32 Requires: glib2 >= 1:2.26.0
33 Requires: gsettings-desktop-schemas
34 Requires: gtk-update-icon-cache
35 Requires: hicolor-icon-theme
36 Requires: mate-desktop >= 1.5
37 # needed to satisfy 'filemanager' component (may be changed if alternatives available)
38 Requires: mate-file-manager
39 # needed to satisfy 'panel' component (may be changed if alternatives available)
41 # needed to satisfy 'windowmanager' component (may be changed if alternatives available)
42 Requires: mate-window-manager
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 MATE Desktop session manager.
49 Summary: Session Manager D-Bus API Reference
50 Summary(pl.UTF-8): Dokumentacja API Session Manager
54 Session Manager D-Bus API Reference.
56 %description apidocs -l pl.UTF-8
57 Dokumentacja API Session Manager.
63 NOCONFIGURE=1 ./autogen.sh
65 --disable-silent-rules \
67 %{!?with_apidocs:--disable-docbook-docs} \
68 %{?with_apidocs:--enable-docbook-docs --docdir=%{_gtkdocdir}/%{name}} \
69 %{__enable_disable systemd systemd} \
73 --with-default-wm=marco \
79 rm -rf $RPM_BUILD_ROOT
81 DESTDIR=$RPM_BUILD_ROOT
83 # mate < 1.5 did not exist in pld, avoid dependency on mate-conf
84 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-session.convert
86 desktop-file-install \
87 --remove-category="MATE" \
88 --add-category="X-Mate" \
90 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
91 $RPM_BUILD_ROOT%{_desktopdir}/mate-session-properties.desktop
96 rm -rf $RPM_BUILD_ROOT
99 %update_icon_cache hicolor
100 %glib_compile_schemas
103 %update_icon_cache hicolor
104 %glib_compile_schemas
106 %files -f %{name}.lang
107 %defattr(644,root,root,755)
108 %doc AUTHORS COPYING README
109 %attr(755,root,root) %{_bindir}/mate-session
110 %attr(755,root,root) %{_bindir}/mate-session-properties
111 %attr(755,root,root) %{_bindir}/mate-session-save
112 %attr(755,root,root) %{_bindir}/mate-wm
113 %{_mandir}/man1/mate-session-properties.1*
114 %{_mandir}/man1/mate-session-save.1*
115 %{_mandir}/man1/mate-session.1*
116 %{_mandir}/man1/mate-wm.1*
117 %{_desktopdir}/mate-session-properties.desktop
118 %{_datadir}/mate-session
119 %{_iconsdir}/hicolor/*/apps/*.png
120 %{_iconsdir}/hicolor/scalable/apps/mate-session-properties.svg
121 %{_datadir}/glib-2.0/schemas/org.mate.session.gschema.xml
122 %{_datadir}/xsessions/mate.desktop
126 %defattr(644,root,root,755)
127 %{_gtkdocdir}/%{name}