-#
-# Conditional build:
-%bcond_with gtk3 # use GTK+ 3.x instead of 2.x
-
Summary: Simple window management tool
Summary(pl.UTF-8): Proste narzędzie do zarządzania oknami
Name: mate-netbook
-Version: 1.14.0
+Version: 1.26.0
Release: 1
License: GPL v3
Group: X11/Applications
-Source0: http://pub.mate-desktop.org/releases/1.14/%{name}-%{version}.tar.xz
-# Source0-md5: b4610466829f28e95e47d5662f97d2f9
-URL: http://mate-desktop.org/
+Source0: https://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz
+# Source0-md5: 9eb98f9009b7b3791da3965130e3e100
+URL: https://wiki.mate-desktop.org/mate-desktop/components/mate-netbook/
BuildRequires: autoconf >= 2.53
BuildRequires: automake >= 1:1.9
-BuildRequires: gettext-tools >= 0.10.40
-BuildRequires: glib2-devel >= 1:2.36.0
-%{!?with_gtk3:BuildRequires: gtk+2-devel >= 2.0}
-%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0}
-BuildRequires: intltool >= 0.50.1
+BuildRequires: gettext-tools >= 0.19.8
+BuildRequires: glib2-devel >= 1:2.50.0
+BuildRequires: gtk+3-devel >= 3.22
BuildRequires: libfakekey-devel
BuildRequires: libtool >= 1:1.4.3
-%{!?with_gtk3:BuildRequires: libunique-devel >= 1.0}
-%{?with_gtk3:BuildRequires: libunique3-devel >= 3.0}
-%{?with_gtk3:BuildRequires: libwnck-devel >= 3.0}
-%{!?with_gtk3:BuildRequires: libwnck2-devel >= 1.0}
-BuildRequires: mate-desktop-devel >= 1.9.0
-BuildRequires: mate-panel-devel
+BuildRequires: libwnck-devel >= 3.0
+BuildRequires: mate-panel-devel >= 1.17.0
BuildRequires: pkgconfig
BuildRequires: rpmbuild(find_lang) >= 1.36
+BuildRequires: rpmbuild(macros) >= 1.592
BuildRequires: tar >= 1:1.22
BuildRequires: xorg-lib-libXtst-devel
BuildRequires: xz
-Requires(post,postun): glib2 >= 1:2.36.0
-Requires: glib2 >= 1:2.36.0
-Requires: mate-desktop-libs >= 1.9.0
-Requires: mate-panel
+Requires(post,postun): glib2 >= 1:2.50.0
+Requires: glib2 >= 1:2.50.0
+Requires: gtk+3 >= 3.22
+Requires: mate-panel >= 1.17.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# use the same libexecdir as mate-panel
+# (better solution: store mate-panel libexecdir in libmatepanelapplet-*.pc and read it here)
+%define matepanel_libexecdir %{_libexecdir}/mate-panel
+
%description
A simple window management tool which:
- allows you to set basic rules for a window type, such as maximise
%setup -q
%build
-%{__intltoolize}
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
- --disable-silent-rules \
- %{?with_gtk3:--with-gtk=3.0}
+ --libexecdir=%{matepanel_libexecdir} \
+ --disable-silent-rules
%{__make}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,jv}
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,ie,jv,ku_IQ,nqo,pms}
%find_lang %{name}
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/mate-maximus
-%attr(755,root,root) %{_libexecdir}/mate-window-picker-applet
+%attr(755,root,root) %{matepanel_libexecdir}/mate-window-picker-applet
/etc/xdg/autostart/mate-maximus-autostart.desktop
%{_datadir}/dbus-1/services/org.mate.panel.applet.MateWindowPickerFactory.service
%{_datadir}/glib-2.0/schemas/org.mate.maximus.gschema.xml