]> git.pld-linux.org Git - packages/gtk-vnc.git/blob - gtk-vnc.spec
- updated to 0.5.3
[packages/gtk-vnc.git] / gtk-vnc.spec
1 #
2 # Conditional build:
3 %bcond_without  vala    # Vala API
4 #
5 Summary:        A GTK+ widget for VNC clients (GTK+ 2.x version)
6 Summary(pl.UTF-8):      Widget GTK+ dla klientów VNC (wersja dla GTK+ 2.x)
7 Name:           gtk-vnc
8 Version:        0.5.3
9 Release:        1
10 License:        LGPL v2+
11 Group:          X11/Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtk-vnc/0.5/%{name}-%{version}.tar.xz
13 # Source0-md5:  1dccd918a4d633020e4afaf6c9352cde
14 Patch0:         %{name}-codegen.patch
15 Patch1:         %{name}-libtool.patch
16 URL:            http://live.gnome.org/gtk-vnc
17 BuildRequires:  autoconf >= 2.63
18 BuildRequires:  automake >= 1:1.10
19 BuildRequires:  cairo-devel >= 1.2.0
20 BuildRequires:  cyrus-sasl-devel
21 BuildRequires:  gdk-pixbuf2-devel >= 2.10.0
22 BuildRequires:  gettext-devel
23 BuildRequires:  glib2-devel >= 1:2.28.0
24 BuildRequires:  gnome-common
25 BuildRequires:  gnutls-devel >= 1.4.0
26 BuildRequires:  gobject-introspection-devel >= 0.9.4
27 BuildRequires:  gtk+2-devel >= 2:2.18.0
28 BuildRequires:  gtk+3-devel >= 3.0.0
29 BuildRequires:  intltool >= 0.40.0
30 BuildRequires:  libgcrypt-devel
31 BuildRequires:  libgpg-error-devel
32 BuildRequires:  libtool >= 2:2.2.6
33 BuildRequires:  libview-devel >= 0.6.0
34 BuildRequires:  perl-Text-CSV
35 BuildRequires:  perl-tools-pod
36 BuildRequires:  pkgconfig
37 BuildRequires:  pulseaudio-devel
38 BuildRequires:  python-devel >= 1:2.4
39 BuildRequires:  python-pygtk-devel >= 2:2.0.0
40 BuildRequires:  rpm-pythonprov
41 BuildRequires:  tar >= 1:1.22
42 %{?with_vala:BuildRequires:     vala >= 0.14.0}
43 BuildRequires:  xorg-lib-libX11-devel
44 BuildRequires:  xz
45 BuildRequires:  zlib-devel
46 Requires:       cairo >= 1.2.0
47 Requires:       gtk+2 >= 2:2.18.0
48 Requires:       libgvnc = %{version}-%{release}
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
53 allowing it to be completely asynchronous while remaining single
54 threaded.
55
56 This package contains version for GTK+ 2.x.
57
58 %description -l pl.UTF-8
59 gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z
60 użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne
61 pozostając jednowątkowymi.
62
63 Ten pakiet zawiera wersję dla GTK+ 2.x.
64
65 %package devel
66 Summary:        Header files for gtk-vnc library (GTK+ 2.x version)
67 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 2.x)
68 Group:          X11/Development/Libraries
69 Requires:       %{name} = %{version}-%{release}
70 Requires:       cairo-devel >= 1.2.0
71 Requires:       gnutls-devel >= 1.4.0
72 Requires:       gtk+2-devel >= 2:2.18.0
73 Requires:       libgvnc-devel = %{version}-%{release}
74 Requires:       xorg-lib-libX11-devel
75
76 %description devel
77 Header files for gtk-vnc library (GTK+ 2.x version).
78
79 %description devel -l pl.UTF-8
80 Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 2.x).
81
82 %package static
83 Summary:        Static gtk-vnc library (GTK+ 2.x version)
84 Summary(pl.UTF-8):      Statyczna biblioteka gtk-vnc (wersja dla GTK+ 2.x)
85 Group:          X11/Development/Libraries
86 Requires:       %{name}-devel = %{version}-%{release}
87 Requires:       libgvnc-static = %{version}-%{release}
88
89 %description static
90 Static gtk-vnc library (GTK+ 2.x version).
91
92 %description static -l pl.UTF-8
93 Statyczna biblioteka gtk-vnc (wersja dla GTK+ 2.x).
94
95 %package -n python-gtk-vnc
96 Summary:        Python bindings for the gtk-vnc library (GTK+ 2.x version)
97 Summary(pl.UTF-8):      Wiązania Pythona do biblioteki gtk-vnc (wersja dla GTK+ 2.x)
98 Group:          Libraries/Python
99 Requires:       %{name} = %{version}-%{release}
100
101 %description -n python-gtk-vnc
102 A module allowing use of the GTK+ VNC widget (GTK+ 2.x version) from
103 Python.
104
105 %description -n python-gtk-vnc -l pl.UTF-8
106 Moduł pozwalający na używanie widgetu GTK+ VNC (w wersji dla GTK+ 2.x)
107 z poziomu Pythona.
108
109 %package -n gtk3-vnc
110 Summary:        A GTK+ widget for VNC clients (GTK+ 3.x version)
111 Summary(pl.UTF-8):      Widget GTK+ dla klientów VNC
112 Group:          X11/Libraries
113 Requires:       cairo >= 1.2.0
114 Requires:       gtk+3 >= 3.0.0
115 Requires:       libgvnc = %{version}-%{release}
116
117 %description -n gtk3-vnc
118 gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
119 allowing it to be completely asynchronous while remaining single
120 threaded.
121
122 This package contains version for GTK+ 3.x.
123
124 %description -n gtk3-vnc -l pl.UTF-8
125 gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z
126 użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne
127 pozostając jednowątkowymi.
128
129 Ten pakiet zawiera wersję dla GTK+ 3.x.
130
131 %package -n gtk3-vnc-devel
132 Summary:        Header files for gtk-vnc library (GTK+ 3.x version)
133 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x)
134 Group:          X11/Development/Libraries
135 Requires:       cairo-devel >= 1.2.0
136 Requires:       gtk+3-devel >= 3.0.0
137 Requires:       gtk3-vnc = %{version}-%{release}
138 Requires:       libgvnc-devel = %{version}-%{release}
139 Requires:       xorg-lib-libX11-devel
140
141 %description -n gtk3-vnc-devel
142 Header files for gtk-vnc library (GTK+ 3.x version).
143
144 %description -n gtk3-vnc-devel -l pl.UTF-8
145 Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x).
146
147 %package -n gtk3-vnc-static
148 Summary:        Static gtk-vnc library (GTK+ 3.x version)
149 Summary(pl.UTF-8):      Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x)
150 Group:          X11/Development/Libraries
151 Requires:       gtk3-vnc-devel = %{version}-%{release}
152 Requires:       libgvnc-static = %{version}-%{release}
153
154 %description -n gtk3-vnc-static
155 Static gtk-vnc library (GTK+ 3.x version).
156
157 %description -n gtk3-vnc-static -l pl.UTF-8
158 Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x).
159
160 %package -n vala-gtk3-vnc
161 Summary:        Vala API for gtk-vnc library (GTK+ 3.x version)
162 Summary(pl.UTF-8):      API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3)
163 Group:          Development/Languages
164 Requires:       gtk3-vnc-devel = %{version}-%{release}
165 Requires:       vala-libgvnc = %{version}-%{release}
166
167 %description -n vala-gtk3-vnc
168 Vala API for gtk-vnc library (GTK+ 3.x version).
169
170 %description -n vala-gtk3-vnc -l pl.UTF-8
171 API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3).
172
173 %package -n libgvnc
174 Summary:        A library for VNC clients
175 Summary(pl.UTF-8):      Biblioteka dla klientów VNC
176 Group:          X11/Libraries
177 Requires:       gdk-pixbuf2 >= 2.10.0
178 Requires:       glib2 >= 1:2.28.0
179 Requires:       gnutls >= 1.4.0
180
181 %description -n libgvnc
182 A library for VNC clients.
183
184 %description -n libgvnc -l pl.UTF-8
185 Biblioteka dla klientów VNC.
186
187 %package -n libgvnc-devel
188 Summary:        Header files for libgvnc library
189 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libgvnc
190 Group:          X11/Development/Libraries
191 Requires:       cyrus-sasl-devel
192 Requires:       gdk-pixbuf2-devel >= 2.10.0
193 Requires:       glib2-devel >= 1:2.28.0
194 Requires:       gnutls-devel >= 1.4.0
195 Requires:       libgcrypt-devel
196 Requires:       libgvnc = %{version}-%{release}
197 Requires:       zlib-devel
198
199 %description -n libgvnc-devel
200 Header files for libgvnc library.
201
202 %description -n libgvnc-devel -l pl.UTF-8
203 Pliki nagłówkowe biblioteki libgvnc.
204
205 %package -n libgvnc-static
206 Summary:        Static libgvnc library
207 Summary(pl.UTF-8):      Statyczna biblioteka libgvnc
208 Group:          X11/Development/Libraries
209 Requires:       libgvnc-devel = %{version}-%{release}
210
211 %description -n libgvnc-static
212 Static libgvnc library.
213
214 %description -n libgvnc-static -l pl.UTF-8
215 Statyczna biblioteka libgvnc.
216
217 %package -n vala-libgvnc
218 Summary:        Vala API for libgvnc library
219 Summary(pl.UTF-8):      API języka Vala dla biblioteki libgvnc
220 Group:          Development/Languages
221 Requires:       libgvnc-devel = %{version}-%{release}
222 Requires:       vala
223
224 %description -n vala-libgvnc
225 Vala API for libgvnc library.
226
227 %description -n vala-libgvnc -l pl.UTF-8
228 API języka Vala dla biblioteki libgvnc.
229
230 %package tools
231 Summary:        Command line tools for VNC
232 Summary(pl.UTF-8):      Narzędzia linii poleceń dla VNC
233 Group:          Applications/Networking
234 Requires:       libgvnc = %{version}-%{release}
235
236 %description tools
237 Command line utilities for interacting with VNC servers.
238
239 %description tools -l pl.UTF-8
240 Narzędzia linii poleceń do interakcji z serwerami VNC.
241
242 %prep
243 %setup -q
244 %patch0 -p1
245 %patch1 -p1
246
247 %build
248 %{__libtoolize}
249 %{__aclocal} -I m4
250 %{__autoconf}
251 %{__autoheader}
252 %{__automake}
253 # force enums regeneration
254 touch src/vncconnection.h src/vncdisplay.h
255 mkdir gtk{2,3}
256 cd gtk2
257 ../%configure \
258         --with-gtk=2.0 \
259         --with-libview \
260         --enable-static \
261         --disable-plugin \
262         --disable-silent-rules
263 %{__make}
264 cd ../gtk3
265 # libview not ported to gtk+3
266 ../%configure \
267         --with-gtk=3.0 \
268         --without-libview \
269         --enable-static \
270         --disable-plugin \
271         --disable-silent-rules \
272         %{!?with_vala:--disable-vala}
273 %{__make}
274
275 %install
276 rm -rf $RPM_BUILD_ROOT
277
278 %{__make} -C gtk2 -j1 install \
279         DESTDIR=$RPM_BUILD_ROOT
280 %{__make} -C gtk3 -j1 install \
281         DESTDIR=$RPM_BUILD_ROOT
282
283 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
284         $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
285
286 install examples/gvncviewer.{c,js} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
287 install examples/gvncviewer-{bindings,introspection}.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
288
289 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \
290         $RPM_BUILD_ROOT%{_libdir}/*.la
291
292 %find_lang %{name}
293
294 %clean
295 rm -rf $RPM_BUILD_ROOT
296
297 %post   -p /sbin/ldconfig
298 %postun -p /sbin/ldconfig
299
300 %post   -n gtk3-vnc -p /sbin/ldconfig
301 %postun -n gtk3-vnc -p /sbin/ldconfig
302
303 %post   -n libgvnc -p /sbin/ldconfig
304 %postun -n libgvnc -p /sbin/ldconfig
305
306 %files
307 %defattr(644,root,root,755)
308 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so.*.*.*
309 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-1.0.so.0
310 %{_libdir}/girepository-1.0/GtkVnc-1.0.typelib
311
312 %files devel
313 %defattr(644,root,root,755)
314 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so
315 %{_includedir}/%{name}-1.0
316 %{_datadir}/gir-1.0/GtkVnc-1.0.gir
317 %{_pkgconfigdir}/%{name}-1.0.pc
318 %{_examplesdir}/%{name}-%{version}
319
320 %files static
321 %defattr(644,root,root,755)
322 %{_libdir}/libgtk-vnc-1.0.a
323
324 %files -n python-gtk-vnc
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{py_sitedir}/gtkvnc.so
327 %{_examplesdir}/python-%{name}-%{version}
328
329 %files -n gtk3-vnc
330 %defattr(644,root,root,755)
331 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.*.*.*
332 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-2.0.so.0
333 %{_libdir}/girepository-1.0/GtkVnc-2.0.typelib
334
335 %files -n gtk3-vnc-devel
336 %defattr(644,root,root,755)
337 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so
338 %{_includedir}/gtk-vnc-2.0
339 %{_pkgconfigdir}/gtk-vnc-2.0.pc
340 %{_datadir}/gir-1.0/GtkVnc-2.0.gir
341
342 %files -n gtk3-vnc-static
343 %defattr(644,root,root,755)
344 %{_libdir}/libgtk-vnc-2.0.a
345
346 %if %{with vala}
347 %files -n vala-gtk3-vnc
348 %defattr(644,root,root,755)
349 %{_datadir}/vala/vapi/gtk-vnc-2.0.deps
350 %{_datadir}/vala/vapi/gtk-vnc-2.0.vapi
351 %endif
352
353 %files -n libgvnc -f %{name}.lang
354 %defattr(644,root,root,755)
355 %doc AUTHORS ChangeLog NEWS README
356 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so.*.*.*
357 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so.*.*.*
358 %attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0
359 %attr(755,root,root) %ghost %{_libdir}/libgvncpulse-1.0.so.0
360 %{_libdir}/girepository-1.0/GVnc-1.0.typelib
361 %{_libdir}/girepository-1.0/GVncPulse-1.0.typelib
362
363 %files -n libgvnc-devel
364 %defattr(644,root,root,755)
365 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so
366 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so
367 %{_datadir}/gir-1.0/GVnc-1.0.gir
368 %{_datadir}/gir-1.0/GVncPulse-1.0.gir
369 %{_includedir}/gvnc-1.0
370 %{_includedir}/gvncpulse-1.0
371 %{_pkgconfigdir}/gvnc-1.0.pc
372 %{_pkgconfigdir}/gvncpulse-1.0.pc
373
374 %files -n libgvnc-static
375 %defattr(644,root,root,755)
376 %{_libdir}/libgvnc-1.0.a
377 %{_libdir}/libgvncpulse-1.0.a
378
379 %if %{with vala}
380 %files -n vala-libgvnc
381 %defattr(644,root,root,755)
382 %{_datadir}/vala/vapi/gvnc-1.0.vapi
383 %{_datadir}/vala/vapi/gvncpulse-1.0.vapi
384 %endif
385
386 %files tools
387 %defattr(644,root,root,755)
388 %attr(755,root,root) %{_bindir}/gvnccapture
389 %{_mandir}/man1/gvnccapture.1*
This page took 0.089824 seconds and 4 git commands to generate.