This commit is contained in:
zhangtao2020 2021-07-31 12:08:07 +08:00
parent 5365385d26
commit 6c18ea2a1b

View File

@ -3,7 +3,7 @@
%define gtk2_version 2.20.0
Name: vte
Version: 0.28.2
Release: 1
Release: 2
Summary: A terminal emulator
License: LGPLv2+
URL: http://developer.gnome.org/vte/
@ -36,9 +36,8 @@ Patch8: vte-0.28.2-683730.patch
# https://bugzilla.gnome.org/show_bug.cgi?id=681329
Patch9: vte-0.28.2-mouse-tracking.patch
BuildRequires: gtk2-devel >= %{gtk2_version} pango-devel >= %{pango_version}
BuildRequires: glib2-devel >= %{glib2_version} pygtk2-devel, python2-devel, ncurses-devel
BuildRequires: glib2-devel >= %{glib2_version} ncurses-devel
BuildRequires: gettext libXt-devel intltool perl-Carp gobject-introspection-devel
BuildRequires: /usr/bin/python
Requires: systemd
%description
VTE is a terminal emulator widget for use with GTK+ 2.0.
@ -66,8 +65,6 @@ vte.
%patch9 -p1
%build
PYTHON=%{__python2}
export PYTHON
%configure \
--enable-shared \
--enable-static \
@ -75,7 +72,8 @@ export PYTHON
--with-gtk=2.0 \
--libexecdir=%{_libdir}/%{name} \
--without-glX \
--disable-gtk-doc
--disable-gtk-doc\
--disable-python
make %{?_smp_mflags}
%install
@ -94,7 +92,6 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/python*/site-packages/gtk-2.0/*.a
%dir %{_libdir}/vte
%attr(2711,root,utmp) %{_libdir}/vte/gnome-pty-helper
%{_datadir}/%{name}
%{_libdir}/python*/site-packages/*
%{_libdir}/girepository-1.0
%files devel
@ -102,10 +99,11 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/python*/site-packages/gtk-2.0/*.a
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_bindir}/%{name}
%{_datadir}/pygtk/2.0/defs/vte.defs
%{_datadir}/gir-1.0
%doc %{_datadir}/gtk-doc/html/vte-0.0
%changelog
* Sat Jul 31 2021 zhangtao <zhangtao221@huawei.com> - 0.28.2-2
- disable python2
* Mon Aug 3 2020 fanjiachen <fanjiachen3@huawei.com> - 0.28.2-1
- package init