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