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