source: spec/trunk/SPECS/libvncserver.spec

Last change on this file was 1690, checked in by valerius, 6 years ago

libvncserver: rename spec as it is in Fedora. Remove wrong libgcc1 dependency. Build with gcc 9.2.0.

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