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