]>
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 JB |
7 | %bcond_without apidocs # DocBook docs |
8 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x | |
9 | %bcond_without systemd # systemd support for default (when systemd is not running fallback to ConsoleKit) | |
77bc602c | 10 | %bcond_with upower # UPower suspend/hibernate support (0.9.x only) |
baa3f594 | 11 | |
16227bc9 | 12 | Summary: MATE Desktop session manager |
ceb8a0bb | 13 | Summary(pl.UTF-8): Zarządca sesji środowiska MATE Desktop |
16227bc9 | 14 | Name: mate-session-manager |
7dc05161 | 15 | Version: 1.14.0 |
faa7998e | 16 | Release: 1 |
16227bc9 ER |
17 | License: GPL v2+ |
18 | Group: X11/Applications | |
7dc05161 JP |
19 | Source0: http://pub.mate-desktop.org/releases/1.14/%{name}-%{version}.tar.xz |
20 | # Source0-md5: 41b0b5dfd4a2978546119ed9721c95e1 | |
60ee2bdc | 21 | Patch0: %{name}-en_us_suspend_hotkey.patch |
4c0f736c | 22 | URL: http://wiki.mate-desktop.org/mate-session-manager |
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 |
8cc840db JB |
27 | BuildRequires: glib2-devel >= 1:2.36.0 |
28 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.24.0} | |
ceb8a0bb | 29 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} |
c02f9c0e | 30 | BuildRequires: intltool >= 0.50.1 |
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 |
77bc602c | 39 | %{?with_upower:BuildRequires: upower-devel >= 0.9.0} |
baa3f594 | 40 | %{?with_apidocs:BuildRequires: xmlto} |
ceb8a0bb | 41 | BuildRequires: xorg-lib-libICE-devel |
4c0f736c | 42 | BuildRequires: xorg-lib-libSM-devel |
c02f9c0e | 43 | BuildRequires: xorg-lib-libX11-devel |
ceb8a0bb JB |
44 | BuildRequires: xorg-lib-libXau-devel |
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 |
8cc840db | 53 | Requires: glib2 >= 1:2.36.0 |
16227bc9 | 54 | Requires: gsettings-desktop-schemas |
8cc840db | 55 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0} |
ceb8a0bb | 56 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} |
16227bc9 ER |
57 | Requires: gtk-update-icon-cache |
58 | Requires: hicolor-icon-theme | |
87b82615 JP |
59 | # needed to satisfy 'windowmanager' component (may be changed if alternatives available) |
60 | Requires: marco | |
9c5c521b ER |
61 | # needed to satisfy 'panel' component (may be changed if alternatives available) |
62 | Requires: mate-panel | |
77bc602c | 63 | %{?with_upower:Requires: upower-libs >= 0.9.0} |
16227bc9 ER |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
65 | ||
66 | %description | |
4132989e | 67 | MATE Desktop session manager. |
16227bc9 | 68 | |
ceb8a0bb JB |
69 | %description -l pl.UTF-8 |
70 | Zarządca sesji środowiska MATE Desktop. | |
71 | ||
baa3f594 | 72 | %package apidocs |
ceb8a0bb JB |
73 | Summary: MATE Session Manager D-Bus API Reference |
74 | Summary(pl.UTF-8): Dokumentacja API D-Bus MATE Session Managera | |
baa3f594 | 75 | Group: Documentation |
f587b6ef ER |
76 | %if "%{_rpmversion}" >= "5" |
77 | BuildArch: noarch | |
78 | %endif | |
baa3f594 ER |
79 | |
80 | %description apidocs | |
81 | Session Manager D-Bus API Reference. | |
82 | ||
83 | %description apidocs -l pl.UTF-8 | |
ceb8a0bb | 84 | Dokumentacja API D-Bus MATE Session Managera. |
baa3f594 | 85 | |
16227bc9 ER |
86 | %prep |
87 | %setup -q | |
60ee2bdc | 88 | %patch0 -p1 |
16227bc9 ER |
89 | |
90 | %build | |
74d2f6d8 | 91 | %{__intltoolize} |
74d2f6d8 JP |
92 | %{__aclocal} |
93 | %{__autoheader} | |
94 | %{__autoconf} | |
95 | %{__automake} | |
16227bc9 | 96 | %configure \ |
baa3f594 ER |
97 | %{!?with_apidocs:--disable-docbook-docs} \ |
98 | %{?with_apidocs:--enable-docbook-docs --docdir=%{_gtkdocdir}/%{name}} \ | |
16227bc9 | 99 | --enable-ipv6 \ |
ceb8a0bb JB |
100 | --disable-silent-rules \ |
101 | --disable-static \ | |
77bc602c | 102 | %{!?with_upower:--disable-upower} \ |
16227bc9 | 103 | --with-default-wm=marco \ |
ceb8a0bb JB |
104 | --with-gnu-ld \ |
105 | %{?with_gtk3:--with-gtk=3.0} \ | |
106 | %{__with_without systemd} \ | |
16227bc9 | 107 | --with-x |
16c4cc02 ER |
108 | |
109 | %{__make} | |
16227bc9 ER |
110 | |
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | %{__make} install \ | |
114 | DESTDIR=$RPM_BUILD_ROOT | |
115 | ||
7dc05161 | 116 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,jv} |
16c4cc02 | 117 | |
16227bc9 ER |
118 | desktop-file-install \ |
119 | --remove-category="MATE" \ | |
120 | --add-category="X-Mate" \ | |
121 | --delete-original \ | |
122 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
ceb8a0bb | 123 | $RPM_BUILD_ROOT%{_desktopdir}/mate-session-properties.desktop |
16227bc9 ER |
124 | |
125 | %find_lang %{name} | |
126 | ||
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %post | |
131 | %update_icon_cache hicolor | |
132 | %glib_compile_schemas | |
133 | ||
134 | %postun | |
135 | %update_icon_cache hicolor | |
136 | %glib_compile_schemas | |
137 | ||
138 | %files -f %{name}.lang | |
139 | %defattr(644,root,root,755) | |
ceb8a0bb | 140 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
16227bc9 | 141 | %attr(755,root,root) %{_bindir}/mate-session |
8cc840db | 142 | %attr(755,root,root) %{_bindir}/mate-session-inhibit |
16227bc9 ER |
143 | %attr(755,root,root) %{_bindir}/mate-session-properties |
144 | %attr(755,root,root) %{_bindir}/mate-session-save | |
145 | %attr(755,root,root) %{_bindir}/mate-wm | |
8cc840db | 146 | %{_mandir}/man1/mate-session-inhibit.1* |
4c0f736c ER |
147 | %{_mandir}/man1/mate-session-properties.1* |
148 | %{_mandir}/man1/mate-session-save.1* | |
149 | %{_mandir}/man1/mate-session.1* | |
150 | %{_mandir}/man1/mate-wm.1* | |
74d2f6d8 | 151 | %{_datadir}/mate-session-manager |
16227bc9 ER |
152 | %{_datadir}/glib-2.0/schemas/org.mate.session.gschema.xml |
153 | %{_datadir}/xsessions/mate.desktop | |
ceb8a0bb JB |
154 | %{_desktopdir}/mate-session-properties.desktop |
155 | %{_iconsdir}/hicolor/*x*/apps/mate-session-properties.png | |
156 | %{_iconsdir}/hicolor/scalable/apps/mate-session-properties.svg | |
baa3f594 ER |
157 | |
158 | %if %{with apidocs} | |
159 | %files apidocs | |
160 | %defattr(644,root,root,755) | |
161 | %{_gtkdocdir}/%{name} | |
162 | %endif |