]>
Commit | Line | Data |
---|---|---|
de94b064 JB |
1 | # |
2 | # Conditional build: | |
d9c6ef4b JB |
3 | %bcond_without static_libs # static libraries |
4 | %bcond_without vala # Vala API | |
2dc5fe44 | 5 | |
869e3c46 JB |
6 | Summary: A GTK+ widget for VNC clients |
7 | Summary(pl.UTF-8): Widget GTK+ dla klientów VNC | |
e8f8ba6b | 8 | Name: gtk-vnc |
7290eaee | 9 | Version: 1.3.1 |
4b9f4da3 | 10 | Release: 1 |
de94b064 | 11 | License: LGPL v2+ |
3994aa9c | 12 | Group: X11/Libraries |
9c2f5565 | 13 | Source0: https://download.gnome.org/sources/gtk-vnc/1.3/%{name}-%{version}.tar.xz |
7290eaee | 14 | # Source0-md5: 27f0dc7f33cbfdaa6c9eb7cf169f4866 |
d9c6ef4b | 15 | URL: https://wiki.gnome.org/Projects/gtk-vnc |
cb0d9b15 JB |
16 | BuildRequires: cairo-devel >= 1.15.0 |
17 | BuildRequires: cyrus-sasl-devel >= 2.1.27 | |
18 | BuildRequires: gdk-pixbuf2-devel >= 2.36.0 | |
943bb532 | 19 | BuildRequires: gettext-tools |
cb0d9b15 JB |
20 | BuildRequires: glib2-devel >= 1:2.56.0 |
21 | BuildRequires: gnutls-devel >= 3.6.0 | |
22 | BuildRequires: gobject-introspection-devel >= 1.56.0 | |
23 | BuildRequires: gtk+3-devel >= 3.22.0 | |
24 | BuildRequires: libgcrypt-devel >= 1.8.0 | |
25 | BuildRequires: meson >= 0.49.0 | |
869e3c46 | 26 | BuildRequires: ninja >= 1.5 |
ef607b54 | 27 | BuildRequires: perl-tools-pod |
a87b1ed1 | 28 | BuildRequires: pkgconfig |
cb0d9b15 | 29 | BuildRequires: pulseaudio-devel >= 11.0 |
d9c6ef4b | 30 | BuildRequires: python3 >= 1:3 |
cb0d9b15 | 31 | BuildRequires: rpm-build >= 4.6 |
869e3c46 | 32 | BuildRequires: rpmbuild(macros) >= 1.736 |
3ef49d53 | 33 | BuildRequires: tar >= 1:1.22 |
81c2a01a | 34 | %{?with_vala:BuildRequires: vala >= 0.14.0} |
869e3c46 | 35 | BuildRequires: xorg-lib-libX11-devel >= 1.6.5 |
3ef49d53 | 36 | BuildRequires: xz |
cb0d9b15 | 37 | BuildRequires: zlib-devel >= 1.2.11 |
e8f8ba6b PZ |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
436191a8 | 41 | gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines |
e8f8ba6b PZ |
42 | allowing it to be completely asynchronous while remaining single |
43 | threaded. | |
44 | ||
436191a8 JB |
45 | %description -l pl.UTF-8 |
46 | gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z | |
47 | użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne | |
48 | pozostając jednowątkowymi. | |
49 | ||
796a7010 | 50 | %package -n gtk3-vnc |
de94b064 | 51 | Summary: A GTK+ widget for VNC clients (GTK+ 3.x version) |
869e3c46 | 52 | Summary(pl.UTF-8): Widget GTK+ dla klientów VNC (wersja GTK+ 3.x) |
796a7010 | 53 | Group: X11/Libraries |
cb0d9b15 JB |
54 | Requires: cairo >= 1.15.0 |
55 | Requires: gtk+3 >= 3.22.0 | |
3ef49d53 | 56 | Requires: libgvnc = %{version}-%{release} |
869e3c46 | 57 | Requires: xorg-lib-libX11 >= 1.6.5 |
796a7010 AF |
58 | |
59 | %description -n gtk3-vnc | |
de94b064 JB |
60 | gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines |
61 | allowing it to be completely asynchronous while remaining single | |
62 | threaded. | |
63 | ||
64 | This package contains version for GTK+ 3.x. | |
796a7010 AF |
65 | |
66 | %description -n gtk3-vnc -l pl.UTF-8 | |
de94b064 | 67 | gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z |
796a7010 AF |
68 | użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne |
69 | pozostając jednowątkowymi. | |
70 | ||
de94b064 JB |
71 | Ten pakiet zawiera wersję dla GTK+ 3.x. |
72 | ||
796a7010 | 73 | %package -n gtk3-vnc-devel |
de94b064 JB |
74 | Summary: Header files for gtk-vnc library (GTK+ 3.x version) |
75 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x) | |
796a7010 | 76 | Group: X11/Development/Libraries |
cb0d9b15 JB |
77 | Requires: cairo-devel >= 1.15.0 |
78 | Requires: gtk+3-devel >= 3.22.0 | |
91650e9c | 79 | Requires: gtk3-vnc = %{version}-%{release} |
cb0d9b15 | 80 | Requires: libgcrypt-devel >= 1.8.0 |
796a7010 | 81 | Requires: libgvnc-devel = %{version}-%{release} |
869e3c46 | 82 | Requires: xorg-lib-libX11-devel >= 1.6.5 |
796a7010 AF |
83 | |
84 | %description -n gtk3-vnc-devel | |
de94b064 | 85 | Header files for gtk-vnc library (GTK+ 3.x version). |
796a7010 AF |
86 | |
87 | %description -n gtk3-vnc-devel -l pl.UTF-8 | |
de94b064 | 88 | Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x). |
796a7010 AF |
89 | |
90 | %package -n gtk3-vnc-static | |
de94b064 JB |
91 | Summary: Static gtk-vnc library (GTK+ 3.x version) |
92 | Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x) | |
796a7010 AF |
93 | Group: X11/Development/Libraries |
94 | Requires: gtk3-vnc-devel = %{version}-%{release} | |
95 | Requires: libgvnc-static = %{version}-%{release} | |
96 | ||
97 | %description -n gtk3-vnc-static | |
de94b064 | 98 | Static gtk-vnc library (GTK+ 3.x version). |
796a7010 AF |
99 | |
100 | %description -n gtk3-vnc-static -l pl.UTF-8 | |
de94b064 JB |
101 | Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x). |
102 | ||
103 | %package -n vala-gtk3-vnc | |
104 | Summary: Vala API for gtk-vnc library (GTK+ 3.x version) | |
105 | Summary(pl.UTF-8): API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3) | |
106 | Group: Development/Languages | |
107 | Requires: gtk3-vnc-devel = %{version}-%{release} | |
108 | Requires: vala-libgvnc = %{version}-%{release} | |
2dc5fe44 | 109 | BuildArch: noarch |
de94b064 JB |
110 | |
111 | %description -n vala-gtk3-vnc | |
112 | Vala API for gtk-vnc library (GTK+ 3.x version). | |
113 | ||
114 | %description -n vala-gtk3-vnc -l pl.UTF-8 | |
115 | API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3). | |
796a7010 AF |
116 | |
117 | %package -n libgvnc | |
118 | Summary: A library for VNC clients | |
119 | Summary(pl.UTF-8): Biblioteka dla klientów VNC | |
120 | Group: X11/Libraries | |
cb0d9b15 JB |
121 | Requires: cyrus-sasl-libs >= 2.1.27 |
122 | Requires: gdk-pixbuf2 >= 2.36.0 | |
123 | Requires: glib2 >= 1:2.56.0 | |
124 | Requires: gnutls >= 3.6.0 | |
125 | Requires: libgcrypt >= 1.8.0 | |
126 | Requires: pulseaudio-libs >= 11.0 | |
127 | Requires: zlib >= 1.2.11 | |
796a7010 AF |
128 | |
129 | %description -n libgvnc | |
130 | A library for VNC clients. | |
131 | ||
132 | %description -n libgvnc -l pl.UTF-8 | |
133 | Biblioteka dla klientów VNC. | |
134 | ||
135 | %package -n libgvnc-devel | |
136 | Summary: Header files for libgvnc library | |
137 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgvnc | |
138 | Group: X11/Development/Libraries | |
cb0d9b15 JB |
139 | Requires: cyrus-sasl-devel >= 2.1.27 |
140 | Requires: gdk-pixbuf2-devel >= 2.36.0 | |
141 | Requires: glib2-devel >= 1:2.56.0 | |
142 | Requires: gnutls-devel >= 3.6.0 | |
143 | Requires: libgcrypt-devel >= 1.8.0 | |
3ef49d53 | 144 | Requires: libgvnc = %{version}-%{release} |
cb0d9b15 | 145 | Requires: zlib-devel >= 1.2.11 |
796a7010 AF |
146 | |
147 | %description -n libgvnc-devel | |
148 | Header files for libgvnc library. | |
149 | ||
150 | %description -n libgvnc-devel -l pl.UTF-8 | |
151 | Pliki nagłówkowe biblioteki libgvnc. | |
152 | ||
153 | %package -n libgvnc-static | |
154 | Summary: Static libgvnc library | |
155 | Summary(pl.UTF-8): Statyczna biblioteka libgvnc | |
156 | Group: X11/Development/Libraries | |
157 | Requires: libgvnc-devel = %{version}-%{release} | |
158 | ||
159 | %description -n libgvnc-static | |
160 | Static libgvnc library. | |
161 | ||
162 | %description -n libgvnc-static -l pl.UTF-8 | |
163 | Statyczna biblioteka libgvnc. | |
164 | ||
de94b064 JB |
165 | %package -n vala-libgvnc |
166 | Summary: Vala API for libgvnc library | |
167 | Summary(pl.UTF-8): API języka Vala dla biblioteki libgvnc | |
168 | Group: Development/Languages | |
169 | Requires: libgvnc-devel = %{version}-%{release} | |
170 | Requires: vala | |
d9c6ef4b | 171 | BuildArch: noarch |
e8f8ba6b | 172 | |
de94b064 JB |
173 | %description -n vala-libgvnc |
174 | Vala API for libgvnc library. | |
e8f8ba6b | 175 | |
de94b064 JB |
176 | %description -n vala-libgvnc -l pl.UTF-8 |
177 | API języka Vala dla biblioteki libgvnc. | |
e8f8ba6b | 178 | |
7c955236 MB |
179 | %package tools |
180 | Summary: Command line tools for VNC | |
181 | Summary(pl.UTF-8): Narzędzia linii poleceń dla VNC | |
182 | Group: Applications/Networking | |
d0682d5e | 183 | Requires: libgvnc = %{version}-%{release} |
7c955236 MB |
184 | |
185 | %description tools | |
186 | Command line utilities for interacting with VNC servers. | |
187 | ||
188 | %description tools -l pl.UTF-8 | |
189 | Narzędzia linii poleceń do interakcji z serwerami VNC. | |
190 | ||
e8f8ba6b PZ |
191 | %prep |
192 | %setup -q | |
d9c6ef4b JB |
193 | |
194 | %{__sed} -i -e '1s,/usr/bin/python$,%{__python},' examples/gvncviewer.py | |
e8f8ba6b PZ |
195 | |
196 | %build | |
869e3c46 JB |
197 | %meson build |
198 | ||
199 | %ninja_build -C build | |
e8f8ba6b PZ |
200 | |
201 | %install | |
202 | rm -rf $RPM_BUILD_ROOT | |
436191a8 | 203 | |
869e3c46 | 204 | %ninja_install -C build |
a87b1ed1 | 205 | |
869e3c46 JB |
206 | install -d $RPM_BUILD_ROOT%{_examplesdir}/gtk3-vnc-%{version} |
207 | cp -p examples/gvncviewer.{c,js,pl,py} $RPM_BUILD_ROOT%{_examplesdir}/gtk3-vnc-%{version} | |
e8f8ba6b | 208 | |
b220cc97 JB |
209 | # not supported by glibc (as of 2.25) |
210 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/guc | |
211 | ||
869e3c46 | 212 | %find_lang gtk-vnc |
7cbe80e3 | 213 | |
e8f8ba6b | 214 | %clean |
a65f3e04 | 215 | rm -rf $RPM_BUILD_ROOT |
e8f8ba6b | 216 | |
de94b064 JB |
217 | %post -n gtk3-vnc -p /sbin/ldconfig |
218 | %postun -n gtk3-vnc -p /sbin/ldconfig | |
a849c9ce | 219 | |
de94b064 JB |
220 | %post -n libgvnc -p /sbin/ldconfig |
221 | %postun -n libgvnc -p /sbin/ldconfig | |
a849c9ce | 222 | |
796a7010 AF |
223 | %files -n gtk3-vnc |
224 | %defattr(644,root,root,755) | |
a849c9ce MB |
225 | %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.*.*.* |
226 | %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-2.0.so.0 | |
796a7010 AF |
227 | %{_libdir}/girepository-1.0/GtkVnc-2.0.typelib |
228 | ||
229 | %files -n gtk3-vnc-devel | |
230 | %defattr(644,root,root,755) | |
231 | %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so | |
232 | %{_includedir}/gtk-vnc-2.0 | |
796a7010 | 233 | %{_datadir}/gir-1.0/GtkVnc-2.0.gir |
869e3c46 JB |
234 | %{_pkgconfigdir}/gtk-vnc-2.0.pc |
235 | %{_examplesdir}/gtk3-vnc-%{version} | |
796a7010 | 236 | |
d9c6ef4b | 237 | %if %{with static_libs} |
796a7010 AF |
238 | %files -n gtk3-vnc-static |
239 | %defattr(644,root,root,755) | |
240 | %{_libdir}/libgtk-vnc-2.0.a | |
d9c6ef4b | 241 | %endif |
796a7010 | 242 | |
de94b064 JB |
243 | %if %{with vala} |
244 | %files -n vala-gtk3-vnc | |
245 | %defattr(644,root,root,755) | |
246 | %{_datadir}/vala/vapi/gtk-vnc-2.0.deps | |
247 | %{_datadir}/vala/vapi/gtk-vnc-2.0.vapi | |
248 | %endif | |
249 | ||
869e3c46 | 250 | %files -n libgvnc -f gtk-vnc.lang |
796a7010 | 251 | %defattr(644,root,root,755) |
cb0d9b15 | 252 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
796a7010 | 253 | %attr(755,root,root) %{_libdir}/libgvnc-1.0.so.*.*.* |
3ef49d53 | 254 | %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so.*.*.* |
796a7010 | 255 | %attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0 |
3ef49d53 | 256 | %attr(755,root,root) %ghost %{_libdir}/libgvncpulse-1.0.so.0 |
796a7010 | 257 | %{_libdir}/girepository-1.0/GVnc-1.0.typelib |
3ef49d53 | 258 | %{_libdir}/girepository-1.0/GVncPulse-1.0.typelib |
796a7010 AF |
259 | |
260 | %files -n libgvnc-devel | |
261 | %defattr(644,root,root,755) | |
262 | %attr(755,root,root) %{_libdir}/libgvnc-1.0.so | |
3ef49d53 | 263 | %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so |
796a7010 | 264 | %{_datadir}/gir-1.0/GVnc-1.0.gir |
3ef49d53 | 265 | %{_datadir}/gir-1.0/GVncPulse-1.0.gir |
796a7010 | 266 | %{_includedir}/gvnc-1.0 |
3ef49d53 | 267 | %{_includedir}/gvncpulse-1.0 |
796a7010 | 268 | %{_pkgconfigdir}/gvnc-1.0.pc |
3ef49d53 | 269 | %{_pkgconfigdir}/gvncpulse-1.0.pc |
796a7010 | 270 | |
d9c6ef4b | 271 | %if %{with static_libs} |
796a7010 AF |
272 | %files -n libgvnc-static |
273 | %defattr(644,root,root,755) | |
7c955236 | 274 | %{_libdir}/libgvnc-1.0.a |
3ef49d53 | 275 | %{_libdir}/libgvncpulse-1.0.a |
d9c6ef4b | 276 | %endif |
e8f8ba6b | 277 | |
de94b064 JB |
278 | %if %{with vala} |
279 | %files -n vala-libgvnc | |
e8f8ba6b | 280 | %defattr(644,root,root,755) |
aa530dbb | 281 | %{_datadir}/vala/vapi/gvnc-1.0.deps |
de94b064 | 282 | %{_datadir}/vala/vapi/gvnc-1.0.vapi |
aa530dbb | 283 | %{_datadir}/vala/vapi/gvncpulse-1.0.deps |
3ef49d53 | 284 | %{_datadir}/vala/vapi/gvncpulse-1.0.vapi |
de94b064 | 285 | %endif |
7c955236 MB |
286 | |
287 | %files tools | |
288 | %defattr(644,root,root,755) | |
289 | %attr(755,root,root) %{_bindir}/gvnccapture | |
290 | %{_mandir}/man1/gvnccapture.1* |