-
-%include /usr/lib/rpm/macros.python
-
+#
+# Conditional build:
+%bcond_with glx # build for GLX support
+#
Summary: VTE terminal widget library
Summary(pl): Biblioteka z kontrolk± terminala VTE
Name: vte
-Version: 0.10.10
+Version: 0.11.20
Release: 1
License: LGPL
Group: X11/Libraries
-Source0: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/0.10/%{name}-%{version}.tar.bz2
+Source0: http://ftp.gnome.org/pub/gnome/sources/vte/0.11/%{name}-%{version}.tar.bz2
+# Source0-md5: 913983275f47e235287c83e46a80535c
+Patch0: %{name}-keys.patch
+Patch1: %{name}-nozvt.patch
+%{?with_glx:BuildRequires: OpenGL-devel}
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: Xft-devel >= 2.1-3
+BuildRequires: gettext-devel
BuildRequires: glib2-devel >= 2.2.0
-BuildRequires: gtk+2-devel >= 2.2.0
+BuildRequires: gtk+2-devel >= 2:2.2.0
+BuildRequires: gtk-doc
BuildRequires: libart_lgpl-devel >= 2.3.10
BuildRequires: libtool
+BuildRequires: ncurses-devel
+BuildRequires: pkgconfig
+BuildRequires: python
BuildRequires: python-pygtk-devel >= 1.99.13
+BuildRequires: rpmbuild(macros) >= 1.197
Requires(pre): utempter
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Summary: Headers for VTE
Summary(pl): Pliki nag³ówkowe VTE
Group: X11/Development/Libraries
-Requires: %{name} = %{version}
-Requires: glib2-devel >= 2.0.7
-Requires: gtk+2-devel >= 2.0.8
+Requires: %{name} = %{version}-%{release}
+Requires: OpenGL-devel
+Requires: glib2-devel >= 2.2.0
+Requires: gtk+2-devel >= 2.2.0
Requires: libart_lgpl-devel >= 2.3.10
+Requires: ncurses-devel
Conflicts: gnome-libs-devel < 1.4.1.2
%description devel
Summary: Static VTE library
Summary(pl): Statyczna biblioteka VTE
Group: X11/Development/Libraries
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{version}-%{release}
Conflicts: gnome-libs-static < 1.4.1.2
%description static
Summary: Python VTE module
Summary(pl): Modu³ VTE dla pythona
Group: Libraries
-Requires: %{name} = %{version}
+%pyrequires_eq python-libs
+Requires: %{name} = %{version}-%{release}
+Requires: python-pygtk-gtk >= 1.99.13
%description -n python-vte
Python VTE library.
Biblioteka VTE dla pythona.
%prep
-%setup -q
+%setup -q
+%patch0 -p1
+%patch1 -p1
%build
-glib-gettextize --copy --force
+%{__glib_gettextize}
%{__libtoolize}
%{__aclocal}
%{__autoheader}
%{__automake}
%{__autoconf}
+CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
%configure \
+ --with-xft2 \
+ --with-pangox \
+ %{?with_glx:--with-glX} \
+ --with-default-emulation=xterm \
--enable-gtk-doc \
- --with-html-path=%{_gtkdocdir}
-
-%{__make} pythonsiteexecdir=%{py_sitedir}
+ --with-html-dir=%{_gtkdocdir}
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT \
- pkgconfigdir=%{_pkgconfigdir} \
- pythonsiteexecdir=%{py_sitedir} \
- HTML_DIR=%{_gtkdocdir}
+ DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT%{py_sitedir}/gtk-2.0/*.{la,a}
+rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
%find_lang vte
%files -n python-vte
%defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/*.so
+%attr(755,root,root) %{py_sitedir}/gtk-2.0/*.so