|
@@ -1,31 +1,42 @@
|
|
|
-%define system_minilzo 1
|
|
|
+Summary: Library to make writing a vnc server easy
|
|
|
+Name: libvncserver
|
|
|
+Version: 0.9.13
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+Group: System Environment/Libraries
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
|
|
|
-Summary: Library to make writing a vnc server easy
|
|
|
-Name: libvncserver
|
|
|
-Version: 0.9.9
|
|
|
-Release: 1%{?_dist_release}
|
|
|
# NOTE: --with-tightvnc-filetransfer => GPLv2
|
|
|
-License: GPLv2+
|
|
|
-Group: System Environment/Libraries
|
|
|
-URL: http://libvncserver.sourceforge.net/
|
|
|
-Source0: http://downloads.sf.net/libvncserver/LibVNCServer-%{version}.tar.gz
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
-
|
|
|
-# workaround there being no x11vnc/ dir in tarball
|
|
|
-Patch0: LibVNCServer-0.9.9-no_x11vnc.patch
|
|
|
-Patch1: LibVNCServer-0.9.9-system_minilzo.patch
|
|
|
-Patch2: libvncserver-0.9.1-multilib.patch
|
|
|
-# pkgconfig love (upstreamable)
|
|
|
-Patch3: LibVNCServer-0.9.9-pkgconfig.patch
|
|
|
-
|
|
|
+License: GPLv2+
|
|
|
+URL: https://libvnc.github.io/
|
|
|
+Source0: https://github.com/LibVNC/libvncserver/archive/LibVNCServer-%{version}.tar.gz
|
|
|
+
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+BuildRequires: cmake
|
|
|
+BuildRequires: pkgconfig(gnutls)
|
|
|
+BuildRequires: pkgconfig(sdl2)
|
|
|
+#BuildRequires: pkgconfig(libsystemd)
|
|
|
+BuildRequires: pkgconfig(avahi-client)
|
|
|
+BuildRequires: pkgconfig(ice)
|
|
|
+BuildRequires: pkgconfig(x11)
|
|
|
+BuildRequires: pkgconfig(xdamage)
|
|
|
+BuildRequires: pkgconfig(xext)
|
|
|
+BuildRequires: pkgconfig(xfixes)
|
|
|
+BuildRequires: pkgconfig(xi)
|
|
|
+BuildRequires: pkgconfig(xinerama)
|
|
|
+BuildRequires: pkgconfig(xrandr)
|
|
|
+BuildRequires: pkgconfig(xtst)
|
|
|
+BuildRequires: gettext-devel
|
|
|
+BuildRequires: libgcrypt-devel
|
|
|
+BuildRequires: libjpeg-devel
|
|
|
+BuildRequires: libpng-devel
|
|
|
+BuildRequires: lzo-devel
|
|
|
+BuildRequires: lzo-minilzo
|
|
|
+BuildRequires: openssl-devel
|
|
|
+BuildRequires: zlib-devel
|
|
|
# upstream name
|
|
|
-Obsoletes: LibVNCServer < %{version}-%{release}
|
|
|
-Provides: LibVNCServer = %{version}-%{release}
|
|
|
-
|
|
|
-BuildRequires: findutils
|
|
|
-BuildRequires: libjpeg-devel
|
|
|
-BuildRequires: zlib-devel
|
|
|
-BuildRequires: lzo-minilzo lzo-devel
|
|
|
+Obsoletes: LibVNCServer < %{version}-%{release}
|
|
|
+Provides: LibVNCServer = %{version}-%{release}
|
|
|
|
|
|
%description
|
|
|
LibVNCServer makes writing a VNC server (or more correctly, a program
|
|
@@ -34,6 +45,7 @@ exporting a framebuffer via the Remote Frame Buffer protocol) easy.
|
|
|
It hides the programmer from the tedious task of managing clients and
|
|
|
compression schemata.
|
|
|
|
|
|
+
|
|
|
%package devel
|
|
|
Summary: Development files for %{name}
|
|
|
Group: Development/Libraries
|
|
@@ -49,50 +61,29 @@ Provides: LibVNCServer-devel = %{version}-%{release}
|
|
|
|
|
|
|
|
|
%prep
|
|
|
-%setup -q -n LibVNCServer-%{version}
|
|
|
+%setup -q -n %{name}-LibVNCServer-%{version}
|
|
|
|
|
|
-%patch0 -p1 -b .no_x11vnc
|
|
|
-%if %{system_minilzo}
|
|
|
-%patch1 -p1 -b .system_minilzo
|
|
|
#nuke bundled minilzo
|
|
|
rm -f common/lzodefs.h common/lzoconf.h commmon/minilzo.h common/minilzo.c
|
|
|
-%endif
|
|
|
-%patch2 -p1 -b .multilib
|
|
|
-%patch3 -p1 -b .pkgconfig
|
|
|
|
|
|
# fix encoding
|
|
|
mv AUTHORS AUTHORS.OLD && \
|
|
|
iconv -f ISO_8859-1 -t UTF8 AUTHORS.OLD > AUTHORS && \
|
|
|
touch --reference AUTHORS.OLD AUTHORS
|
|
|
|
|
|
-# fix source perms
|
|
|
-find -name "*.c" -o -name "*.h" | xargs chmod 644
|
|
|
-
|
|
|
|
|
|
%build
|
|
|
-autoreconf
|
|
|
-%configure \
|
|
|
- --disable-static \
|
|
|
- --without-tightvnc-filetransfer
|
|
|
+mkdir -p build
|
|
|
+pushd build
|
|
|
+%cmake ..
|
|
|
+popd
|
|
|
|
|
|
-# hack to omit unused-direct-shlib-dependencies
|
|
|
-sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
|
+%make_build -C build
|
|
|
|
|
|
-make \
|
|
|
-%if %{system_minilzo}
|
|
|
-CFLAGS="$RPM_OPT_FLAGS -I %{_includedir}/lzo" LDFLAGS="$LDFLAGS -lminilzo" \
|
|
|
-%endif
|
|
|
-%{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
|
rm -rf %{buildroot}
|
|
|
-
|
|
|
-make install DESTDIR=%{buildroot}
|
|
|
-
|
|
|
-# unpackaged files
|
|
|
-rm -f %{buildroot}%{_bindir}/LinuxVNC
|
|
|
-rm -f %{buildroot}%{_libdir}/lib*.a
|
|
|
-rm -f %{buildroot}%{_libdir}/lib*.la
|
|
|
+%make_install -C build
|
|
|
|
|
|
|
|
|
%clean
|
|
@@ -106,14 +97,14 @@ rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
|
|
-%{_bindir}/linuxvnc
|
|
|
-%{_libdir}/libvncclient.so.0*
|
|
|
-%{_libdir}/libvncserver.so.0*
|
|
|
+%license COPYING
|
|
|
+%doc AUTHORS ChangeLog NEWS.md README.md TODO.md
|
|
|
+%{_libdir}/libvncclient.so.*
|
|
|
+%{_libdir}/libvncserver.so.*
|
|
|
|
|
|
%files devel
|
|
|
%defattr(-,root,root,-)
|
|
|
-%{_bindir}/*-config
|
|
|
+#{_bindir}/*-config
|
|
|
%{_includedir}/rfb/
|
|
|
%{_libdir}/libvncclient.so
|
|
|
%{_libdir}/libvncserver.so
|
|
@@ -122,6 +113,11 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Jun 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.13-1
|
|
|
+- new upstream release.
|
|
|
+- dropped Patch0, 1 and 3: fixed in upstream.
|
|
|
+- dropped Patch2.
|
|
|
+
|
|
|
* Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.9-1
|
|
|
- update to 0.9.9
|
|
|
- remove Patch50 (libvncserver-LINUX.patch)
|