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