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

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

spec: vncserver: Added generation of both a.out and OMF libs

File size: 5.5 KB
Line 
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
15Name: %{github_name}
16Version: %{_version}
17Release: 2%{?dist}
18Summary: a library to make writing a vnc server easy
19License: GPL
20Group: System/Libraries
21#Group: Libraries/Network
22Packager: Johannes.Schindelin <Johannes.Schindelin@gmx.de>
23# Source: %{name}-%{version}.tar.bz2
24%if %_github
25Source: %{github_name}-%{github_rev}.zip
26Patch0: %{name}.patch
27%else
28Source: %{name}-%{version}%{?github_rev:-r%{github_rev}}.zip
29%endif
30BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
31BuildRequires: gcc make curl zip
32
33%description
34LibVNCServer makes writing a VNC server (or more correctly, a program
35exporting a framebuffer via the Remote Frame Buffer protocol) easy.
36
37It is based on OSXvnc, which in turn is based on the original Xvnc by
38ORL, later AT&T research labs in UK.
39
40It hides the programmer from the tedious task of managing clients and
41compression schemata.
42
43LibVNCServer was put together and is (actively ;-) maintained by
44Johannes Schindelin <Johannes.Schindelin@gmx.de>
45
46%package devel
47Requires: %{name} = %{version}
48Summary: Static Libraries and Header Files for LibVNCServer
49Group: Libraries/Network
50Requires: %{name} = %{version}
51
52%description devel
53Static 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
80rm -f "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
81curl -sSL "%{github_url}/%{github_rev}.zip" -o "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
82unzip -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
91svn export %{?github_rev:-r %{github_rev}} %{github_url} . --force
92rm -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
98autoreconf -fi
99
100%if %_github
101%patch0 -p1
102%endif
103
104%build
105export 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"
115emxomf -o %{buildroot}%{_libdir}/vncserver.lib %{buildroot}%{_libdir}/vncserver.a
116emximp -o %{buildroot}%{_libdir}/vncserver_dll.lib %{buildroot}%{_libdir}/vncsrv0.dll
117emximp -o %{buildroot}%{_libdir}/vncserver0_dll.lib %{buildroot}%{_libdir}/vncsrv0.dll
118emxomf -o %{buildroot}%{_libdir}/vncclient.lib %{buildroot}%{_libdir}/vncclient.a
119emximp -o %{buildroot}%{_libdir}/vncclient_dll.lib %{buildroot}%{_libdir}/vnccli0.dll
120emximp -o %{buildroot}%{_libdir}/vncclient0_dll.lib %{buildroot}%{_libdir}/vnccli0.dll
121# change shell path in libvncserver-config
122sed -e 's-\#\!\/bin\/sh-#! /@unixroot/usr/bin/sh-g' \
123 <%{buildroot}%{_bindir}/libvncserver-config \
124 >%{buildroot}%{_bindir}/libvncserver-config-1
125rm -rf %{buildroot}%{_bindir}/libvncserver-config
126mv -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
Note: See TracBrowser for help on using the repository browser.