]>
Commit | Line | Data |
---|---|---|
436191a8 JB |
1 | Summary: A GTK+ widget for VNC clients |
2 | Summary(pl.UTF-8): Widget GTK+ dla klientów VNC | |
e8f8ba6b | 3 | Name: gtk-vnc |
7cbe80e3 | 4 | Version: 0.3.10 |
12ab5ff1 | 5 | Release: 2 |
a87b1ed1 | 6 | License: LGPL v2 |
3994aa9c MB |
7 | Group: X11/Libraries |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-vnc/0.3/%{name}-%{version}.tar.bz2 | |
7cbe80e3 | 9 | # Source0-md5: 9aa9d830b219255c8d6753ef55802932 |
e8f8ba6b | 10 | Patch0: %{name}-codegen.patch |
3994aa9c | 11 | URL: http://live.gnome.org/gtk-vnc |
a87b1ed1 | 12 | BuildRequires: autoconf >= 2.50 |
436191a8 | 13 | BuildRequires: automake |
7cbe80e3 MB |
14 | BuildRequires: cyrus-sasl-devel |
15 | BuildRequires: gettext-devel | |
a87b1ed1 | 16 | BuildRequires: gnutls-devel >= 1.4.0 |
3994aa9c | 17 | BuildRequires: gtk+2-devel >= 2:2.10.0 |
7cbe80e3 | 18 | BuildRequires: intltool >= 0.35.0 |
436191a8 | 19 | BuildRequires: libtool |
a87b1ed1 JB |
20 | BuildRequires: pkgconfig |
21 | BuildRequires: python-devel >= 1:2.4 | |
22 | BuildRequires: python-pygtk-devel >= 2:2.0.0 | |
436191a8 | 23 | BuildRequires: rpm-pythonprov |
3994aa9c | 24 | BuildRequires: zlib-devel |
e8f8ba6b PZ |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
436191a8 | 28 | gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines |
e8f8ba6b PZ |
29 | allowing it to be completely asynchronous while remaining single |
30 | threaded. | |
31 | ||
436191a8 JB |
32 | %description -l pl.UTF-8 |
33 | gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z | |
34 | użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne | |
35 | pozostając jednowątkowymi. | |
36 | ||
e8f8ba6b | 37 | %package devel |
436191a8 JB |
38 | Summary: Header files for gtk-vnc library |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc | |
3994aa9c | 40 | Group: X11/Development/Libraries |
436191a8 | 41 | Requires: %{name} = %{version}-%{release} |
a87b1ed1 | 42 | Requires: gnutls-devel >= 1.4.0 |
3994aa9c | 43 | Requires: gtk+2-devel >= 2:2.10.0 |
e8f8ba6b PZ |
44 | |
45 | %description devel | |
436191a8 | 46 | Header files for gtk-vnc library. |
e8f8ba6b | 47 | |
436191a8 JB |
48 | %description devel -l pl.UTF-8 |
49 | Pliki nagłówkowe biblioteki gtk-vnc. | |
e8f8ba6b | 50 | |
a87b1ed1 JB |
51 | %package static |
52 | Summary: Static gtk-vnc library | |
53 | Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc | |
3994aa9c | 54 | Group: X11/Development/Libraries |
a87b1ed1 JB |
55 | Requires: %{name}-devel = %{version}-%{release} |
56 | ||
57 | %description static | |
58 | Static gtk-vnc library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka gtk-vnc. | |
62 | ||
e8f8ba6b PZ |
63 | %package -n python-gtk-vnc |
64 | Summary: Python bindings for the gtk-vnc library | |
436191a8 JB |
65 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki gtk-vnc |
66 | Group: Libraries/Python | |
67 | Requires: %{name} = %{version}-%{release} | |
68 | %requires_eq python-libs | |
e8f8ba6b PZ |
69 | |
70 | %description -n python-gtk-vnc | |
436191a8 | 71 | A module allowing use of the GTK+ VNC widget from Python. |
e8f8ba6b | 72 | |
436191a8 JB |
73 | %description -n python-gtk-vnc -l pl.UTF-8 |
74 | Moduł pozwalający na używanie widgetu GTK+ VNC z poziomu Pythona. | |
e8f8ba6b PZ |
75 | |
76 | %prep | |
77 | %setup -q | |
78 | %patch0 -p1 | |
79 | ||
80 | %build | |
81 | %{__libtoolize} | |
3994aa9c | 82 | %{__aclocal} -I gnulib/m4 |
e8f8ba6b | 83 | %{__autoconf} |
3994aa9c | 84 | %{__autoheader} |
e8f8ba6b PZ |
85 | %{__automake} |
86 | %configure | |
87 | %{__make} | |
88 | ||
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
436191a8 | 91 | |
e8f8ba6b PZ |
92 | %{__make} install \ |
93 | DESTDIR=$RPM_BUILD_ROOT | |
94 | ||
a87b1ed1 JB |
95 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \ |
96 | $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} | |
97 | ||
98 | install examples/gvncviewer.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
99 | install examples/gvncviewer.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} | |
100 | ||
436191a8 | 101 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} |
e8f8ba6b | 102 | |
7cbe80e3 MB |
103 | %find_lang %{name} |
104 | ||
e8f8ba6b PZ |
105 | %clean |
106 | rm -fr $RPM_BUILD_ROOT | |
107 | ||
a87b1ed1 JB |
108 | %post -p /sbin/ldconfig |
109 | %postun -p /sbin/ldconfig | |
e8f8ba6b | 110 | |
7cbe80e3 | 111 | %files -f %{name}.lang |
e8f8ba6b | 112 | %defattr(644,root,root,755) |
a87b1ed1 JB |
113 | %doc AUTHORS ChangeLog NEWS README |
114 | %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so.*.*.* | |
115 | %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-1.0.so.0 | |
e8f8ba6b PZ |
116 | |
117 | %files devel | |
118 | %defattr(644,root,root,755) | |
a87b1ed1 JB |
119 | %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so |
120 | %{_libdir}/libgtk-vnc-1.0.la | |
121 | %{_includedir}/%{name}-1.0 | |
e8f8ba6b | 122 | %{_pkgconfigdir}/%{name}-1.0.pc |
a87b1ed1 JB |
123 | %{_examplesdir}/%{name}-%{version} |
124 | ||
125 | %files static | |
126 | %defattr(644,root,root,755) | |
127 | %{_libdir}/libgtk-vnc-1.0.a | |
e8f8ba6b PZ |
128 | |
129 | %files -n python-gtk-vnc | |
130 | %defattr(644,root,root,755) | |
a87b1ed1 JB |
131 | %attr(755,root,root) %{py_sitedir}/gtkvnc.so |
132 | %{_examplesdir}/python-%{name}-%{version} |