You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
278 lines
9.0 KiB
278 lines
9.0 KiB
|
|
%define git_commit 9453be42014b6b9eaa6ab6f8c2e8b6f4f01d15aa
|
|
%define git_short 9453be42
|
|
%define snap 20140718
|
|
|
|
Summary: Library to make writing a vnc server easy
|
|
Name: libvncserver
|
|
Version: 0.9.10
|
|
Release: 0.5.%{snap}git%{git_short}%{?dist}
|
|
|
|
# NOTE: --with-tightvnc-filetransfer => GPLv2
|
|
License: GPLv2+
|
|
URL: http://libvncserver.sourceforge.net/
|
|
%if 0%{?snap:1}
|
|
# git archive --prefix=LibVNCServer-0.9.10/ 646f844f69cc74b8eebf25cc76663b2ee851e5d3 | gzip -9 > LibVNCServer-0.9.10-646f844f.tar.gz
|
|
Source0: LibVNCServer-%{version}-%{git_short}.tar.gz
|
|
%else
|
|
Source0: http://downloads.sf.net/libvncserver/LibVNCServer-%{version}.tar.gz
|
|
%endif
|
|
|
|
# workaround there being no x11vnc/ dir in tarball
|
|
Patch0: LibVNCServer-0.9.10-no_x11vnc.patch
|
|
Patch1: LibVNCServer-0.9.10-system_minilzo.patch
|
|
Patch2: libvncserver-0.9.1-multilib.patch
|
|
# pkgconfig love (upstreamable)
|
|
Patch3: LibVNCServer-0.9.9-pkgconfig.patch
|
|
# krfb patches, https://github.com/LibVNC/libvncserver/pull/16
|
|
Patch11: 0001-Fix-crash-in-krfb.patch
|
|
Patch12: 0002-allow-rfbInitSockets-with-non-ready-states.patch
|
|
|
|
## upstream patches
|
|
|
|
## security patches
|
|
## pulled from (fork): https://github.com/newsoft/libvncserver
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6051
|
|
Patch201: CVE-2014-6051.patch
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6052
|
|
Patch202: CVE-2014-6052.patch
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6053
|
|
Patch203: CVE-2014-6053.patch
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6054
|
|
Patch204: CVE-2014-6054.patch
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6055
|
|
Patch205: CVE-2014-6055.patch
|
|
|
|
# upstream name
|
|
Obsoletes: LibVNCServer < 0.9.1
|
|
Provides: LibVNCServer = %{version}-%{release}
|
|
|
|
BuildRequires: automake autoconf
|
|
BuildRequires: libgcrypt-devel
|
|
BuildRequires: libjpeg-devel
|
|
## FIXME/TODO: --with-va FTBFS
|
|
#BuildRequires: libva-devel
|
|
BuildRequires: lzo-minilzo lzo-devel
|
|
BuildRequires: pkgconfig(gnutls)
|
|
BuildRequires: pkgconfig(libcrypto) pkgconfig(libssl)
|
|
BuildRequires: pkgconfig(libpng)
|
|
# Additional deps for --with-x11vnc, see https://bugzilla.redhat.com/show_bug.cgi?id=864947
|
|
BuildRequires: pkgconfig(avahi-client)
|
|
BuildRequires: pkgconfig(ice) pkgconfig(x11) pkgconfig(xdamage)
|
|
BuildRequires: pkgconfig(xext) pkgconfig(xfixes) pkgconfig(xi)
|
|
BuildRequires: pkgconfig(xinerama) pkgconfig(xrandr) pkgconfig(xtst)
|
|
|
|
# for %%check
|
|
BuildRequires: xorg-x11-server-Xvfb
|
|
BuildRequires: xorg-x11-xauth
|
|
BuildRequires: zlib-devel
|
|
|
|
%description
|
|
LibVNCServer makes writing a VNC server (or more correctly, a program
|
|
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}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
# libvncserver-config deps
|
|
Requires: coreutils
|
|
# upstream name
|
|
#Obsoletes: LibVNCServer-devel < %{version}-%{release}
|
|
Provides: LibVNCServer-devel = %{version}-%{release}
|
|
%description devel
|
|
%{summary}.
|
|
|
|
|
|
%prep
|
|
%setup -q -n LibVNCServer-%{version}
|
|
|
|
%patch0 -p1 -b .no_x11vnc
|
|
%patch1 -p1 -b .system_minilzo
|
|
#nuke bundled minilzo
|
|
rm -fv common/lzodefs.h common/lzoconf.h commmon/minilzo.h common/minilzo.c
|
|
%patch2 -p1 -b .multilib
|
|
%patch3 -p1 -b .pkgconfig
|
|
%patch11 -p1 -b .0001
|
|
%patch12 -p1 -b .0002
|
|
%patch201 -p1 -b .CVE-2014-6051
|
|
%patch202 -p1 -b .CVE-2014-6052
|
|
%patch203 -p1 -b .CVE-2014-6053
|
|
%patch204 -p1 -b .CVE-2014-6054
|
|
%patch205 -p1 -b .CVE-2014-6055
|
|
|
|
# fix encoding
|
|
for file in AUTHORS ChangeLog ; do
|
|
mv ${file} ${file}.OLD && \
|
|
iconv -f ISO_8859-1 -t UTF8 ${file}.OLD > ${file} && \
|
|
touch --reference ${file}.OLD $file
|
|
done
|
|
|
|
# needed by patch 1 (and to nuke rpath's)
|
|
%if 0%{?snap:1}
|
|
./autogen.sh
|
|
%else
|
|
autoreconf -is
|
|
%endif
|
|
|
|
|
|
%build
|
|
%configure \
|
|
--disable-silent-rules \
|
|
--disable-static \
|
|
--without-tightvnc-filetransfer \
|
|
--with-gcrypt \
|
|
--without-libva \
|
|
--with-png \
|
|
--with-x11vnc
|
|
|
|
# hack to omit unused-direct-shlib-dependencies
|
|
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
# unpackaged files
|
|
rm -fv %{buildroot}%{_bindir}/linuxvnc
|
|
rm -fv %{buildroot}%{_libdir}/lib*.a
|
|
rm -fv %{buildroot}%{_libdir}/lib*.la
|
|
|
|
|
|
%check
|
|
unset DISPLAY
|
|
# Run a fake X session
|
|
# rawhide/koji seems to have some some unreproducible errors atm -- rex
|
|
# there's also selinux :( https://bugzilla.redhat.com/843603
|
|
xvfb-run -a make -C test test ||:
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
|
%{_libdir}/libvncclient.so.0*
|
|
%{_libdir}/libvncserver.so.0*
|
|
|
|
%files devel
|
|
%{_bindir}/libvncserver-config
|
|
%{_includedir}/rfb/
|
|
%{_libdir}/libvncclient.so
|
|
%{_libdir}/libvncserver.so
|
|
%{_libdir}/pkgconfig/libvncclient.pc
|
|
%{_libdir}/pkgconfig/libvncserver.pc
|
|
|
|
|
|
%changelog
|
|
* Thu Sep 25 2014 Rex Dieter <rdieter@fedoraproject.org> 0.9.10-0.5.20140718git9453be42
|
|
- Security fixes (#1145878) ...
|
|
- CVE-2014-6051 (#1144287)
|
|
- CVE-2014-6052 (#1144288)
|
|
- CVE-2014-6053 (#1144289)
|
|
- CVE-2014-6054 (#1144291)
|
|
- CVE-2014-6055 (#1144293)
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-0.5.20140718git9453be42
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Sun Aug 03 2014 Rex Dieter <rdieter@fedoraproject.org> 0.9.10-0.4.20140718git9453be42
|
|
- 20140718git9453be42 snapshot
|
|
|
|
* Sun Aug 03 2014 Rex Dieter <rdieter@fedoraproject.org> 0.9.10-0.3.20140405git646f844f
|
|
- include krfb patches (upstream pull request #16)
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-0.2.20140405git646f844f
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Tue Apr 29 2014 Rex Dieter <rdieter@fedoraproject.org> 0.9.10-0.1.20140405git646f844f
|
|
- Update to the latest git commit 646f844 (#1092245)
|
|
|
|
* Mon Mar 31 2014 Rex Dieter <rdieter@fedoraproject.org> 0.9.9-11
|
|
- x11vnc crash when client connect (#972618)
|
|
pull in some upstream commits that may help
|
|
|
|
* Sat Dec 21 2013 Rex Dieter <rdieter@fedoraproject.org> - 0.9.9-10
|
|
- include additional dependencies for x11vnc (#864947)
|
|
- %%build: --disable-silent-rules
|
|
- cleanup spec, drop support for old rpm (el5)
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9-9
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Tue Jul 23 2013 Rex Dieter <rdieter@fedoraproject.org> 0.9.9-8
|
|
- Automagic dependencies, explitictly build --with-gcrypt --with-png (#852660)
|
|
|
|
* Thu Feb 14 2013 Rex Dieter <rdieter@fedoraproject.org> 0.9.9-7
|
|
- pkgconfig love (#854111)
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 0.9.9-5
|
|
- rebuild due to "jpeg8-ABI" feature drop
|
|
|
|
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.9.9-4
|
|
- rebuild against new libjpeg
|
|
|
|
* Thu Jul 26 2012 Rex Dieter <rdieter@fedoraproject.org> 0.9.9-3
|
|
- libvncserver fails to build in mock with selinux enabled (#843603)
|
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Mon May 07 2012 Rex Dieter <rdieter@fedoraproject.org> 0.9.9-1
|
|
- 0.9.9
|
|
|
|
* Wed Apr 18 2012 Petr Pisar <ppisar@redhat.com> 0.9.8.2-4
|
|
- Enable system lzo library on rhel >= 6 (#813764)
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8.2-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Sat Dec 31 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.9.8.2-2
|
|
- On F15, %%check needs xorg-x11-xauth, too
|
|
|
|
* Tue Dec 13 2011 Rex Dieter <rdieter@fedoraproject.org> 0.9.8.2-1
|
|
- 0.9.8.2 (#694975)
|
|
- new %%check section (yay for xvfb-run)
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Thu Feb 18 2010 Stepan Kasal <skasal@redhat.com> - 0.9.7-4
|
|
- repack the tarball, there are .jar files without any source
|
|
- do not BR findutils, they are guaranteed in Fedora mock
|
|
- fix obsolete, so that it covers only packages created before this
|
|
spec was added to Fedora
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Sat May 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-3
|
|
- Socket is not closed when disconnecting from server (#501895)
|
|
|
|
* Mon May 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-2
|
|
- fix detection of LINUX platform/define
|
|
|
|
* Mon May 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-1
|
|
- LibVNCServer-0.9.7
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Thu Apr 10 2008 Manuel Wolfshant <wolfy@fedoraproject.org> 0.9.1-3
|
|
- do not use bundled copy of minilzo (#439979)
|
|
|
|
* Sun Jan 27 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.1-2
|
|
- hack libtool to omit unused shlib dependencies
|
|
- fix AUTHORS encoding
|
|
- fix src perms
|
|
|
|
* Mon Jan 21 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.1-1
|
|
- 0.9.1
|