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