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