| 1 | # Note that this is NOT a relocatable package
|
|---|
| 2 | %define _version 0.9.10
|
|---|
| 3 | %define github_name libvncserver
|
|---|
| 4 | %define github_url https://github.com/LibVNC/%{github_name}/archive
|
|---|
| 5 | %define github_rev LibVNCServer-%{_version}
|
|---|
| 6 |
|
|---|
| 7 | Name: %{github_name}
|
|---|
| 8 | Version: %{_version}
|
|---|
| 9 | Release: 2%{?dist}
|
|---|
| 10 | Summary: a library to make writing a vnc server easy
|
|---|
| 11 | License: GPL
|
|---|
| 12 | Group: System/Libraries
|
|---|
| 13 | #Group: Libraries/Network
|
|---|
| 14 | Packager: Johannes.Schindelin <Johannes.Schindelin@gmx.de>
|
|---|
| 15 | # Source: %{name}-%{version}.tar.bz2
|
|---|
| 16 | Source: %{github_name}-%{github_rev}.zip
|
|---|
| 17 | Patch0: %{name}.patch
|
|---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
|---|
| 19 | BuildRequires: gcc make curl zip
|
|---|
| 20 |
|
|---|
| 21 | %description
|
|---|
| 22 | LibVNCServer makes writing a VNC server (or more correctly, a program
|
|---|
| 23 | exporting a framebuffer via the Remote Frame Buffer protocol) easy.
|
|---|
| 24 |
|
|---|
| 25 | It is based on OSXvnc, which in turn is based on the original Xvnc by
|
|---|
| 26 | ORL, later AT&T research labs in UK.
|
|---|
| 27 |
|
|---|
| 28 | It hides the programmer from the tedious task of managing clients and
|
|---|
| 29 | compression schemata.
|
|---|
| 30 |
|
|---|
| 31 | LibVNCServer was put together and is (actively ;-) maintained by
|
|---|
| 32 | Johannes Schindelin <Johannes.Schindelin@gmx.de>
|
|---|
| 33 |
|
|---|
| 34 | %package devel
|
|---|
| 35 | Requires: %{name} = %{version}
|
|---|
| 36 | Summary: Static Libraries and Header Files for LibVNCServer
|
|---|
| 37 | Group: Libraries/Network
|
|---|
| 38 | Requires: %{name} = %{version}
|
|---|
| 39 |
|
|---|
| 40 | %description devel
|
|---|
| 41 | Static Libraries and Header Files for LibVNCServer.
|
|---|
| 42 |
|
|---|
| 43 | # %package x11vnc
|
|---|
| 44 | %package applet
|
|---|
| 45 | Requires: %{name} = %{version}
|
|---|
| 46 | Summary: VNC server for the current X11 session
|
|---|
| 47 | Group: User Interface/X
|
|---|
| 48 | Requires: %{name} = %{version}
|
|---|
| 49 |
|
|---|
| 50 | # %description x11vnc
|
|---|
| 51 | %description applet
|
|---|
| 52 | x11vnc is to X Window System what WinVNC is to Windows, i.e. a server
|
|---|
| 53 | which serves the current X Window System desktop via RFB (VNC)
|
|---|
| 54 | protocol to the user.
|
|---|
| 55 |
|
|---|
| 56 | Based on the ideas of x0rfbserver and on LibVNCServer, it has evolved
|
|---|
| 57 | into a versatile and performant while still easy to use program.
|
|---|
| 58 |
|
|---|
| 59 | %prep
|
|---|
| 60 | # %setup -n %{name}-%{version}
|
|---|
| 61 | %if %(sh -c 'if test -f "%{_sourcedir}/%{github_name}-%{github_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
|
|---|
| 62 | %setup -n "%{github_name}-%{github_rev}" -q
|
|---|
| 63 | %else
|
|---|
| 64 | %setup -n "%{github_name}-%{github_rev}" -Tc
|
|---|
| 65 | rm -f "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
|
|---|
| 66 | curl -sSL "%{github_url}/%{github_rev}.zip" -o "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
|
|---|
| 67 | unzip -oC "%{_sourcedir}/%{github_name}-%{github_rev}.zip" -d ..
|
|---|
| 68 | %endif
|
|---|
| 69 |
|
|---|
| 70 | autoreconf -fi
|
|---|
| 71 |
|
|---|
| 72 | %patch0 -p1
|
|---|
| 73 |
|
|---|
| 74 | %build
|
|---|
| 75 | PATH=`echo $PATH | tr '\\\' '/'` \
|
|---|
| 76 | PATHSEP=";" EXEEXT=".exe" IMPLIBPREF="" IMPLIBSUFF="_dll.a" \
|
|---|
| 77 | LDFLAGS="-lsocket -lmmap" SORT=sort \
|
|---|
| 78 | CC=gcc.exe CXX=g++.exe ECHO=echo RANLIB=echo \
|
|---|
| 79 | AR=ar.exe LD=ld.exe PKG_CONFIG=pkg-config \
|
|---|
| 80 | EMXOMFLD_TYPE="wlink" EMXOMFLD_LINKER="wl.exe" \
|
|---|
| 81 | ./configure --without-ipv6
|
|---|
| 82 |
|
|---|
| 83 | %{__make} %{?_smp_mflags}
|
|---|
| 84 |
|
|---|
| 85 | %install
|
|---|
| 86 | # [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|---|
| 87 | # make install prefix=%{buildroot}%{_prefix}
|
|---|
| 88 | %makeinstall includedir="%{buildroot}%{_includedir}/rfb"
|
|---|
| 89 |
|
|---|
| 90 | %{__install} -d -m0755 %{buildroot}%{_datadir}/x11vnc/classes
|
|---|
| 91 | %{__install} webclients/java-applet/VncViewer.jar webclients/index.vnc \
|
|---|
| 92 | %{buildroot}%{_datadir}/x11vnc/classes
|
|---|
| 93 |
|
|---|
| 94 | %clean
|
|---|
| 95 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|---|
| 96 |
|
|---|
| 97 | %pre
|
|---|
| 98 | %post
|
|---|
| 99 | %preun
|
|---|
| 100 | %postun
|
|---|
| 101 |
|
|---|
| 102 | %files
|
|---|
| 103 | %defattr(-,root,root)
|
|---|
| 104 | %doc README INSTALL AUTHORS ChangeLog NEWS TODO
|
|---|
| 105 | # %{_bindir}/LinuxVNC
|
|---|
| 106 | %{_bindir}/libvncserver-config
|
|---|
| 107 | %{_libdir}/vncclie0.dll
|
|---|
| 108 | %{_libdir}/vncserv0.dll
|
|---|
| 109 |
|
|---|
| 110 | %files devel
|
|---|
| 111 | %defattr(-,root,root)
|
|---|
| 112 | %{_includedir}/rfb/*
|
|---|
| 113 | %{_libdir}/pkgconfig/libvncclient.pc
|
|---|
| 114 | %{_libdir}/pkgconfig/libvncserver.pc
|
|---|
| 115 | %{_libdir}/vncclie0.dbg
|
|---|
| 116 | %{_libdir}/vncserv0.dbg
|
|---|
| 117 | %{_libdir}/vncclient*.a
|
|---|
| 118 | %{_libdir}/vncserver*.a
|
|---|
| 119 | %{_libdir}/libvncclient.la
|
|---|
| 120 | %{_libdir}/libvncserver.la
|
|---|
| 121 |
|
|---|
| 122 | # %files x11vnc
|
|---|
| 123 | %files applet
|
|---|
| 124 | %defattr(-,root,root)
|
|---|
| 125 | # %{_bindir}/x11vnc
|
|---|
| 126 | # %{_mandir}/man1/x11vnc.1*
|
|---|
| 127 | %{_datadir}/x11vnc/classes
|
|---|
| 128 |
|
|---|
| 129 | %changelog
|
|---|
| 130 | * Tue Nov 17 2015 Valery Sedletski - <_valerius@mail.ru> first OS/2 build
|
|---|
| 131 | - initial OS/2 build
|
|---|
| 132 |
|
|---|
| 133 | * Fri Aug 19 2005 Alberto Lusiani <alusiani@gmail.com> release 2
|
|---|
| 134 | - create separate package for x11vnc to prevent conflicts with x11vnc rpm
|
|---|
| 135 | - create devel package, needed to compile but not needed for running
|
|---|
| 136 |
|
|---|
| 137 | * Sun Feb 9 2003 Johannes Schindelin
|
|---|
| 138 | - created libvncserver.spec.in
|
|---|
| 139 |
|
|---|