]> git.pld-linux.org Git - packages/vte.git/blobdiff - vte.spec
- 0.11.20
[packages/vte.git] / vte.spec
index 7288caf88b38ed6a0fafa913197a04af1a049bd3..a3a62e3e8b22ddfbcf188c94ddd081a64807a8c1 100644 (file)
--- a/vte.spec
+++ b/vte.spec
@@ -1,22 +1,32 @@
-
-%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)
 
@@ -32,10 +42,12 @@ gnome-terminal oraz inne programy.
 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
@@ -55,7 +67,7 @@ vte.
 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
@@ -68,7 +80,9 @@ Statyczna wersja bibliotek VTE.
 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.
@@ -77,29 +91,35 @@ 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
 
@@ -133,4 +153,4 @@ rm -rf $RPM_BUILD_ROOT
 
 %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
This page took 0.163666 seconds and 4 git commands to generate.