| 1 | # Note that this is NOT a relocatable package
|
|---|
| 2 | %define _version 0.9.10
|
|---|
| 3 | %define github_name libvncserver
|
|---|
| 4 | # whether to use Github, or Netlabs's svn
|
|---|
| 5 | %define _github 0
|
|---|
| 6 |
|
|---|
| 7 | %if %_github
|
|---|
| 8 | %define github_url https://github.com/LibVNC/%{github_name}/archive
|
|---|
| 9 | %define github_rev LibVNCServer-%{_version}
|
|---|
| 10 | %else
|
|---|
| 11 | %define github_url http://svn.netlabs.org/repos/ports/libvncserver/trunk
|
|---|
| 12 | %define github_rev 1315
|
|---|
| 13 | %endif
|
|---|
| 14 |
|
|---|
| 15 | Name: %{github_name}
|
|---|
| 16 | Version: %{_version}
|
|---|
| 17 | Release: 2%{?dist}
|
|---|
| 18 | Summary: a library to make writing a vnc server easy
|
|---|
| 19 | License: GPL
|
|---|
| 20 | Group: System/Libraries
|
|---|
| 21 | #Group: Libraries/Network
|
|---|
| 22 | Packager: Johannes.Schindelin <Johannes.Schindelin@gmx.de>
|
|---|
| 23 | # Source: %{name}-%{version}.tar.bz2
|
|---|
| 24 | %if %_github
|
|---|
| 25 | Source: %{github_name}-%{github_rev}.zip
|
|---|
| 26 | Patch0: %{name}.patch
|
|---|
| 27 | %else
|
|---|
| 28 | Source: %{name}-%{version}%{?github_rev:-r%{github_rev}}.zip
|
|---|
| 29 | %endif
|
|---|
| 30 | BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
|---|
| 31 | BuildRequires: gcc make curl zip
|
|---|
| 32 |
|
|---|
| 33 | %description
|
|---|
| 34 | LibVNCServer makes writing a VNC server (or more correctly, a program
|
|---|
| 35 | exporting a framebuffer via the Remote Frame Buffer protocol) easy.
|
|---|
| 36 |
|
|---|
| 37 | It is based on OSXvnc, which in turn is based on the original Xvnc by
|
|---|
| 38 | ORL, later AT&T research labs in UK.
|
|---|
| 39 |
|
|---|
| 40 | It hides the programmer from the tedious task of managing clients and
|
|---|
| 41 | compression schemata.
|
|---|
| 42 |
|
|---|
| 43 | LibVNCServer was put together and is (actively ;-) maintained by
|
|---|
| 44 | Johannes Schindelin <Johannes.Schindelin@gmx.de>
|
|---|
| 45 |
|
|---|
| 46 | %package devel
|
|---|
| 47 | Requires: %{name} = %{version}
|
|---|
| 48 | Summary: Static Libraries and Header Files for LibVNCServer
|
|---|
| 49 | Group: Libraries/Network
|
|---|
| 50 | Requires: %{name} = %{version}
|
|---|
| 51 |
|
|---|
| 52 | %description devel
|
|---|
| 53 | Static Libraries and Header Files for LibVNCServer.
|
|---|
| 54 |
|
|---|
| 55 | %debug_package
|
|---|
| 56 |
|
|---|
| 57 | # %package x11vnc
|
|---|
| 58 | #Requires: %{name} = %{version}
|
|---|
| 59 | #Summary: VNC server for the current X11 session
|
|---|
| 60 | #Group: User Interface/X
|
|---|
| 61 | #Requires: %{name} = %{version}
|
|---|
| 62 |
|
|---|
| 63 | # %description x11vnc
|
|---|
| 64 | #x11vnc is to X Window System what WinVNC is to Windows, i.e. a server
|
|---|
| 65 | #which serves the current X Window System desktop via RFB (VNC)
|
|---|
| 66 | #protocol to the user.
|
|---|
| 67 |
|
|---|
| 68 | #Based on the ideas of x0rfbserver and on LibVNCServer, it has evolved
|
|---|
| 69 | #into a versatile and performant while still easy to use program.
|
|---|
| 70 |
|
|---|
| 71 | %prep
|
|---|
| 72 | # %setup -n %{name}-%{version}
|
|---|
| 73 |
|
|---|
| 74 | %if %_github
|
|---|
| 75 |
|
|---|
| 76 | %if %(sh -c 'if test -f "%{_sourcedir}/%{github_name}-%{github_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
|
|---|
| 77 | %setup -n "%{github_name}-%{github_rev}" -q
|
|---|
| 78 | %else
|
|---|
| 79 | %setup -n "%{github_name}-%{github_rev}" -Tc
|
|---|
| 80 | rm -f "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
|
|---|
| 81 | curl -sSL "%{github_url}/%{github_rev}.zip" -o "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
|
|---|
| 82 | unzip -oC "%{_sourcedir}/%{github_name}-%{github_rev}.zip" -d ..
|
|---|
| 83 | %endif
|
|---|
| 84 |
|
|---|
| 85 | %else
|
|---|
| 86 |
|
|---|
| 87 | %if %{?github_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{github_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?github_rev):0}
|
|---|
| 88 | %setup -q
|
|---|
| 89 | %else
|
|---|
| 90 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 91 | svn export %{?github_rev:-r %{github_rev}} %{github_url} . --force
|
|---|
| 92 | rm -f "%{_sourcedir}/%{name}-%{version}%{?github_rev:-r%{github_rev}}.zip"
|
|---|
| 93 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?github_rev:-r%{github_rev}}.zip" "%{name}-%{version}")
|
|---|
| 94 | %endif
|
|---|
| 95 |
|
|---|
| 96 | %endif
|
|---|
| 97 |
|
|---|
| 98 | autoreconf -fi
|
|---|
| 99 |
|
|---|
| 100 | %if %_github
|
|---|
| 101 | %patch0 -p1
|
|---|
| 102 | %endif
|
|---|
| 103 |
|
|---|
| 104 | %build
|
|---|
| 105 | export LDFLAGS="-Zhigh-mem -lsocket -lmmap" RANLIB=echo
|
|---|
| 106 |
|
|---|
| 107 | %configure --without-ipv6
|
|---|
| 108 |
|
|---|
| 109 | %{__make} %{?_smp_mflags}
|
|---|
| 110 |
|
|---|
| 111 | %install
|
|---|
| 112 | # [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|---|
| 113 | # make install prefix=%{buildroot}%{_prefix}
|
|---|
| 114 | %makeinstall includedir="%{buildroot}%{_includedir}/rfb"
|
|---|
| 115 | emxomf -o %{buildroot}%{_libdir}/vncserver.lib %{buildroot}%{_libdir}/vncserver.a
|
|---|
| 116 | emximp -o %{buildroot}%{_libdir}/vncserver_dll.lib %{buildroot}%{_libdir}/vncsrv0.dll
|
|---|
| 117 | emximp -o %{buildroot}%{_libdir}/vncserver0_dll.lib %{buildroot}%{_libdir}/vncsrv0.dll
|
|---|
| 118 | emxomf -o %{buildroot}%{_libdir}/vncclient.lib %{buildroot}%{_libdir}/vncclient.a
|
|---|
| 119 | emximp -o %{buildroot}%{_libdir}/vncclient_dll.lib %{buildroot}%{_libdir}/vnccli0.dll
|
|---|
| 120 | emximp -o %{buildroot}%{_libdir}/vncclient0_dll.lib %{buildroot}%{_libdir}/vnccli0.dll
|
|---|
| 121 | # change shell path in libvncserver-config
|
|---|
| 122 | sed -e 's-\#\!\/bin\/sh-#! /@unixroot/usr/bin/sh-g' \
|
|---|
| 123 | <%{buildroot}%{_bindir}/libvncserver-config \
|
|---|
| 124 | >%{buildroot}%{_bindir}/libvncserver-config-1
|
|---|
| 125 | rm -rf %{buildroot}%{_bindir}/libvncserver-config
|
|---|
| 126 | mv -f %{buildroot}%{_bindir}/libvncserver-config-1 %{buildroot}%{_bindir}/libvncserver-config
|
|---|
| 127 |
|
|---|
| 128 | #%{__install} -d -m0755 %{buildroot}%{_datadir}/x11vnc/classes
|
|---|
| 129 | #%{__install} webclients/java-applet/VncViewer.jar webclients/index.vnc \
|
|---|
| 130 | # %{buildroot}%{_datadir}/x11vnc/classes
|
|---|
| 131 |
|
|---|
| 132 | %clean
|
|---|
| 133 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|---|
| 134 |
|
|---|
| 135 | %pre
|
|---|
| 136 | %post
|
|---|
| 137 | %preun
|
|---|
| 138 | %postun
|
|---|
| 139 |
|
|---|
| 140 | %files
|
|---|
| 141 | %defattr(-,root,root)
|
|---|
| 142 | %doc README INSTALL AUTHORS ChangeLog NEWS TODO
|
|---|
| 143 | # %{_bindir}/LinuxVNC
|
|---|
| 144 | %{_bindir}/libvncserver-config
|
|---|
| 145 | %{_libdir}/vnccli0.dll
|
|---|
| 146 | %{_libdir}/vncsrv0.dll
|
|---|
| 147 |
|
|---|
| 148 | %files devel
|
|---|
| 149 | %defattr(-,root,root)
|
|---|
| 150 | %{_includedir}/rfb/*
|
|---|
| 151 | %{_libdir}/pkgconfig/libvncclient.pc
|
|---|
| 152 | %{_libdir}/pkgconfig/libvncserver.pc
|
|---|
| 153 | %{_libdir}/vncclient*.a
|
|---|
| 154 | %{_libdir}/vncserver*.a
|
|---|
| 155 | %{_libdir}/vncclient*.lib
|
|---|
| 156 | %{_libdir}/vncserver*.lib
|
|---|
| 157 | %exclude %{_libdir}/libvncclient.la*
|
|---|
| 158 | %exclude %{_libdir}/libvncserver.la*
|
|---|
| 159 |
|
|---|
| 160 | # %files x11vnc
|
|---|
| 161 | #%defattr(-,root,root)
|
|---|
| 162 | # %{_bindir}/x11vnc
|
|---|
| 163 | # %{_mandir}/man1/x11vnc.1*
|
|---|
| 164 | #%{_datadir}/x11vnc/classes
|
|---|
| 165 |
|
|---|
| 166 | %changelog
|
|---|
| 167 | * Thu Feb 18 2016 Valery Sedletski - <_valerius@mail.ru> 0.9.10-2
|
|---|
| 168 | - changed libs format to both a.out and OMF
|
|---|
| 169 | - added debug package
|
|---|
| 170 | - added OS/2 DLL shortname
|
|---|
| 171 |
|
|---|
| 172 | * Tue Nov 17 2015 Valery Sedletski - <_valerius@mail.ru> first OS/2 build
|
|---|
| 173 | - initial OS/2 build
|
|---|