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