]> git.pld-linux.org Git - packages/gtk-vnc.git/blob - gtk-vnc.spec
- fixed vala BR, added pulseaudio-devel, libgpg-error-devel
[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.2
9 Release:        0.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:  591f5c0efff931336cba5b56e0c64e0d
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 %requires_eq    python-libs
101
102 %description -n python-gtk-vnc
103 A module allowing use of the GTK+ VNC widget (GTK+ 2.x version) from
104 Python.
105
106 %description -n python-gtk-vnc -l pl.UTF-8
107 Moduł pozwalający na używanie widgetu GTK+ VNC (w wersji dla GTK+ 2.x)
108 z poziomu Pythona.
109
110 %package -n gtk3-vnc
111 Summary:        A GTK+ widget for VNC clients (GTK+ 3.x version)
112 Summary(pl.UTF-8):      Widget GTK+ dla klientów VNC
113 Group:          X11/Libraries
114 Requires:       cairo >= 1.2.0
115 Requires:       gtk+3 >= 3.0.0
116 Requires:       libgvnc = %{version}-%{release}
117
118 %description -n gtk3-vnc
119 gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
120 allowing it to be completely asynchronous while remaining single
121 threaded.
122
123 This package contains version for GTK+ 3.x.
124
125 %description -n gtk3-vnc -l pl.UTF-8
126 gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z
127 użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne
128 pozostając jednowątkowymi.
129
130 Ten pakiet zawiera wersję dla GTK+ 3.x.
131
132 %package -n gtk3-vnc-devel
133 Summary:        Header files for gtk-vnc library (GTK+ 3.x version)
134 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x)
135 Group:          X11/Development/Libraries
136 Requires:       cairo-devel >= 1.2.0
137 Requires:       gtk+3-devel >= 3.0.0
138 Requires:       gtk3-vnc = %{version}-%{release}
139 Requires:       libgvnc-devel = %{version}-%{release}
140 Requires:       xorg-lib-libX11-devel
141
142 %description -n gtk3-vnc-devel
143 Header files for gtk-vnc library (GTK+ 3.x version).
144
145 %description -n gtk3-vnc-devel -l pl.UTF-8
146 Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x).
147
148 %package -n gtk3-vnc-static
149 Summary:        Static gtk-vnc library (GTK+ 3.x version)
150 Summary(pl.UTF-8):      Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x)
151 Group:          X11/Development/Libraries
152 Requires:       gtk3-vnc-devel = %{version}-%{release}
153 Requires:       libgvnc-static = %{version}-%{release}
154
155 %description -n gtk3-vnc-static
156 Static gtk-vnc library (GTK+ 3.x version).
157
158 %description -n gtk3-vnc-static -l pl.UTF-8
159 Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x).
160
161 %package -n vala-gtk3-vnc
162 Summary:        Vala API for gtk-vnc library (GTK+ 3.x version)
163 Summary(pl.UTF-8):      API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3)
164 Group:          Development/Languages
165 Requires:       gtk3-vnc-devel = %{version}-%{release}
166 Requires:       vala-libgvnc = %{version}-%{release}
167
168 %description -n vala-gtk3-vnc
169 Vala API for gtk-vnc library (GTK+ 3.x version).
170
171 %description -n vala-gtk3-vnc -l pl.UTF-8
172 API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3).
173
174 %package -n libgvnc
175 Summary:        A library for VNC clients
176 Summary(pl.UTF-8):      Biblioteka dla klientów VNC
177 Group:          X11/Libraries
178 Requires:       gdk-pixbuf2 >= 2.10.0
179 Requires:       glib2 >= 1:2.28.0
180 Requires:       gnutls >= 1.4.0
181
182 %description -n libgvnc
183 A library for VNC clients.
184
185 %description -n libgvnc -l pl.UTF-8
186 Biblioteka dla klientów VNC.
187
188 %package -n libgvnc-devel
189 Summary:        Header files for libgvnc library
190 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libgvnc
191 Group:          X11/Development/Libraries
192 Requires:       cyrus-sasl-devel
193 Requires:       gdk-pixbuf2-devel >= 2.10.0
194 Requires:       glib2-devel >= 1:2.28.0
195 Requires:       gnutls-devel >= 1.4.0
196 Requires:       libgcrypt-devel
197 Requires:       libgvnc = %{version}-%{release}
198 Requires:       zlib-devel
199
200 %description -n libgvnc-devel
201 Header files for libgvnc library.
202
203 %description -n libgvnc-devel -l pl.UTF-8
204 Pliki nagłówkowe biblioteki libgvnc.
205
206 %package -n libgvnc-static
207 Summary:        Static libgvnc library
208 Summary(pl.UTF-8):      Statyczna biblioteka libgvnc
209 Group:          X11/Development/Libraries
210 Requires:       libgvnc-devel = %{version}-%{release}
211
212 %description -n libgvnc-static
213 Static libgvnc library.
214
215 %description -n libgvnc-static -l pl.UTF-8
216 Statyczna biblioteka libgvnc.
217
218 %package -n vala-libgvnc
219 Summary:        Vala API for libgvnc library
220 Summary(pl.UTF-8):      API języka Vala dla biblioteki libgvnc
221 Group:          Development/Languages
222 Requires:       libgvnc-devel = %{version}-%{release}
223 Requires:       vala
224
225 %description -n vala-libgvnc
226 Vala API for libgvnc library.
227
228 %description -n vala-libgvnc -l pl.UTF-8
229 API języka Vala dla biblioteki libgvnc.
230
231 %package tools
232 Summary:        Command line tools for VNC
233 Summary(pl.UTF-8):      Narzędzia linii poleceń dla VNC
234 Group:          Applications/Networking
235 Requires:       libgvnc = %{version}-%{release}
236
237 %description tools
238 Command line utilities for interacting with VNC servers.
239
240 %description tools -l pl.UTF-8
241 Narzędzia linii poleceń do interakcji z serwerami VNC.
242
243 %prep
244 %setup -q
245 %patch0 -p1
246 %patch1 -p1
247
248 %build
249 %{__libtoolize}
250 %{__aclocal} -I m4
251 %{__autoconf}
252 %{__autoheader}
253 %{__automake}
254 # force enums regeneration
255 touch src/vncconnection.h src/vncdisplay.h
256 mkdir gtk{2,3}
257 cd gtk2
258 ../%configure \
259         --with-gtk=2.0 \
260         --with-libview \
261         --enable-static \
262         --disable-plugin \
263         --disable-silent-rules
264 %{__make}
265 cd ../gtk3
266 # libview not ported to gtk+3
267 ../%configure \
268         --with-gtk=3.0 \
269         --without-libview \
270         --enable-static \
271         --disable-plugin \
272         --disable-silent-rules \
273         %{!?with_vala:--disable-vala}
274 %{__make}
275
276 %install
277 rm -rf $RPM_BUILD_ROOT
278
279 %{__make} -C gtk2 -j1 install \
280         DESTDIR=$RPM_BUILD_ROOT
281 %{__make} -C gtk3 -j1 install \
282         DESTDIR=$RPM_BUILD_ROOT
283
284 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
285         $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
286
287 install examples/gvncviewer.{c,js} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
288 install examples/gvncviewer-{bindings,introspection}.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
289
290 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \
291         $RPM_BUILD_ROOT%{_libdir}/*.la
292
293 %find_lang %{name}
294
295 %clean
296 rm -rf $RPM_BUILD_ROOT
297
298 %post   -p /sbin/ldconfig
299 %postun -p /sbin/ldconfig
300
301 %post   -n gtk3-vnc -p /sbin/ldconfig
302 %postun -n gtk3-vnc -p /sbin/ldconfig
303
304 %post   -n libgvnc -p /sbin/ldconfig
305 %postun -n libgvnc -p /sbin/ldconfig
306
307 %files
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so.*.*.*
310 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-1.0.so.0
311 %{_libdir}/girepository-1.0/GtkVnc-1.0.typelib
312
313 %files devel
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so
316 %{_includedir}/%{name}-1.0
317 %{_datadir}/gir-1.0/GtkVnc-1.0.gir
318 %{_pkgconfigdir}/%{name}-1.0.pc
319 %{_examplesdir}/%{name}-%{version}
320
321 %files static
322 %defattr(644,root,root,755)
323 %{_libdir}/libgtk-vnc-1.0.a
324
325 %files -n python-gtk-vnc
326 %defattr(644,root,root,755)
327 %attr(755,root,root) %{py_sitedir}/gtkvnc.so
328 %{_examplesdir}/python-%{name}-%{version}
329
330 %files -n gtk3-vnc
331 %defattr(644,root,root,755)
332 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.*.*.*
333 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-2.0.so.0
334 %{_libdir}/girepository-1.0/GtkVnc-2.0.typelib
335
336 %files -n gtk3-vnc-devel
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so
339 %{_includedir}/gtk-vnc-2.0
340 %{_pkgconfigdir}/gtk-vnc-2.0.pc
341 %{_datadir}/gir-1.0/GtkVnc-2.0.gir
342
343 %files -n gtk3-vnc-static
344 %defattr(644,root,root,755)
345 %{_libdir}/libgtk-vnc-2.0.a
346
347 %if %{with vala}
348 %files -n vala-gtk3-vnc
349 %defattr(644,root,root,755)
350 %{_datadir}/vala/vapi/gtk-vnc-2.0.deps
351 %{_datadir}/vala/vapi/gtk-vnc-2.0.vapi
352 %endif
353
354 %files -n libgvnc -f %{name}.lang
355 %defattr(644,root,root,755)
356 %doc AUTHORS ChangeLog NEWS README
357 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so.*.*.*
358 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so.*.*.*
359 %attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0
360 %attr(755,root,root) %ghost %{_libdir}/libgvncpulse-1.0.so.0
361 %{_libdir}/girepository-1.0/GVnc-1.0.typelib
362 %{_libdir}/girepository-1.0/GVncPulse-1.0.typelib
363
364 %files -n libgvnc-devel
365 %defattr(644,root,root,755)
366 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so
367 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so
368 %{_datadir}/gir-1.0/GVnc-1.0.gir
369 %{_datadir}/gir-1.0/GVncPulse-1.0.gir
370 %{_includedir}/gvnc-1.0
371 %{_includedir}/gvncpulse-1.0
372 %{_pkgconfigdir}/gvnc-1.0.pc
373 %{_pkgconfigdir}/gvncpulse-1.0.pc
374
375 %files -n libgvnc-static
376 %defattr(644,root,root,755)
377 %{_libdir}/libgvnc-1.0.a
378 %{_libdir}/libgvncpulse-1.0.a
379
380 %if %{with vala}
381 %files -n vala-libgvnc
382 %defattr(644,root,root,755)
383 %{_datadir}/vala/vapi/gvnc-1.0.vapi
384 %{_datadir}/vala/vapi/gvncpulse-1.0.vapi
385 %endif
386
387 %files tools
388 %defattr(644,root,root,755)
389 %attr(755,root,root) %{_bindir}/gvnccapture
390 %{_mandir}/man1/gvnccapture.1*
This page took 0.068728 seconds and 3 git commands to generate.