packages: vte/vte.spec - build gtk+ 2.x version too - resurect python bindi...

wiget wiget at pld-linux.org
Tue Apr 5 22:34:01 CEST 2011


Author: wiget                        Date: Tue Apr  5 20:34:01 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- build gtk+ 2.x version too
- resurect python bindings
- rel. 2

---- Files affected:
packages/vte:
   vte.spec (1.163 -> 1.164) 

---- Diffs:

================================================================
Index: packages/vte/vte.spec
diff -u packages/vte/vte.spec:1.163 packages/vte/vte.spec:1.164
--- packages/vte/vte.spec:1.163	Mon Apr  4 18:40:38 2011
+++ packages/vte/vte.spec	Tue Apr  5 22:33:55 2011
@@ -3,7 +3,7 @@
 Summary(pl.UTF-8):	Biblioteka z kontrolką terminala VTE
 Name:		vte
 Version:	0.28.0
-Release:	1
+Release:	2
 License:	LGPL v2+
 Group:		X11/Libraries
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/vte/0.28/%{name}-%{version}.tar.bz2
@@ -15,6 +15,7 @@
 BuildRequires:	glib2-devel >= 1:2.28.0
 BuildRequires:	gnome-common
 BuildRequires:	gobject-introspection-devel >= 0.10.0
+BuildRequires:	gtk+2-devel >= 2:2.14.0
 BuildRequires:	gtk+3-devel >= 3.0.0
 BuildRequires:	gtk-doc >= 1.13
 BuildRequires:	gtk-doc-automake
@@ -22,23 +23,44 @@
 BuildRequires:	libtool
 BuildRequires:	ncurses-devel
 BuildRequires:	pkgconfig
+BuildRequires:	python-pygtk-devel >= 2:2.12.0
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.592
 Requires(pre):	utempter
-Obsoletes:	python-vte
-Obsoletes:	python-vte-devel
+Requires:	%{name}-common = %{version}-%{release}
 # sr at Latn vs. sr at latin
 Conflicts:	glibc-misc < 6:2.7
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-The vte package contains a terminal widget for GTK+. It's used by
+The vte package contains a terminal widget for GTK+ 3.x. It's used by
 gnome-terminal among other programs.
 
 %description -l pl.UTF-8
-Ten pakiet zawiera kontrolkę terminala dla GTK+. Jest używany przez
+Ten pakiet zawiera kontrolkę terminala dla GTK+ 3.x. Jest używany przez
 gnome-terminal oraz inne programy.
 
+%package -n vte0
+Summary:	VTE terminal widget library
+Summary(pl.UTF-8):	Biblioteka z kontrolką terminala VTE
+Group:		X11/Libraries
+Requires:	%{name}-common = %{version}-%{release}
+
+%description -n vte0
+The vte package contains a terminal widget for GTK+ 2.x. It's used by
+gnome-terminal among other programs.
+
+%description -n vte0 -l pl.UTF-8
+Ten pakiet zawiera kontrolkę terminala dla GTK+ 2.x. Jest używany przez
+gnome-terminal oraz inne programy.
+
+%package common
+Summary:	Common files for vte and vte0
+Group:		X11/Libraries
+
+%description common
+Common files for vte and vte0.
+
 %package devel
 Summary:	Headers for VTE
 Summary(pl.UTF-8):	Pliki nagłówkowe VTE
@@ -50,7 +72,7 @@
 Conflicts:	gnome-libs-devel < 1.4.1.2
 
 %description devel
-The vte package contains a terminal widget for GTK+. It's used by
+The vte package contains a terminal widget for GTK+ 3.x. It's used by
 gnome-terminal among other programs.
 
 You should install the vte-devel package if you would like to compile
@@ -60,6 +82,27 @@
 %description devel -l pl.UTF-8
 Pliki nagłówkowe potrzebne do kompilowania programów używających vte.
 
+%package -n vte0-devel
+Summary:	Headers for VTE
+Summary(pl.UTF-8):	Pliki nagłówkowe VTE
+Group:		X11/Development/Libraries
+Requires:	vte0 = %{version}-%{release}
+Requires:	glib2-devel >= 1:2.28.0
+Requires:	gtk+2-devel >= 2:2.14.0
+Requires:	ncurses-devel
+Conflicts:	gnome-libs-devel < 1.4.1.2
+
+%description -n vte0-devel
+The vte package contains a terminal widget for GTK+ 2.x. It's used by
+gnome-terminal among other programs.
+
+You should install the vte-devel package if you would like to compile
+applications that use the vte terminal widget. You do not need to
+install vte-devel if you just want to use precompiled applications.
+
+%description -n vte0-devel -l pl.UTF-8
+Pliki nagłówkowe potrzebne do kompilowania programów używających vte.
+
 %package static
 Summary:	Static VTE library
 Summary(pl.UTF-8):	Statyczna biblioteka VTE
@@ -73,6 +116,46 @@
 %description static -l pl.UTF-8
 Statyczna wersja bibliotek VTE.
 
