]> git.pld-linux.org Git - packages/libvncserver.git/blob - libvncserver.spec
13956e7f17d09efb2fc920c80863c790a8d7aa11
[packages/libvncserver.git] / libvncserver.spec
1 %define         srcname LibVNCServer
2 Summary:        LibVNCServer - a for easy implementation of VNC/RDP server
3 Summary(pl.UTF-8):      LibVNCServer - biblioteka do łatwego implementowania serwera VNC/RDP
4 Name:           libvncserver
5 Version:        0.9.9
6 Release:        2
7 Epoch:          0
8 License:        GPL v2
9 Group:          Libraries
10 Source0:        http://downloads.sourceforge.net/libvncserver/%{srcname}-%{version}.tar.gz
11 # Source0-md5:  70422169b122765693d2a294d13e3714
12 Patch0:         %{name}-linux.patch
13 URL:            http://libvncserver.sourceforge.net/
14 BuildRequires:  autoconf >= 2.50
15 BuildRequires:  automake
16 BuildRequires:  gnutls-devel >= 2.4.0
17 BuildRequires:  libgcrypt-devel >= 1.4.0
18 BuildRequires:  libjpeg-devel
19 BuildRequires:  libtool
20 BuildRequires:  pkgconfig
21 BuildRequires:  sed >= 4.0
22 BuildRequires:  xorg-lib-libX11-devel
23 BuildRequires:  xorg-lib-libXdamage-devel
24 BuildRequires:  xorg-lib-libXext-devel
25 BuildRequires:  xorg-lib-libXfixes-devel
26 BuildRequires:  xorg-lib-libXinerama-devel
27 BuildRequires:  xorg-lib-libXrandr-devel
28 BuildRequires:  xorg-lib-libXtst-devel
29 BuildRequires:  zlib-devel
30 # not used (x11vnc moved to separate package)
31 #BuildRequires: openssl-devel
32 # for noinst client_examples only
33 #BuildRequires: SDL-devel
34 #BuildRequires: ffmpeg-devel
35 Requires:       gnutls >= 2.4.0
36 Requires:       libgcrypt >= 1.4.0
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
40 LibVNCServer makes writing a VNC server (or more correctly, a program
41 exporting a framebuffer via the Remote Frame Buffer protocol) easy.
42
43 It is based on OSXvnc, which in turn is based on the original Xvnc by
44 ORL, later AT&T research labs in UK.
45
46 It hides the programmer from the tedious task of managing clients and
47 compression schemata.
48
49 LibVNCServer was put together and is (actively ;-) maintained by
50 Johannes Schindelin <Johannes.Schindelin@gmx.de>.
51
52 %description -l pl.UTF-8
53 LibVNCServer ułatwia pisanie serwera VNC (lub, bardziej poprawnie,
54 programu eksportującego framebuffer poprzez protokół Remote Frame
55 Buffer).
56
57 Jest oparty na OSXvnc, który z kolei bazuje na oryginalnym Xvnc
58 napisanym przez ORL, a później AT&T.
59
60 Biblioteka ukrywa przed programistą nudne zadanie zarządzania
61 klientami i schematami kompresji.
62
63 LibVNCServer została poskładana i jest (aktywnie) utrzymywana przez
64 Johannesa Schindelina <Johannes.Schindelin@gmx.de>.
65
66 %package devel
67 Summary:        LibVNCServer header files
68 Summary(pl.UTF-8):      Pliki nagłówkowe LibVNCServer
69 Group:          Development/Libraries
70 Requires:       %{name} = %{epoch}:%{version}-%{release}
71 Requires:       gnutls-devel >= 2.4.0
72 Requires:       libgcrypt-devel >= 1.4.0
73 Requires:       libjpeg-devel
74 Requires:       zlib-devel
75
76 %description devel
77 LibVNCServer header files.
78
79 %description devel -l pl.UTF-8
80 Pliki nagłówkowe LibVNCServer.
81
82 %package static
83 Summary:        Static LibVNCServer libraries
84 Summary(pl.UTF-8):      Statyczne biblioteki LibVNCServer
85 Group:          Development/Libraries
86 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
87
88 %description static
89 Static LibVNCServer libraries.
90
91 %description static -l pl.UTF-8
92 Statyczne biblioteki LibVNCServer.
93
94 %package progs
95 Summary:        Example programs that use LibVNCServer
96 Summary(pl.UTF-8):      Przykładowe programy wykorzystujące LibVNCServer
97 Group:          Applications
98 Requires:       %{name} = %{epoch}:%{version}-%{release}
99
100 %description progs
101 Example programs that use LibVNCServer.
102
103 %description progs -l pl.UTF-8
104 Przykładowe programy wykorzystujące LibVNCServer.
105
106 %prep
107 %setup -q -n %{srcname}-%{version}
108 %patch0 -p1
109
110 install -d x11vnc/misc
111 touch x11vnc/Makefile.in x11vnc/misc/Makefile.in
112
113 awk 'BEGIN { f=1; } /# libtool.m4/ { f=0; } { if (f) { print $0; } }' acinclude.m4 > acinclude.m4.new
114 mv acinclude.m4.new acinclude.m4
115
116 sed -i -e '/AC_CONFIG_FILES.*x11vnc/d' configure.ac
117
118 %build
119 %{__libtoolize}
120 %{__aclocal}
121 %{__autoconf}
122 %{__autoheader}
123 %{__automake}
124 %configure \
125         --without-x11vnc
126 %{__make}
127
128 %install
129 rm -rf $RPM_BUILD_ROOT
130
131 %{__make} install \
132         DESTDIR=$RPM_BUILD_ROOT
133
134 # *.la not removed - *.pc don't contain Requires.private nor Libs.private
135
136 %clean
137 rm -rf $RPM_BUILD_ROOT
138
139 %post   -p /sbin/ldconfig
140 %postun -p /sbin/ldconfig
141
142 %files
143 %defattr(644,root,root,755)
144 %doc AUTHORS ChangeLog NEWS README TODO
145 %attr(755,root,root) %{_libdir}/libvncclient.so.*.*.*
146 %attr(755,root,root) %ghost %{_libdir}/libvncclient.so.0
147 %attr(755,root,root) %{_libdir}/libvncserver.so.*.*.*
148 %attr(755,root,root) %ghost %{_libdir}/libvncserver.so.0
149
150 %files devel
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_bindir}/libvncserver-config
153 %attr(755,root,root) %{_libdir}/libvncclient.so
154 %attr(755,root,root) %{_libdir}/libvncserver.so
155 %{_libdir}/libvncclient.la
156 %{_libdir}/libvncserver.la
157 %{_includedir}/rfb
158 %{_pkgconfigdir}/libvncclient.pc
159 %{_pkgconfigdir}/libvncserver.pc
160
161 %files static
162 %defattr(644,root,root,755)
163 %{_libdir}/libvncclient.a
164 %{_libdir}/libvncserver.a
165
166 %files progs
167 %defattr(644,root,root,755)
168 %attr(755,root,root) %{_bindir}/linuxvnc
This page took 0.107936 seconds and 2 git commands to generate.