--- /dev/null
+--- libvncserver-LibVNCServer-0.9.11/libvncserver-config.in.orig 2016-12-30 14:01:28.000000000 +0100
++++ libvncserver-LibVNCServer-0.9.11/libvncserver-config.in 2017-07-10 16:41:58.569474193 +0200
+@@ -57,6 +57,9 @@
+ --libs)
+ libs=""
+ for dir in $libdir; do
++ if [ "$dir" = "@libdir@" ]; then
++ continue
++ fi
+ libs="$libs -L$dir"
+ if [ "`uname`" = "SunOS" ]; then
+ # why only Solaris??
Summary(pl.UTF-8): LibVNCServer - biblioteka do łatwego implementowania serwera VNC/RDP
Name: libvncserver
Version: 0.9.11
-Release: 2
+Release: 3
License: GPL v2
Group: Libraries
#Source0Download: https://github.com/LibVNC/libvncserver/releases
Source0: https://github.com/LibVNC/libvncserver/archive/LibVNCServer-%{version}.tar.gz
# Source0-md5: 7f06104d5c009813e95142932c4ddb06
Patch0: %{name}-linux.patch
+Patch1: %{name}-noLlibdir.patch
URL: https://github.com/LibVNC/libvncserver/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
%prep
%setup -q -n libvncserver-LibVNCServer-%{version}
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}