]> git.pld-linux.org Git - packages/gtk-vnc.git/blob - gtk-vnc.spec
- updated to 1.2.0
[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
7 Summary(pl.UTF-8):      Widget GTK+ dla klientów VNC
8 Name:           gtk-vnc
9 Version:        1.2.0
10 Release:        1
11 License:        LGPL v2+
12 Group:          X11/Libraries
13 Source0:        https://download.gnome.org/sources/gtk-vnc/1.2/%{name}-%{version}.tar.xz
14 # Source0-md5:  37c36412593d73f6a090b4545d1b0364
15 URL:            https://wiki.gnome.org/Projects/gtk-vnc
16 BuildRequires:  cairo-devel >= 1.15.0
17 BuildRequires:  cyrus-sasl-devel >= 2.1.27
18 BuildRequires:  gdk-pixbuf2-devel >= 2.36.0
19 BuildRequires:  gettext-tools
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
26 BuildRequires:  ninja >= 1.5
27 BuildRequires:  perl-tools-pod
28 BuildRequires:  pkgconfig
29 BuildRequires:  pulseaudio-devel >= 11.0
30 BuildRequires:  python3 >= 1:3
31 BuildRequires:  rpm-build >= 4.6
32 BuildRequires:  rpmbuild(macros) >= 1.736
33 BuildRequires:  tar >= 1:1.22
34 %{?with_vala:BuildRequires:     vala >= 0.14.0}
35 BuildRequires:  xorg-lib-libX11-devel >= 1.6.5
36 BuildRequires:  xz
37 BuildRequires:  zlib-devel >= 1.2.11
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
42 allowing it to be completely asynchronous while remaining single
43 threaded.
44
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
50 %package -n gtk3-vnc
51 Summary:        A GTK+ widget for VNC clients (GTK+ 3.x version)
52 Summary(pl.UTF-8):      Widget GTK+ dla klientów VNC (wersja GTK+ 3.x)
53 Group:          X11/Libraries
54 Requires:       cairo >= 1.15.0
55 Requires:       gtk+3 >= 3.22.0
56 Requires:       libgvnc = %{version}-%{release}
57 Requires:       xorg-lib-libX11 >= 1.6.5
58
59 %description -n gtk3-vnc
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.
65
66 %description -n gtk3-vnc -l pl.UTF-8
67 gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z
68 użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne
69 pozostając jednowątkowymi.
70
71 Ten pakiet zawiera wersję dla GTK+ 3.x.
72
73 %package -n gtk3-vnc-devel
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)
76 Group:          X11/Development/Libraries
77 Requires:       cairo-devel >= 1.15.0
78 Requires:       gtk+3-devel >= 3.22.0
79 Requires:       gtk3-vnc = %{version}-%{release}
80 Requires:       libgcrypt-devel >= 1.8.0
81 Requires:       libgvnc-devel = %{version}-%{release}
82 Requires:       xorg-lib-libX11-devel >= 1.6.5
83
84 %description -n gtk3-vnc-devel
85 Header files for gtk-vnc library (GTK+ 3.x version).
86
87 %description -n gtk3-vnc-devel -l pl.UTF-8
88 Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x).
89
90 %package -n gtk3-vnc-static
91 Summary:        Static gtk-vnc library (GTK+ 3.x version)
92 Summary(pl.UTF-8):      Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x)
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
98 Static gtk-vnc library (GTK+ 3.x version).
99
100 %description -n gtk3-vnc-static -l pl.UTF-8
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}
109 BuildArch:      noarch
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).
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
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
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
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
144 Requires:       libgvnc = %{version}-%{release}
145 Requires:       zlib-devel >= 1.2.11
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
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
171 BuildArch:      noarch
172
173 %description -n vala-libgvnc
174 Vala API for libgvnc library.
175
176 %description -n vala-libgvnc -l pl.UTF-8
177 API języka Vala dla biblioteki libgvnc.
178
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
183 Requires:       libgvnc = %{version}-%{release}
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
191 %prep
192 %setup -q
193
194 %{__sed} -i -e '1s,/usr/bin/python$,%{__python},' examples/gvncviewer.py
195
196 %build
197 %meson build
198
199 %ninja_build -C build
200
201 %install
202 rm -rf $RPM_BUILD_ROOT
203
204 %ninja_install -C build
205
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}
208
209 # not supported by glibc (as of 2.25)
210 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/guc
211
212 %find_lang gtk-vnc
213
214 %clean
215 rm -rf $RPM_BUILD_ROOT
216
217 %post   -n gtk3-vnc -p /sbin/ldconfig
218 %postun -n gtk3-vnc -p /sbin/ldconfig
219
220 %post   -n libgvnc -p /sbin/ldconfig
221 %postun -n libgvnc -p /sbin/ldconfig
222
223 %files -n gtk3-vnc
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.*.*.*
226 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-2.0.so.0
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
233 %{_datadir}/gir-1.0/GtkVnc-2.0.gir
234 %{_pkgconfigdir}/gtk-vnc-2.0.pc
235 %{_examplesdir}/gtk3-vnc-%{version}
236
237 %if %{with static_libs}
238 %files -n gtk3-vnc-static
239 %defattr(644,root,root,755)
240 %{_libdir}/libgtk-vnc-2.0.a
241 %endif
242
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
250 %files -n libgvnc -f gtk-vnc.lang
251 %defattr(644,root,root,755)
252 %doc AUTHORS ChangeLog MAINTAINERS NEWS README
253 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so.*.*.*
254 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so.*.*.*
255 %attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0
256 %attr(755,root,root) %ghost %{_libdir}/libgvncpulse-1.0.so.0
257 %{_libdir}/girepository-1.0/GVnc-1.0.typelib
258 %{_libdir}/girepository-1.0/GVncPulse-1.0.typelib
259
260 %files -n libgvnc-devel
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so
263 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so
264 %{_datadir}/gir-1.0/GVnc-1.0.gir
265 %{_datadir}/gir-1.0/GVncPulse-1.0.gir
266 %{_includedir}/gvnc-1.0
267 %{_includedir}/gvncpulse-1.0
268 %{_pkgconfigdir}/gvnc-1.0.pc
269 %{_pkgconfigdir}/gvncpulse-1.0.pc
270
271 %if %{with static_libs}
272 %files -n libgvnc-static
273 %defattr(644,root,root,755)
274 %{_libdir}/libgvnc-1.0.a
275 %{_libdir}/libgvncpulse-1.0.a
276 %endif
277
278 %if %{with vala}
279 %files -n vala-libgvnc
280 %defattr(644,root,root,755)
281 %{_datadir}/vala/vapi/gvnc-1.0.deps
282 %{_datadir}/vala/vapi/gvnc-1.0.vapi
283 %{_datadir}/vala/vapi/gvncpulse-1.0.deps
284 %{_datadir}/vala/vapi/gvncpulse-1.0.vapi
285 %endif
286
287 %files tools
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_bindir}/gvnccapture
290 %{_mandir}/man1/gvnccapture.1*
This page took 0.191425 seconds and 3 git commands to generate.