]> git.pld-linux.org Git - packages/gtk-vnc.git/blob - gtk-vnc.spec
- release 2 (by relup.sh)
[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.4
9 Release:        2
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:  bc7b79c4b8124294dacf91b8128a158c
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 >= 1.4.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
166 %description -n vala-gtk3-vnc
167 Vala API for gtk-vnc library (GTK+ 3.x version).
168
169 %description -n vala-gtk3-vnc -l pl.UTF-8
170 API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3).
171
172 %package -n libgvnc
173 Summary:        A library for VNC clients
174 Summary(pl.UTF-8):      Biblioteka dla klientów VNC
175 Group:          X11/Libraries
176 Requires:       gdk-pixbuf2 >= 2.10.0
177 Requires:       glib2 >= 1:2.28.0
178 Requires:       gnutls >= 1.4.0
179 Requires:       libgcrypt >= 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 >= 1.4.0
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
246 %build
247 %{__libtoolize}
248 %{__aclocal} -I m4
249 %{__autoconf}
250 %{__autoheader}
251 %{__automake}
252 # force enums regeneration
253 touch src/vncconnection.h src/vncdisplay.h
254 mkdir gtk{2,3}
255 cd gtk2
256 ../%configure \
257         --with-gtk=2.0 \
258         --with-libview \
259         --enable-static \
260         --disable-plugin \
261         --disable-silent-rules
262 %{__make}
263 cd ../gtk3
264 # libview not ported to gtk+3
265 ../%configure \
266         --with-gtk=3.0 \
267         --without-libview \
268         --enable-static \
269         --disable-plugin \
270         --disable-silent-rules \
271         %{!?with_vala:--disable-vala}
272 %{__make}
273
274 %install
275 rm -rf $RPM_BUILD_ROOT
276
277 %{__make} -C gtk2 -j1 install \
278         DESTDIR=$RPM_BUILD_ROOT
279 %{__make} -C gtk3 -j1 install \
280         DESTDIR=$RPM_BUILD_ROOT
281
282 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
283         $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
284
285 install examples/gvncviewer.{c,js} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
286 install examples/gvncviewer-{bindings,introspection}.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
287
288 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \
289         $RPM_BUILD_ROOT%{_libdir}/*.la
290
291 %find_lang %{name}
292
293 %clean
294 rm -rf $RPM_BUILD_ROOT
295
296 %post   -p /sbin/ldconfig
297 %postun -p /sbin/ldconfig
298
299 %post   -n gtk3-vnc -p /sbin/ldconfig
300 %postun -n gtk3-vnc -p /sbin/ldconfig
301
302 %post   -n libgvnc -p /sbin/ldconfig
303 %postun -n libgvnc -p /sbin/ldconfig
304
305 %files
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so.*.*.*
308 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-1.0.so.0
309 %{_libdir}/girepository-1.0/GtkVnc-1.0.typelib
310
311 %files devel
312 %defattr(644,root,root,755)
313 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so
314 %{_includedir}/%{name}-1.0
315 %{_datadir}/gir-1.0/GtkVnc-1.0.gir
316 %{_pkgconfigdir}/%{name}-1.0.pc
317 %{_examplesdir}/%{name}-%{version}
318
319 %files static
320 %defattr(644,root,root,755)
321 %{_libdir}/libgtk-vnc-1.0.a
322
323 %files -n python-gtk-vnc
324 %defattr(644,root,root,755)
325 %attr(755,root,root) %{py_sitedir}/gtkvnc.so
326 %{_examplesdir}/python-%{name}-%{version}
327
328 %files -n gtk3-vnc
329 %defattr(644,root,root,755)
330 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.*.*.*
331 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-2.0.so.0
332 %{_libdir}/girepository-1.0/GtkVnc-2.0.typelib
333
334 %files -n gtk3-vnc-devel
335 %defattr(644,root,root,755)
336 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so
337 %{_includedir}/gtk-vnc-2.0
338 %{_pkgconfigdir}/gtk-vnc-2.0.pc
339 %{_datadir}/gir-1.0/GtkVnc-2.0.gir
340
341 %files -n gtk3-vnc-static
342 %defattr(644,root,root,755)
343 %{_libdir}/libgtk-vnc-2.0.a
344
345 %if %{with vala}
346 %files -n vala-gtk3-vnc
347 %defattr(644,root,root,755)
348 %{_datadir}/vala/vapi/gtk-vnc-2.0.deps
349 %{_datadir}/vala/vapi/gtk-vnc-2.0.vapi
350 %endif
351
352 %files -n libgvnc -f %{name}.lang
353 %defattr(644,root,root,755)
354 %doc AUTHORS ChangeLog NEWS README
355 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so.*.*.*
356 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so.*.*.*
357 %attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0
358 %attr(755,root,root) %ghost %{_libdir}/libgvncpulse-1.0.so.0
359 %{_libdir}/girepository-1.0/GVnc-1.0.typelib
360 %{_libdir}/girepository-1.0/GVncPulse-1.0.typelib
361
362 %files -n libgvnc-devel
363 %defattr(644,root,root,755)
364 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so
365 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so
366 %{_datadir}/gir-1.0/GVnc-1.0.gir
367 %{_datadir}/gir-1.0/GVncPulse-1.0.gir
368 %{_includedir}/gvnc-1.0
369 %{_includedir}/gvncpulse-1.0
370 %{_pkgconfigdir}/gvnc-1.0.pc
371 %{_pkgconfigdir}/gvncpulse-1.0.pc
372
373 %files -n libgvnc-static
374 %defattr(644,root,root,755)
375 %{_libdir}/libgvnc-1.0.a
376 %{_libdir}/libgvncpulse-1.0.a
377
378 %if %{with vala}
379 %files -n vala-libgvnc
380 %defattr(644,root,root,755)
381 %{_datadir}/vala/vapi/gvnc-1.0.vapi
382 %{_datadir}/vala/vapi/gvncpulse-1.0.vapi
383 %endif
384
385 %files tools
386 %defattr(644,root,root,755)
387 %attr(755,root,root) %{_bindir}/gvnccapture
388 %{_mandir}/man1/gvnccapture.1*
This page took 0.206085 seconds and 3 git commands to generate.