source: spec/trunk/SPECS/vncserver.spec@ 585

Last change on this file since 585 was 585, checked in by valerius, 10 years ago

spec: Added the libvncserver .spec file.

File size: 4.2 KB
Line 
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
7Name: %{github_name}
8Version: %{_version}
9Release: 2%{?dist}
10Summary: a library to make writing a vnc server easy
11License: GPL
12Group: System/Libraries
13#Group: Libraries/Network
14Packager: Johannes.Schindelin <Johannes.Schindelin@gmx.de>
15# Source: %{name}-%{version}.tar.bz2
16Source: %{github_name}-%{github_rev}.zip
17Patch0: %{name}.patch
18BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
19BuildRequires: gcc make curl zip
20
21%description
22LibVNCServer makes writing a VNC server (or more correctly, a program
23exporting a framebuffer via the Remote Frame Buffer protocol) easy.
24
25It is based on OSXvnc, which in turn is based on the original Xvnc by
26ORL, later AT&T research labs in UK.
27
28It hides the programmer from the tedious task of managing clients and
29compression schemata.
30
31LibVNCServer was put together and is (actively ;-) maintained by
32Johannes Schindelin <Johannes.Schindelin@gmx.de>
33
34%package devel
35Requires: %{name} = %{version}
36Summary: Static Libraries and Header Files for LibVNCServer
37Group: Libraries/Network
38Requires: %{name} = %{version}
39
40%description devel
41Static Libraries and Header Files for LibVNCServer.
42
43# %package x11vnc
44%package applet
45Requires: %{name} = %{version}
46Summary: VNC server for the current X11 session
47Group: User Interface/X
48Requires: %{name} = %{version}
49
50# %description x11vnc
51%description applet
52x11vnc is to X Window System what WinVNC is to Windows, i.e. a server
53which serves the current X Window System desktop via RFB (VNC)
54protocol to the user.
55
56Based on the ideas of x0rfbserver and on LibVNCServer, it has evolved
57into 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
65rm -f "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
66curl -sSL "%{github_url}/%{github_rev}.zip" -o "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
67unzip -oC "%{_sourcedir}/%{github_name}-%{github_rev}.zip" -d ..
68%endif
69
70autoreconf -fi
71
72%patch0 -p1
73
74%build
75PATH=`echo $PATH | tr '\\\' '/'` \
76PATHSEP=";" EXEEXT=".exe" IMPLIBPREF="" IMPLIBSUFF="_dll.a" \
77LDFLAGS="-lsocket -lmmap" SORT=sort \
78CC=gcc.exe CXX=g++.exe ECHO=echo RANLIB=echo \
79AR=ar.exe LD=ld.exe PKG_CONFIG=pkg-config \
80EMXOMFLD_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
Note: See TracBrowser for help on using the repository browser.