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