]>
Commit | Line | Data |
---|---|---|
baa3f594 | 1 | # |
cb073b84 | 2 | # TODO |
ceb8a0bb | 3 | # - Terminal=true, depends on mate-terminal, but probably should take preferred terminal application |
cb073b84 ER |
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 | 6 | # Conditional build: |
ceb8a0bb | 7 | %bcond_without apidocs # DocBook docs |
ceb8a0bb | 8 | %bcond_without systemd # systemd support for default (when systemd is not running fallback to ConsoleKit) |
baa3f594 | 9 | |
16227bc9 | 10 | Summary: MATE Desktop session manager |
ceb8a0bb | 11 | Summary(pl.UTF-8): Zarządca sesji środowiska MATE Desktop |
16227bc9 | 12 | Name: mate-session-manager |
bd11a0ff | 13 | Version: 1.24.3 |
faa7998e | 14 | Release: 1 |
16227bc9 ER |
15 | License: GPL v2+ |
16 | Group: X11/Applications | |
1b609862 | 17 | Source0: https://pub.mate-desktop.org/releases/1.24/%{name}-%{version}.tar.xz |
bd11a0ff | 18 | # Source0-md5: f54c6187273f17c17b882c08056ec52d |
4c0f736c | 19 | URL: http://wiki.mate-desktop.org/mate-session-manager |
a975a5f6 JP |
20 | BuildRequires: EGL-devel |
21 | BuildRequires: OpenGL-devel | |
22 | BuildRequires: OpenGLESv2-devel | |
ceb8a0bb JB |
23 | BuildRequires: autoconf >= 2.53 |
24 | BuildRequires: automake >= 1:1.9 | |
25 | BuildRequires: dbus-glib-devel >= 0.76 | |
16227bc9 | 26 | BuildRequires: desktop-file-utils |
a975a5f6 | 27 | BuildRequires: gettext-tools >= 0.19.8 |
13547ae4 JP |
28 | BuildRequires: glib2-devel >= 1:2.50.0 |
29 | BuildRequires: gtk+3-devel >= 3.22.0 | |
a975a5f6 | 30 | BuildRequires: libepoxy-devel |
ceb8a0bb JB |
31 | BuildRequires: libtool >= 1:1.4.3 |
32 | %{?with_apidocs:BuildRequires: libxslt-progs} | |
16227bc9 | 33 | BuildRequires: mate-common |
ceb8a0bb | 34 | BuildRequires: pango-devel |
ceb8a0bb JB |
35 | BuildRequires: pkgconfig |
36 | %{?with_systemd:BuildRequires: systemd-devel >= 1:183} | |
16227bc9 | 37 | BuildRequires: tar >= 1:1.22 |
baa3f594 | 38 | %{?with_apidocs:BuildRequires: xmlto} |
ceb8a0bb | 39 | BuildRequires: xorg-lib-libICE-devel |
4c0f736c | 40 | BuildRequires: xorg-lib-libSM-devel |
c02f9c0e | 41 | BuildRequires: xorg-lib-libX11-devel |
ceb8a0bb | 42 | BuildRequires: xorg-lib-libXau-devel |
a975a5f6 | 43 | BuildRequires: xorg-lib-libXcomposite-devel |
ceb8a0bb JB |
44 | BuildRequires: xorg-lib-libXext-devel |
45 | BuildRequires: xorg-lib-libXrender-devel | |
46 | BuildRequires: xorg-lib-libXtst-devel | |
b6efe708 | 47 | BuildRequires: xorg-lib-xtrans-devel |
16227bc9 | 48 | BuildRequires: xz |
87b82615 JP |
49 | # needed to satisfy 'filemanager' component (may be changed if alternatives available) |
50 | Requires: caja | |
ceb8a0bb | 51 | Requires: dbus-glib >= 0.76 |
13547ae4 | 52 | Requires: glib2 >= 1:2.50.0 |
16227bc9 | 53 | Requires: gsettings-desktop-schemas |
13547ae4 | 54 | Requires: gtk+3 >= 3.22.0 |
16227bc9 ER |
55 | Requires: gtk-update-icon-cache |
56 | Requires: hicolor-icon-theme | |
87b82615 JP |
57 | # needed to satisfy 'windowmanager' component (may be changed if alternatives available) |
58 | Requires: marco | |
9c5c521b ER |
59 | # needed to satisfy 'panel' component (may be changed if alternatives available) |
60 | Requires: mate-panel | |
16227bc9 ER |
61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
62 | ||
63 | %description | |
4132989e | 64 | MATE Desktop session manager. |
16227bc9 | 65 | |
ceb8a0bb JB |
66 | %description -l pl.UTF-8 |
67 | Zarządca sesji środowiska MATE Desktop. | |
68 | ||
baa3f594 | 69 | %package apidocs |
ceb8a0bb JB |
70 | Summary: MATE Session Manager D-Bus API Reference |
71 | Summary(pl.UTF-8): Dokumentacja API D-Bus MATE Session Managera | |
baa3f594 | 72 | Group: Documentation |
f587b6ef | 73 | BuildArch: noarch |
baa3f594 ER |
74 | |
75 | %description apidocs | |
76 | Session Manager D-Bus API Reference. | |
77 | ||
78 | %description apidocs -l pl.UTF-8 | |
ceb8a0bb | 79 | Dokumentacja API D-Bus MATE Session Managera. |
baa3f594 | 80 | |
16227bc9 ER |
81 | %prep |
82 | %setup -q | |
83 | ||
84 | %build | |
74d2f6d8 JP |
85 | %{__aclocal} |
86 | %{__autoheader} | |
87 | %{__autoconf} | |
88 | %{__automake} | |
16227bc9 | 89 | %configure \ |
baa3f594 ER |
90 | %{!?with_apidocs:--disable-docbook-docs} \ |
91 | %{?with_apidocs:--enable-docbook-docs --docdir=%{_gtkdocdir}/%{name}} \ | |
16227bc9 | 92 | --enable-ipv6 \ |
ceb8a0bb JB |
93 | --disable-silent-rules \ |
94 | --disable-static \ | |
16227bc9 | 95 | --with-default-wm=marco \ |
ceb8a0bb | 96 | --with-gnu-ld \ |
ceb8a0bb | 97 | %{__with_without systemd} \ |
16227bc9 | 98 | --with-x |
16c4cc02 ER |
99 | |
100 | %{__make} | |
16227bc9 ER |
101 | |
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | %{__make} install \ | |
105 | DESTDIR=$RPM_BUILD_ROOT | |
106 | ||
e2a00e64 | 107 | # not supported by glibc yet |
62e248b9 | 108 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,ie,jv,ku_IQ,pms,ur_PK} |
16c4cc02 | 109 | |
16227bc9 ER |
110 | desktop-file-install \ |
111 | --remove-category="MATE" \ | |
112 | --add-category="X-Mate" \ | |
113 | --delete-original \ | |
114 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
ceb8a0bb | 115 | $RPM_BUILD_ROOT%{_desktopdir}/mate-session-properties.desktop |
16227bc9 ER |
116 | |
117 | %find_lang %{name} | |
118 | ||
119 | %clean | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %post | |
123 | %update_icon_cache hicolor | |
124 | %glib_compile_schemas | |
125 | ||
126 | %postun | |
127 | %update_icon_cache hicolor | |
128 | %glib_compile_schemas | |
129 | ||
130 | %files -f %{name}.lang | |
131 | %defattr(644,root,root,755) | |
33c27010 | 132 | %doc AUTHORS ChangeLog NEWS README |
16227bc9 | 133 | %attr(755,root,root) %{_bindir}/mate-session |
8cc840db | 134 | %attr(755,root,root) %{_bindir}/mate-session-inhibit |
16227bc9 ER |
135 | %attr(755,root,root) %{_bindir}/mate-session-properties |
136 | %attr(755,root,root) %{_bindir}/mate-session-save | |
137 | %attr(755,root,root) %{_bindir}/mate-wm | |
a975a5f6 JP |
138 | %attr(755,root,root) %{_libexecdir}/mate-session-check-accelerated |
139 | %attr(755,root,root) %{_libexecdir}/mate-session-check-accelerated-gl-helper | |
140 | %attr(755,root,root) %{_libexecdir}/mate-session-check-accelerated-gles-helper | |
8cc840db | 141 | %{_mandir}/man1/mate-session-inhibit.1* |
4c0f736c ER |
142 | %{_mandir}/man1/mate-session-properties.1* |
143 | %{_mandir}/man1/mate-session-save.1* | |
144 | %{_mandir}/man1/mate-session.1* | |
145 | %{_mandir}/man1/mate-wm.1* | |
74d2f6d8 | 146 | %{_datadir}/mate-session-manager |
16227bc9 ER |
147 | %{_datadir}/glib-2.0/schemas/org.mate.session.gschema.xml |
148 | %{_datadir}/xsessions/mate.desktop | |
ceb8a0bb JB |
149 | %{_desktopdir}/mate-session-properties.desktop |
150 | %{_iconsdir}/hicolor/*x*/apps/mate-session-properties.png | |
151 | %{_iconsdir}/hicolor/scalable/apps/mate-session-properties.svg | |
baa3f594 ER |
152 | |
153 | %if %{with apidocs} | |
154 | %files apidocs | |
155 | %defattr(644,root,root,755) | |
156 | %{_gtkdocdir}/%{name} | |
157 | %endif |