+%package -n vte0-static
+Summary:	Static VTE library - GTK+ 2.x version
+Summary(pl.UTF-8):	Statyczna biblioteka VTE - wersja dla GTK+ 2.x
+Group:		X11/Development/Libraries
+Requires:	vte0-devel = %{version}-%{release}
+Conflicts:	gnome-libs-static < 1.4.1.2
+
+%description -n vte0-static
+Static version of VTE libraries - GTK+ 2.x version.
+
+%description -n vte0-static -l pl.UTF-8
+Statyczna wersja bibliotek VTE - wersja dla GTK+ 2.x.
+
+%package -n python-vte
+Summary:	Python VTE module
+Summary(pl.UTF-8):	Moduł VTE dla pythona
+Group:		Libraries/Python
+%pyrequires_eq	python-libs
+Requires:	vte0 = %{version}-%{release}
+Requires:	python-pygtk-gtk >= 2:2.12.0
+
+%description -n python-vte
+Python VTE library.
+
+%description -n python-vte -l pl.UTF-8
+Biblioteka VTE dla pythona.
+
+%package -n python-vte-devel
+Summary:	Development files for VTE Python bindings
+Summary(pl.UTF-8):	Pliki programistyczne wiązań Pythona do VTE
+Group:		Development/Languages/Python
+Requires:	vte0-devel = %{version}-%{release}
+Requires:	python-vte = %{version}-%{release}
+
+%description -n python-vte-devel
+Development files for VTE Python bindings.
+
+%description -n python-vte-devel -l pl.UTF-8
+Pliki programistyczne wiązań Pythona do VTE.
+
 %package apidocs
 Summary:	VTE API documentation
 Summary(pl.UTF-8):	Dokumentacja API VTE
@@ -85,6 +168,18 @@
 %description apidocs -l pl.UTF-8
 Dokumentacja API VTE.
 
+%package -n vte0-apidocs
+Summary:	VTE API documentation - GTK+ 2.x version
+Summary(pl.UTF-8):	Dokumentacja API VTE - wersja dla GTK+ 2.x
+Group:		Documentation
+Requires:	gtk-doc-common
+
+%description -n vte0-apidocs
+VTE API documentation - GTK+ 2.x version.
+
+%description -n vte0-apidocs -l pl.UTF-8
+Dokumentacja API VTE - wersja dla GTK+ 2.x.
+
 %prep
 %setup -q
 
@@ -104,24 +199,41 @@
 %{__automake}
 %{__autoconf}
 cd ..
-%configure \
-	--disable-silent-rules \
+COMMON_OPTIONS="--disable-silent-rules \
 	--enable-gtk-doc \
-	--with-gtk=3.0 \
 	--enable-introspection \
 	--with-default-emulation=xterm \
 	--with-html-dir=%{_gtkdocdir}
+"
+mkdir gtk{2,3}
+cd gtk2
+../%configure \
+	--with-gtk=2.0 \
+	$COMMON_OPTIONS
 %{__make}
+cd ../gtk3
+../%configure \
+	--with-gtk=3.0 \
+	$COMMON_OPTIONS
+%{__make}
+cd ..
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+cd gtk2
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+cd ../gtk3
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
+cd ..
 
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \
+	$RPM_BUILD_ROOT%{py_sitedir}/gtk-2.0/vtemodule.{la,a}
 
 %find_lang %{name}-2.90
+%find_lang %{name}-0.0
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -131,11 +243,21 @@
 
 %files -f vte-2.90.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog MAINTAINERS NEWS README
 %attr(755,root,root) %{_bindir}/vte2_90
 %attr(755,root,root) %{_libdir}/libvte2_90.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libvte2_90.so.9
 %{_libdir}/girepository-1.0/Vte-2.90.typelib
+
+%files -n vte0 -f vte-0.0.lang
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/vte
+%attr(755,root,root) %{_libdir}/libvte.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libvte.so.9
+%{_libdir}/girepository-1.0/Vte-0.0.typelib
+
+%files common
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog MAINTAINERS NEWS README
 %attr(2755,root,utmp) %{_libdir}/gnome-pty-helper
 %{_datadir}/vte
 
@@ -146,20 +268,49 @@
 %{_pkgconfigdir}/vte-2.90.pc
 %{_datadir}/gir-1.0/Vte-2.90.gir
 
+%files -n vte0-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libvte.so
+%{_includedir}/vte-0.0
+%{_pkgconfigdir}/vte.pc
+%{_datadir}/gir-1.0/Vte-0.0.gir
+
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libvte2_90.a
 
+%files -n vte0-static
+%defattr(644,root,root,755)
+%{_libdir}/libvte.a
+
+%files -n python-vte
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/gtk-2.0/vtemodule.so
+
+%files -n python-vte-devel
+%defattr(644,root,root,755)
+%{_datadir}/pygtk/2.0/defs/*.defs
+%{_pkgconfigdir}/pyvte.pc
+
 %files apidocs
 %defattr(644,root,root,755)
 %{_gtkdocdir}/vte-2.90
 
+%files -n vte0-apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/vte-0.0
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.164  2011/04/05 20:33:55  wiget
+- build gtk+ 2.x version too
+- resurect python bindings
+- rel. 2
+
 Revision 1.163  2011/04/04 16:40:38  megabajt
 - updated to 0.28.0; merged from DEVEL
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/vte/vte.spec?r1=1.163&r2=1.164&f=u



More information about the pld-cvs-commit mailing list