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