]>
Commit | Line | Data |
---|---|---|
436191a8 JB |
1 | Summary: A GTK+ widget for VNC clients |
2 | Summary(pl.UTF-8): Widget GTK+ dla klientów VNC | |
e8f8ba6b | 3 | Name: gtk-vnc |
4b5d0843 | 4 | Version: 0.4.3 |
6ce378b2 | 5 | Release: 6 |
a87b1ed1 | 6 | License: LGPL v2 |
3994aa9c | 7 | Group: X11/Libraries |
7c955236 | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-vnc/0.4/%{name}-%{version}.tar.bz2 |
4b5d0843 | 9 | # Source0-md5: 38d3fbacb5d00e630f939e88858206f1 |
e8f8ba6b | 10 | Patch0: %{name}-codegen.patch |
3994aa9c | 11 | URL: http://live.gnome.org/gtk-vnc |
7c955236 MB |
12 | BuildRequires: autoconf >= 2.63 |
13 | BuildRequires: automake >= 1:1.10 | |
796a7010 | 14 | BuildRequires: cairo-devel >= 1.2.0 |
7cbe80e3 | 15 | BuildRequires: cyrus-sasl-devel |
796a7010 | 16 | BuildRequires: gdk-pixbuf2-devel >= 2.10.0 |
7cbe80e3 | 17 | BuildRequires: gettext-devel |
796a7010 | 18 | BuildRequires: glib2-devel >= 1:2.28.0 |
7c955236 | 19 | BuildRequires: gnome-common |
a87b1ed1 | 20 | BuildRequires: gnutls-devel >= 1.4.0 |
7c955236 MB |
21 | BuildRequires: gobject-introspection-devel >= 0.9.4 |
22 | BuildRequires: gtk+2-devel >= 2:2.18.0 | |
796a7010 | 23 | BuildRequires: gtk+3-devel >= 3.0.0 |
7c955236 | 24 | BuildRequires: intltool >= 0.40.0 |
796a7010 AF |
25 | BuildRequires: libtool >= 2.2.6 |
26 | BuildRequires: libview-devel >= 0.6.0 | |
7c955236 | 27 | BuildRequires: perl-Text-CSV |
ef607b54 | 28 | BuildRequires: perl-tools-pod |
a87b1ed1 JB |
29 | BuildRequires: pkgconfig |
30 | BuildRequires: python-devel >= 1:2.4 | |
31 | BuildRequires: python-pygtk-devel >= 2:2.0.0 | |
436191a8 | 32 | BuildRequires: rpm-pythonprov |
796a7010 | 33 | BuildRequires: xorg-lib-libX11-devel |
3994aa9c | 34 | BuildRequires: zlib-devel |
796a7010 | 35 | Requires: libgvnc = %{version}-%{release} |
e8f8ba6b PZ |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
436191a8 | 39 | gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines |
e8f8ba6b PZ |
40 | allowing it to be completely asynchronous while remaining single |
41 | threaded. | |
42 | ||
436191a8 JB |
43 | %description -l pl.UTF-8 |
44 | gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z | |
45 | użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne | |
46 | pozostając jednowątkowymi. | |
47 | ||
e8f8ba6b | 48 | %package devel |
436191a8 JB |
49 | Summary: Header files for gtk-vnc library |
50 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc | |
3994aa9c | 51 | Group: X11/Development/Libraries |
436191a8 | 52 | Requires: %{name} = %{version}-%{release} |
a87b1ed1 | 53 | Requires: gnutls-devel >= 1.4.0 |
7c955236 | 54 | Requires: gtk+2-devel >= 2:2.18.0 |
796a7010 | 55 | Requires: libgvnc-devel = %{version}-%{release} |
e8f8ba6b PZ |
56 | |
57 | %description devel | |
436191a8 | 58 | Header files for gtk-vnc library. |
e8f8ba6b | 59 | |
436191a8 JB |
60 | %description devel -l pl.UTF-8 |
61 | Pliki nagłówkowe biblioteki gtk-vnc. | |
e8f8ba6b | 62 | |
a87b1ed1 JB |
63 | %package static |
64 | Summary: Static gtk-vnc library | |
65 | Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc | |
3994aa9c | 66 | Group: X11/Development/Libraries |
a87b1ed1 | 67 | Requires: %{name}-devel = %{version}-%{release} |
796a7010 | 68 | Requires: libgvnc-static = %{version}-%{release} |
a87b1ed1 JB |
69 | |
70 | %description static | |
71 | Static gtk-vnc library. | |
72 | ||
73 | %description static -l pl.UTF-8 | |
74 | Statyczna biblioteka gtk-vnc. | |
75 | ||
796a7010 AF |
76 | %package -n gtk3-vnc |
77 | Summary: A GTK+ widget for VNC clients | |
78 | Summary(pl.UTF-8): Widget GTK+ dla klientów VNC | |
79 | Group: X11/Libraries | |
80 | Requires: libgvnc = %{version}-%{release} | |
81 | ||
82 | %description -n gtk3-vnc | |
83 | gtk-vnc is a VNC viewer widget for GTK+ 3.x. It is built using | |
84 | coroutines allowing it to be completely asynchronous while remaining | |
85 | single threaded. | |
86 | ||
87 | %description -n gtk3-vnc -l pl.UTF-8 | |
88 | gtk-vnc to widget przeglądarki VNC dla GTK+ 3.x. Jest skonstruowany z | |
89 | użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne | |
90 | pozostając jednowątkowymi. | |
91 | ||
92 | %package -n gtk3-vnc-devel | |
93 | Summary: Header files for gtk-vnc library - GTK+ 3.x version | |
94 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc - wersja dla GTK+ 3.x | |
95 | Group: X11/Development/Libraries | |
796a7010 AF |
96 | Requires: gnutls-devel >= 1.4.0 |
97 | Requires: gtk+3-devel >= 3.0.0 | |
91650e9c | 98 | Requires: gtk3-vnc = %{version}-%{release} |
796a7010 AF |
99 | Requires: libgvnc-devel = %{version}-%{release} |
100 | ||
101 | %description -n gtk3-vnc-devel | |
102 | Header files for gtk-vnc library - GTK+ 3.x version. | |
103 | ||
104 | %description -n gtk3-vnc-devel -l pl.UTF-8 | |
105 | Pliki nagłówkowe biblioteki gtk-vnc - wersja dla GTK+ 3.x. | |
106 | ||
107 | %package -n gtk3-vnc-static | |
108 | Summary: Static gtk-vnc library - GTK+ 3.x version | |
109 | Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc - wersja dla GTK+ 3.x | |
110 | Group: X11/Development/Libraries | |
111 | Requires: gtk3-vnc-devel = %{version}-%{release} | |
112 | Requires: libgvnc-static = %{version}-%{release} | |
113 | ||
114 | %description -n gtk3-vnc-static | |
115 | Static gtk-vnc library - GTK+ 3.x version. | |
116 | ||
117 | %description -n gtk3-vnc-static -l pl.UTF-8 | |
118 | Statyczna biblioteka gtk-vnc - wersja dla GTK+ 3.x. | |
119 | ||
120 | %package -n libgvnc | |
121 | Summary: A library for VNC clients | |
122 | Summary(pl.UTF-8): Biblioteka dla klientów VNC | |
123 | Group: X11/Libraries | |
124 | ||
125 | %description -n libgvnc | |
126 | A library for VNC clients. | |
127 | ||
128 | %description -n libgvnc -l pl.UTF-8 | |
129 | Biblioteka dla klientów VNC. | |
130 | ||
131 | %package -n libgvnc-devel | |
132 | Summary: Header files for libgvnc library | |
133 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgvnc | |
134 | Group: X11/Development/Libraries | |
135 | Requires: libgvnc = %{version}-%{release} | |
136 | ||
137 | %description -n libgvnc-devel | |
138 | Header files for libgvnc library. | |
139 | ||
140 | %description -n libgvnc-devel -l pl.UTF-8 | |
141 | Pliki nagłówkowe biblioteki libgvnc. | |
142 | ||
143 | %package -n libgvnc-static | |
144 | Summary: Static libgvnc library | |
145 | Summary(pl.UTF-8): Statyczna biblioteka libgvnc | |
146 | Group: X11/Development/Libraries | |
147 | Requires: libgvnc-devel = %{version}-%{release} | |
148 | ||
149 | %description -n libgvnc-static | |
150 | Static libgvnc library. | |
151 | ||
152 | %description -n libgvnc-static -l pl.UTF-8 | |
153 | Statyczna biblioteka libgvnc. | |
154 | ||
e8f8ba6b PZ |
155 | %package -n python-gtk-vnc |
156 | Summary: Python bindings for the gtk-vnc library | |
436191a8 JB |
157 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki gtk-vnc |
158 | Group: Libraries/Python | |
159 | Requires: %{name} = %{version}-%{release} | |
160 | %requires_eq python-libs | |
e8f8ba6b PZ |
161 | |
162 | %description -n python-gtk-vnc | |
436191a8 | 163 | A module allowing use of the GTK+ VNC widget from Python. |
e8f8ba6b | 164 | |
436191a8 JB |
165 | %description -n python-gtk-vnc -l pl.UTF-8 |
166 | Moduł pozwalający na używanie widgetu GTK+ VNC z poziomu Pythona. | |
e8f8ba6b | 167 | |
7c955236 MB |
168 | %package tools |
169 | Summary: Command line tools for VNC | |
170 | Summary(pl.UTF-8): Narzędzia linii poleceń dla VNC | |
171 | Group: Applications/Networking | |
d0682d5e | 172 | Requires: libgvnc = %{version}-%{release} |
7c955236 MB |
173 | |
174 | %description tools | |
175 | Command line utilities for interacting with VNC servers. | |
176 | ||
177 | %description tools -l pl.UTF-8 | |
178 | Narzędzia linii poleceń do interakcji z serwerami VNC. | |
179 | ||
e8f8ba6b PZ |
180 | %prep |
181 | %setup -q | |
182 | %patch0 -p1 | |
183 | ||
184 | %build | |
185 | %{__libtoolize} | |
7c955236 | 186 | %{__aclocal} -I m4 |
e8f8ba6b | 187 | %{__autoconf} |
3994aa9c | 188 | %{__autoheader} |
e8f8ba6b | 189 | %{__automake} |
796a7010 AF |
190 | # force enums regeneration |
191 | touch src/vncconnection.h src/vncdisplay.h | |
192 | mkdir gtk{2,3} | |
193 | cd gtk2 | |
194 | ../%configure \ | |
195 | --with-gtk=2.0 \ | |
196 | --with-libview \ | |
7c955236 | 197 | --enable-static \ |
796a7010 | 198 | --disable-plugin \ |
7c955236 | 199 | --disable-silent-rules |
e8f8ba6b | 200 | %{__make} |
796a7010 AF |
201 | cd ../gtk3 |
202 | # libview not ported to gtk+3 | |
203 | ../%configure \ | |
204 | --with-gtk=3.0 \ | |
205 | --without-libview \ | |
206 | --enable-static \ | |
207 | --disable-plugin \ | |
208 | --disable-silent-rules | |
209 | %{__make} | |
210 | cd .. | |
e8f8ba6b PZ |
211 | |
212 | %install | |
213 | rm -rf $RPM_BUILD_ROOT | |
436191a8 | 214 | |
796a7010 AF |
215 | cd gtk2 |
216 | %{__make} -j1 install \ | |
217 | DESTDIR=$RPM_BUILD_ROOT | |
218 | cd ../gtk3 | |
7c955236 | 219 | %{__make} -j1 install \ |
e8f8ba6b | 220 | DESTDIR=$RPM_BUILD_ROOT |
796a7010 | 221 | cd .. |
e8f8ba6b | 222 | |
a87b1ed1 JB |
223 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \ |
224 | $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} | |
225 | ||
7c955236 | 226 | install examples/gvncviewer.{c,js} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
a87b1ed1 JB |
227 | install examples/gvncviewer.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} |
228 | ||
796a7010 AF |
229 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \ |
230 | $RPM_BUILD_ROOT%{_libdir}/*.la | |
e8f8ba6b | 231 | |
7cbe80e3 MB |
232 | %find_lang %{name} |
233 | ||
e8f8ba6b | 234 | %clean |
a65f3e04 | 235 | rm -rf $RPM_BUILD_ROOT |
e8f8ba6b | 236 | |
a87b1ed1 JB |
237 | %post -p /sbin/ldconfig |
238 | %postun -p /sbin/ldconfig | |
e8f8ba6b | 239 | |
a849c9ce MB |
240 | %post -n gtk3-vnc -p /sbin/ldconfig |
241 | %postun -n gtk3-vnc -p /sbin/ldconfig | |
242 | ||
243 | %post -n libgvnc -p /sbin/ldconfig | |
244 | %postun -n libgvnc -p /sbin/ldconfig | |
245 | ||
796a7010 | 246 | %files |
e8f8ba6b | 247 | %defattr(644,root,root,755) |
a87b1ed1 JB |
248 | %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so.*.*.* |
249 | %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-1.0.so.0 | |
7c955236 | 250 | %{_libdir}/girepository-1.0/GtkVnc-1.0.typelib |
e8f8ba6b PZ |
251 | |
252 | %files devel | |
253 | %defattr(644,root,root,755) | |
a87b1ed1 | 254 | %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so |
a87b1ed1 | 255 | %{_includedir}/%{name}-1.0 |
7c955236 | 256 | %{_datadir}/gir-1.0/GtkVnc-1.0.gir |
e8f8ba6b | 257 | %{_pkgconfigdir}/%{name}-1.0.pc |
a87b1ed1 JB |
258 | %{_examplesdir}/%{name}-%{version} |
259 | ||
260 | %files static | |
261 | %defattr(644,root,root,755) | |
262 | %{_libdir}/libgtk-vnc-1.0.a | |
796a7010 AF |
263 | |
264 | %files -n gtk3-vnc | |
265 | %defattr(644,root,root,755) | |
a849c9ce MB |
266 | %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.*.*.* |
267 | %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-2.0.so.0 | |
796a7010 AF |
268 | %{_libdir}/girepository-1.0/GtkVnc-2.0.typelib |
269 | ||
270 | %files -n gtk3-vnc-devel | |
271 | %defattr(644,root,root,755) | |
272 | %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so | |
273 | %{_includedir}/gtk-vnc-2.0 | |
274 | %{_pkgconfigdir}/gtk-vnc-2.0.pc | |
275 | %{_datadir}/gir-1.0/GtkVnc-2.0.gir | |
276 | ||
277 | %files -n gtk3-vnc-static | |
278 | %defattr(644,root,root,755) | |
279 | %{_libdir}/libgtk-vnc-2.0.a | |
280 | ||
281 | %files -n libgvnc -f %{name}.lang | |
282 | %defattr(644,root,root,755) | |
283 | %doc AUTHORS ChangeLog NEWS README | |
284 | %attr(755,root,root) %{_libdir}/libgvnc-1.0.so.*.*.* | |
285 | %attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0 | |
286 | %{_libdir}/girepository-1.0/GVnc-1.0.typelib | |
287 | ||
288 | %files -n libgvnc-devel | |
289 | %defattr(644,root,root,755) | |
290 | %attr(755,root,root) %{_libdir}/libgvnc-1.0.so | |
291 | %{_datadir}/gir-1.0/GVnc-1.0.gir | |
292 | %{_includedir}/gvnc-1.0 | |
293 | %{_pkgconfigdir}/gvnc-1.0.pc | |
294 | ||
295 | %files -n libgvnc-static | |
296 | %defattr(644,root,root,755) | |
7c955236 | 297 | %{_libdir}/libgvnc-1.0.a |
e8f8ba6b PZ |
298 | |
299 | %files -n python-gtk-vnc | |
300 | %defattr(644,root,root,755) | |
a87b1ed1 JB |
301 | %attr(755,root,root) %{py_sitedir}/gtkvnc.so |
302 | %{_examplesdir}/python-%{name}-%{version} | |
7c955236 MB |
303 | |
304 | %files tools | |
305 | %defattr(644,root,root,755) | |
306 | %attr(755,root,root) %{_bindir}/gvnccapture | |
307 | %{_mandir}/man1/gvnccapture.1* |