|
|
|
|
|
|
|
# Fedora pkg review: http://bugzilla.redhat.com/429749
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%define system_minilzo 1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Summary: Library to make writing a vnc server easy
|
|
|
|
Name: libvncserver
|
|
|
|
Version: 0.9.8.2
|
|
|
|
Release: 3%{?dist}
|
|
|
|
# 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}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
Patch1: LibVNCServer-0.9.8.2-system_minilzo.patch
|
|
|
|
Patch2: libvncserver-0.9.1-multilib.patch
|
|
|
|
|
|
|
|
# safer LINUX platform detection (from opensuse)
|
|
|
|
Patch50: libvncserver-LINUX.patch
|
|
|
|
|
|
|
|
# upstream name
|
|
|
|
Obsoletes: LibVNCServer < 0.9.1
|
|
|
|
Provides: LibVNCServer = %{version}-%{release}
|
|
|
|
|
|
|
|
BuildRequires: automake autoconf
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
%{?system_minilzo:BuildRequires: lzo-minilzo lzo-devel}
|
|
|
|
BuildRequires: pkgconfig(gnutls)
|
|
|
|
# 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}
|
|
|
|
Group: Development/Libraries
|
|
|
|
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}
|
|
|
|
|
|
|
|
%if 0%{?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
|
|
|
|
%patch50 -p0 -b .LINUX
|
|
|
|
|
|
|
|
# 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 patches 1, 50
|
|
|
|
autoreconf
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--without-tightvnc-filetransfer
|
|
|
|
|
|
|
|
# hack to omit unused-direct-shlib-dependencies
|
|
|
|
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
|
|
|
|
|
|
make %{?_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
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
unset DISPLAY
|
|
|
|
# Run a fake X session
|
|
|
|
xvfb-run -a make -C test test
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
|
|
|
%{_libdir}/libvncclient.so.0*
|
|
|
|
%{_libdir}/libvncserver.so.0*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/libvncserver-config
|
|
|
|
%{_includedir}/rfb/
|
|
|
|
%{_libdir}/libvncclient.so
|
|
|
|
%{_libdir}/libvncserver.so
|
|
|
|
%{_libdir}/pkgconfig/libvncclient.pc
|
|
|
|
%{_libdir}/pkgconfig/libvncserver.pc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* 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
|