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