]>
Commit | Line | Data |
---|---|---|
baa3f594 | 1 | # |
cb073b84 ER |
2 | # TODO |
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) | |
5 | ||
baa3f594 ER |
6 | # Conditional build: |
7 | %bcond_with apidocs # DocBook docs (incomplete) | |
0af2586e | 8 | %bcond_without systemd # enable systemd support for default (when systemd is not running fallback to ConsoleKit) |
baa3f594 | 9 | |
16227bc9 ER |
10 | Summary: MATE Desktop session manager |
11 | Name: mate-session-manager | |
7500b0bd | 12 | Version: 1.6.0 |
16c4cc02 | 13 | Release: 1 |
16227bc9 ER |
14 | License: GPL v2+ |
15 | Group: X11/Applications | |
7500b0bd ER |
16 | Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz |
17 | # Source0-md5: a8e1e83cabbf0ec3ec130c07f9038dcd | |
4c0f736c ER |
18 | URL: http://wiki.mate-desktop.org/mate-session-manager |
19 | BuildRequires: dbus-glib-devel | |
16227bc9 | 20 | BuildRequires: desktop-file-utils |
4c0f736c | 21 | BuildRequires: glib2-devel >= 1:2.16.0 |
4c0f736c | 22 | BuildRequires: gtk+2-devel >= 2:2.14.0 |
4c0f736c | 23 | BuildRequires: intltool >= 0.40.0 |
16227bc9 | 24 | BuildRequires: mate-common |
e799e06d | 25 | BuildRequires: pangox-compat-devel |
0af2586e | 26 | %{?with_systemd:BuildRequires: systemd-devel >= 183} |
16227bc9 | 27 | BuildRequires: tar >= 1:1.22 |
4c0f736c | 28 | BuildRequires: upower-devel >= 0.9.0 |
baa3f594 | 29 | %{?with_apidocs:BuildRequires: xmlto} |
4c0f736c | 30 | BuildRequires: xorg-lib-libSM-devel |
16227bc9 ER |
31 | BuildRequires: xz |
32 | Requires: glib2 >= 1:2.26.0 | |
33 | Requires: gsettings-desktop-schemas | |
34 | Requires: gtk-update-icon-cache | |
35 | Requires: hicolor-icon-theme | |
afecfdd3 | 36 | Requires: mate-desktop >= 1.5 |
9c5c521b ER |
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) | |
40 | Requires: mate-panel | |
41 | # needed to satisfy 'windowmanager' component (may be changed if alternatives available) | |
42 | Requires: mate-window-manager | |
16227bc9 ER |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
45 | %description | |
4132989e | 46 | MATE Desktop session manager. |
16227bc9 | 47 | |
baa3f594 ER |
48 | %package apidocs |
49 | Summary: Session Manager D-Bus API Reference | |
50 | Summary(pl.UTF-8): Dokumentacja API Session Manager | |
51 | Group: Documentation | |
52 | ||
53 | %description apidocs | |
54 | Session Manager D-Bus API Reference. | |
55 | ||
56 | %description apidocs -l pl.UTF-8 | |
57 | Dokumentacja API Session Manager. | |
58 | ||
16227bc9 ER |
59 | %prep |
60 | %setup -q | |
61 | ||
62 | %build | |
63 | NOCONFIGURE=1 ./autogen.sh | |
64 | %configure \ | |
16c4cc02 | 65 | --disable-silent-rules \ |
16227bc9 | 66 | --disable-static \ |
baa3f594 ER |
67 | %{!?with_apidocs:--disable-docbook-docs} \ |
68 | %{?with_apidocs:--enable-docbook-docs --docdir=%{_gtkdocdir}/%{name}} \ | |
0af2586e | 69 | %{__enable_disable systemd systemd} \ |
16227bc9 ER |
70 | --enable-ipv6 \ |
71 | --with-gtk=2.0 \ | |
72 | --with-gnu-ld \ | |
73 | --with-default-wm=marco \ | |
74 | --with-x | |
16c4cc02 ER |
75 | |
76 | %{__make} | |
16227bc9 ER |
77 | |
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
16c4cc02 ER |
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 | |
85 | ||
16227bc9 ER |
86 | desktop-file-install \ |
87 | --remove-category="MATE" \ | |
88 | --add-category="X-Mate" \ | |
89 | --delete-original \ | |
90 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
91 | $RPM_BUILD_ROOT%{_desktopdir}/mate-session-properties.desktop | |
92 | ||
93 | %find_lang %{name} | |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post | |
99 | %update_icon_cache hicolor | |
100 | %glib_compile_schemas | |
101 | ||
102 | %postun | |
103 | %update_icon_cache hicolor | |
104 | %glib_compile_schemas | |
105 | ||
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 | |
4c0f736c ER |
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* | |
16227bc9 ER |
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 | |
baa3f594 ER |
123 | |
124 | %if %{with apidocs} | |
125 | %files apidocs | |
126 | %defattr(644,root,root,755) | |
127 | %{_gtkdocdir}/%{name} | |
128 | %endif |