Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37565494
en ru br
ALT Linux repos
S:0.28.2-alt4
5.0: 0.20.2-alt1
4.1: 0.17.4-alt1.M41.1
4.0: 0.14.1-alt1
3.0: 0.11.13-alt2

Group :: Terminals
RPM: vte

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: vte
Version: 0.17.4
Release: alt1.M41.1

%def_enable pty_helper
%def_disable static

Summary: Terminal emulator widget for use with GTK+
License: LGPL
Group: Terminals
Packager: Yuri N. Sedunov <aris at altlinux.org>

Requires: lib%name = %version-%release

%define pkgdocdir %_docdir/%name-%version

Source: %name-%version.tar.bz2
Patch0: vte-0.16.13-fixboldinverse-alt.patch

%define gtk_ver 2.6.0
%define glib_ver 2.14.0

BuildPreReq: rpm-build-python

BuildRequires: libSM-devel libncurses-devel python-module-pygtk-devel

BuildRequires: intltool >= 0.35.0
BuildRequires: gtk-doc >= 1.1.0
BuildRequires: glib2-devel >= %glib_ver
BuildRequires: libgtk+2-devel >= %gtk_ver
BuildRequires: libpango-devel >= 1.1.0
BuildRequires: python-devel >= 2.4

%description
VTE is a terminal emulator widget for use with GTK+

%package utils
Summary: VTE utilities and test programs
Group: Terminals
Requires: lib%name = %version-%release

%description utils
Utilities, samples and test programs distributed with VTE, a terminal
emulator widget for use with GTK+.

%package -n lib%name
Summary: Terminal emulator widget library for use with GTK+
Group: System/Libraries
Requires: libgtk+2 >= %gtk_ver

%description -n lib%name
VTE is a terminal emulator widget for use with GTK+.
This package contains the VTE shared libraries.

%package -n lib%name-devel
Summary: Development files for VTE
Group: Development/GNOME and GTK+
Requires: lib%name = %version-%release
Requires: libgtk+2-devel >= %gtk_ver

%description -n lib%name-devel
VTE is a terminal emulator widget for use with GTK+. This package
contains the files needed for building applications using VTE.

%package -n lib%name-devel-doc
Summary: Development documentation for VTE
Group: Development/GNOME and GTK+
Conflicts: libvte-devel < 0.11.21-alt1

%description -n lib%name-devel-doc
API documentation for the VTE library.
VTE is a terminal emulator widget for use with GTK+.

%if_enabled static
%package -n lib%name-devel-static
Summary: Static libraries for VTE
Group: Development/GNOME and GTK+
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
VTE is a terminal emulator widget for use with GTK+. This package
contains the libraries needed for building applications statically
linked with VTE.
%endif # enabled static

%package -n python-module-%name
Summary: Python bindings for VTE
Group: Development/Python
Provides: vte-python
Obsoletes: vte-python
Requires: lib%name = %version-%release
Requires: python = %__python_version
Requires: python-module-pygtk

%description -n python-module-%name
VTE is a terminal emulator widget for use with GTK+. This package
contains bindings to VTE for the Python scripting language.

%define helperdir %_libdir/%name

%prep
%setup -q
%patch -p1
#%patch1

%build
export PYTHON=%__python
%configure \
--disable-dependency-tracking \
--libexecdir=%helperdir \
--without-glX \
%if_enabled pty_helper
--enable-gnome-pty-helper \
%else
--disable-gnome-pty-helper \
%endif
--enable-shared \
%{subst_enable static}

%make_build

%install
%make_install DESTDIR=%buildroot install

%__install -d -m755 %buildroot%pkgdocdir
%__install -p -m644 AUTHORS ChangeLog MAINTAINERS NEWS README %buildroot%pkgdocdir/
%__bzip2 %buildroot%pkgdocdir/ChangeLog
%__ln_s %_licensedir/LGPL-2 %buildroot%pkgdocdir/COPYING

%__install -p -m644 doc/utmpwtmp.txt doc/boxes.txt \
   %buildroot%pkgdocdir/
%__install -p -m644 src/iso2022.txt \
   %buildroot%pkgdocdir/
%__install -p -m644 doc/openi18n/*.txt \
   %buildroot%pkgdocdir/

# Remove unpackaged files

find %buildroot -type f -name '*.la' -delete

%find_lang %name

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%files
%_bindir/*

%files utils
%helperdir/*
%if_enabled pty_helper
%exclude %helperdir/gnome-pty-helper
%endif

%files -n lib%name -f %name.lang
%pkgdocdir/AUTHORS
%pkgdocdir/COPYING
%pkgdocdir/ChangeLog.bz2
%pkgdocdir/MAINTAINERS
%pkgdocdir/NEWS
%pkgdocdir/README
%_libdir/*.so.*
%_datadir/%name
%if_enabled pty_helper
%dir %helperdir
%attr(2711,root,utempter) %helperdir/gnome-pty-helper
%endif

%files -n lib%name-devel
%pkgdocdir/*.txt
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*

%files -n lib%name-devel-doc
%doc %_datadir/gtk-doc/html/*

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif # enabled static

%files -n python-module-%name
%python_sitelibdir/gtk-2.0/*.so

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin