--- /dev/null
+--- caja-extensions-1.22.0/configure.ac.orig 2019-02-25 14:25:14.000000000 +0100
++++ caja-extensions-1.22.0/configure.ac 2019-05-20 20:57:04.237355843 +0200
+@@ -196,8 +196,10 @@
+ fi
+ ;;
+ upnp)
++ PKG_CHECK_MODULES(UPNP, gupnp-1.2 >= $GUPNP_REQUIRED, enable_upnp=yes, [
+ PKG_CHECK_MODULES(UPNP, gupnp-1.0 >= $GUPNP_REQUIRED,
+ enable_upnp=yes, enable_upnp=no)
++ ])
+ if test "${enable_upnp}" != "yes" ; then
+ sendto_plugin_error_or_ignore "you need gupnp installed to build the upnp plugin"
+ add_sendto_plugin="0"
Group: X11/Applications
Source0: http://pub.mate-desktop.org/releases/1.22/%{name}-%{version}.tar.xz
# Source0-md5: 7090545d9cd493681b656ea566fb392a
+Patch0: %{name}-gupnp.patch
URL: http://mate-desktop.org/
BuildRequires: autoconf >= 2.53
BuildRequires: automake >= 1:1.9
%prep
%setup -q
+%patch0 -p1
%build
%{__gtkdocize}