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