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