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