]>
Commit | Line | Data |
---|---|---|
2d709f26 | 1 | # |
2 | # Conditional build: | |
f1c2e26c | 3 | %bcond_with glx # drawing using GLX |
2d709f26 | 4 | # |
cfe79c9b | 5 | Summary: VTE terminal widget library |
d2828306 | 6 | Summary(pl.UTF-8): Biblioteka z kontrolką terminala VTE |
cfe79c9b | 7 | Name: vte |
62df6718 | 8 | Version: 0.16.0 |
e255b3e3 | 9 | Release: 1 |
cfe79c9b AF |
10 | License: LGPL |
11 | Group: X11/Libraries | |
62df6718 | 12 | Source0: http://ftp.gnome.org/pub/gnome/sources/vte/0.16/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 6b85967ba75ed574d0e5782697fbc79f | |
28fdb696 | 14 | Patch0: %{name}-keys.patch |
f1c2e26c JB |
15 | Patch1: %{name}-link.patch |
16 | %{?with_glx:BuildRequires: OpenGL-GLU-devel} | |
17 | %{?with_glx:BuildRequires: OpenGL-GLX-devel} | |
18 | BuildRequires: autoconf >= 2.59-9 | |
62df6718 | 19 | BuildRequires: automake >= 1:1.6 |
049c0677 | 20 | BuildRequires: gettext-devel |
62df6718 | 21 | BuildRequires: gtk+2-devel >= 2:2.10.9 |
22 | BuildRequires: gtk-doc >= 1.8 | |
23 | BuildRequires: intltool >= 0.35.5 | |
cfe79c9b | 24 | BuildRequires: libtool |
049c0677 KK |
25 | BuildRequires: ncurses-devel |
26 | BuildRequires: pkgconfig | |
62df6718 | 27 | BuildRequires: python-pygtk-devel >= 2:2.10.4 |
0826a857 | 28 | BuildRequires: rpm-pythonprov |
4e828b2a | 29 | BuildRequires: rpmbuild(macros) >= 1.197 |
cfe79c9b AF |
30 | Requires(pre): utempter |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
cfe79c9b AF |
33 | %description |
34 | The vte package contains a terminal widget for GTK+. It's used by | |
35 | gnome-terminal among other programs. | |
36 | ||
6c917d2d JR |
37 | %description -l pl.UTF-8 |
38 | Ten pakiet zawiera kontrolkę terminala dla GTK+. Jest używany przez | |
cfe79c9b AF |
39 | gnome-terminal oraz inne programy. |
40 | ||
41 | %package devel | |
c98f6e1e | 42 | Summary: Headers for VTE |
d2828306 | 43 | Summary(pl.UTF-8): Pliki nagłówkowe VTE |
cfe79c9b | 44 | Group: X11/Development/Libraries |
efc3b9e1 | 45 | Requires: %{name} = %{version}-%{release} |
f1c2e26c | 46 | %{?with_glx:Requires: OpenGL-GLU-devel} |
62df6718 | 47 | Requires: gtk+2-devel >= 2:2.10.9 |
f41aff32 | 48 | Requires: ncurses-devel |
cfe79c9b AF |
49 | Conflicts: gnome-libs-devel < 1.4.1.2 |
50 | ||
51 | %description devel | |
52 | The vte package contains a terminal widget for GTK+. It's used by | |
53 | gnome-terminal among other programs. | |
54 | ||
d74d41f0 MB |
55 | You should install the vte-devel package if you would like to compile |
56 | applications that use the vte terminal widget. You do not need to | |
57 | install vte-devel if you just want to use precompiled applications. | |
cfe79c9b | 58 | |
6c917d2d JR |
59 | %description devel -l pl.UTF-8 |
60 | Pliki nagłówkowe potrzebne do kompilowania programów używających vte. | |
cfe79c9b AF |
61 | |
62 | %package static | |
c98f6e1e | 63 | Summary: Static VTE library |
d2828306 | 64 | Summary(pl.UTF-8): Statyczna biblioteka VTE |
cfe79c9b | 65 | Group: X11/Development/Libraries |
efc3b9e1 | 66 | Requires: %{name}-devel = %{version}-%{release} |
cfe79c9b AF |
67 | Conflicts: gnome-libs-static < 1.4.1.2 |
68 | ||
69 | %description static | |
c98f6e1e | 70 | Static version of VTE libraries. |
cfe79c9b | 71 | |
6c917d2d | 72 | %description static -l pl.UTF-8 |
c98f6e1e | 73 | Statyczna wersja bibliotek VTE. |
cfe79c9b | 74 | |
bc58e180 | 75 | %package -n python-vte |
c98f6e1e | 76 | Summary: Python VTE module |
d2828306 | 77 | Summary(pl.UTF-8): Moduł VTE dla pythona |
bc58e180 | 78 | Group: Libraries |
58ac5d7b | 79 | %pyrequires_eq python-libs |
efc3b9e1 | 80 | Requires: %{name} = %{version}-%{release} |
62df6718 | 81 | Requires: python-pygtk-gtk >= 2:2.10.4 |
bc58e180 | 82 | |
83 | %description -n python-vte | |
c98f6e1e | 84 | Python VTE library. |
bc58e180 | 85 | |
6c917d2d | 86 | %description -n python-vte -l pl.UTF-8 |
c98f6e1e | 87 | Biblioteka VTE dla pythona. |
bc58e180 | 88 | |
895c278e | 89 | %package apidocs |
90 | Summary: VTE API documentation | |
d2828306 | 91 | Summary(pl.UTF-8): Dokumentacja API VTE |
895c278e | 92 | Group: Documentation |
93 | Requires: gtk-doc-common | |
94 | ||
95 | %description apidocs | |
96 | VTE API documentation. | |
97 | ||
6c917d2d | 98 | %description apidocs -l pl.UTF-8 |
895c278e | 99 | Dokumentacja API VTE. |
100 | ||
cfe79c9b | 101 | %prep |
28fdb696 | 102 | %setup -q |
6c8a1130 | 103 | %patch0 -p1 |
f1c2e26c | 104 | %patch1 -p1 |
cfe79c9b AF |
105 | |
106 | %build | |
62df6718 | 107 | %{__glib_gettextize} |
a3456d5d | 108 | %{__intltoolize} |
dcd5996b | 109 | %{__libtoolize} |
110 | %{__aclocal} | |
111 | %{__autoheader} | |
112 | %{__automake} | |
113 | %{__autoconf} | |
6c8a1130 | 114 | cd gnome-pty-helper |
115 | %{__libtoolize} | |
116 | %{__aclocal} | |
117 | %{__autoheader} | |
118 | %{__automake} | |
119 | %{__autoconf} | |
120 | cd .. | |
d146662f | 121 | %configure \ |
122 | --enable-gtk-doc \ | |
f1c2e26c JB |
123 | --with-default-emulation=xterm \ |
124 | %{?with_glx:--with-glX} \ | |
125 | --with-html-dir=%{_gtkdocdir} \ | |
126 | --with-pangox \ | |
127 | --with-xft2 | |
d74d41f0 | 128 | |
7c0544b4 | 129 | %{__make} |
cfe79c9b AF |
130 | |
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %{__make} install \ | |
7c0544b4 | 135 | DESTDIR=$RPM_BUILD_ROOT |
ead4696e | 136 | |
efc3b9e1 | 137 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/gtk-2.0/*.{la,a} |
cfe79c9b | 138 | |
7f894692 | 139 | %find_lang vte |
cfe79c9b AF |
140 | |
141 | %clean | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
144 | %post -p /sbin/ldconfig | |
145 | %postun -p /sbin/ldconfig | |
146 | ||
7f894692 | 147 | %files -f vte.lang |
cfe79c9b | 148 | %defattr(644,root,root,755) |
f1c2e26c | 149 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
cfe79c9b | 150 | %attr(755,root,root) %{_bindir}/vte |
f1c2e26c | 151 | %attr(755,root,root) %{_libdir}/libvte.so.*.*.* |
cfe79c9b AF |
152 | %dir %{_libdir}/vte |
153 | %attr(755,root,root) %{_libdir}/vte/* | |
154 | %attr(2755,root,utmp) %{_libdir}/gnome-pty-helper | |
90bd3967 | 155 | %{_datadir}/vte |
cfe79c9b AF |
156 | |
157 | %files devel | |
158 | %defattr(644,root,root,755) | |
f1c2e26c JB |
159 | %attr(755,root,root) %{_libdir}/libvte.so |
160 | %{_libdir}/libvte.la | |
161 | %{_includedir}/vte | |
162 | %{_pkgconfigdir}/vte.pc | |
cfe79c9b AF |
163 | |
164 | %files static | |
165 | %defattr(644,root,root,755) | |
f1c2e26c | 166 | %{_libdir}/libvte.a |
bc58e180 | 167 | |
895c278e | 168 | %files apidocs |
169 | %defattr(644,root,root,755) | |
f1c2e26c | 170 | %{_gtkdocdir}/vte |
895c278e | 171 | |
bc58e180 | 172 | %files -n python-vte |
cba5de48 | 173 | %defattr(644,root,root,755) |
f1c2e26c | 174 | %attr(755,root,root) %{py_sitedir}/gtk-2.0/vtemodule.so |