# Conditional build:
%bcond_without apidocs # DocBook docs
-%bcond_with gtk3 # use GTK+ 3.x instead of 2.x
%bcond_without systemd # systemd support for default (when systemd is not running fallback to ConsoleKit)
-%bcond_with upower # UPower suspend/hibernate support (0.9.x only)
Summary: MATE Desktop session manager
Summary(pl.UTF-8): Zarządca sesji środowiska MATE Desktop
Name: mate-session-manager
-Version: 1.12.2
+Version: 1.20.1
Release: 1
License: GPL v2+
Group: X11/Applications
-Source0: http://pub.mate-desktop.org/releases/1.12/%{name}-%{version}.tar.xz
-# Source0-md5: 20277508ac89a9204954bdac11e6e8b3
-Patch0: %{name}-en_us_suspend_hotkey.patch
+Source0: http://pub.mate-desktop.org/releases/1.20/%{name}-%{version}.tar.xz
+# Source0-md5: f42444b7e48e80c0ad2d2925491e2c39
URL: http://wiki.mate-desktop.org/mate-session-manager
BuildRequires: autoconf >= 2.53
BuildRequires: automake >= 1:1.9
BuildRequires: dbus-glib-devel >= 0.76
BuildRequires: desktop-file-utils
-BuildRequires: glib2-devel >= 1:2.36.0
-%{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.24.0}
-%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0}
+BuildRequires: glib2-devel >= 1:2.50.0
+BuildRequires: gtk+3-devel >= 3.22.0
BuildRequires: intltool >= 0.50.1
BuildRequires: libtool >= 1:1.4.3
%{?with_apidocs:BuildRequires: libxslt-progs}
BuildRequires: pkgconfig
%{?with_systemd:BuildRequires: systemd-devel >= 1:183}
BuildRequires: tar >= 1:1.22
-%{?with_upower:BuildRequires: upower-devel >= 0.9.0}
%{?with_apidocs:BuildRequires: xmlto}
BuildRequires: xorg-lib-libICE-devel
BuildRequires: xorg-lib-libSM-devel
BuildRequires: xorg-lib-libXext-devel
BuildRequires: xorg-lib-libXrender-devel
BuildRequires: xorg-lib-libXtst-devel
+BuildRequires: xorg-lib-xtrans-devel
BuildRequires: xz
# needed to satisfy 'filemanager' component (may be changed if alternatives available)
Requires: caja
Requires: dbus-glib >= 0.76
-Requires: glib2 >= 1:2.36.0
+Requires: glib2 >= 1:2.50.0
Requires: gsettings-desktop-schemas
-%{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0}
-%{?with_gtk3:Requires: gtk+3 >= 3.0.0}
+Requires: gtk+3 >= 3.22.0
Requires: gtk-update-icon-cache
Requires: hicolor-icon-theme
# needed to satisfy 'windowmanager' component (may be changed if alternatives available)
Requires: marco
# needed to satisfy 'panel' component (may be changed if alternatives available)
Requires: mate-panel
-%{?with_upower:Requires: upower-libs >= 0.9.0}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
-%patch0 -p1
%build
%{__intltoolize}
--enable-ipv6 \
--disable-silent-rules \
--disable-static \
- %{!?with_upower:--disable-upower} \
--with-default-wm=marco \
--with-gnu-ld \
- %{?with_gtk3:--with-gtk=3.0} \
%{__with_without systemd} \
--with-x
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-# mate < 1.5 did not exist in pld, avoid dependency on mate-conf
-%{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-session.convert
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,ku_IQ,jv}
desktop-file-install \
--remove-category="MATE" \
--dir=$RPM_BUILD_ROOT%{_desktopdir} \
$RPM_BUILD_ROOT%{_desktopdir}/mate-session-properties.desktop
+# not supported by glibc yet
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pms
+
%find_lang %{name}
%clean
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog MAINTAINERS NEWS README
+%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/mate-session
%attr(755,root,root) %{_bindir}/mate-session-inhibit
%attr(755,root,root) %{_bindir}/mate-session-properties