File vte.spec of Package vte

#
# spec file for package vte (Version 0.22.5)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           vte
BuildRequires:  fdupes
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  python-devel
BuildRequires:  python-gtk-devel
BuildRequires:  ncurses-devel
BuildRequires:  translation-update-upstream
Url:            http://www.gnome.org
License:        GPLv2+
Group:          Development/Libraries/GNOME
AutoReqProv:    on
Version:        0.22.5
Release:        0.<RELEASE2>
Summary:        Terminal Emulator
Source:         ftp://ftp.gnome.org/pub/gnome/sources/vte/0.16/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM vte-CVE-2010-2713.patch CVE-2010-2713 bnc#621097 vuntz@opensuse.org
Patch0:         vte-CVE-2010-2713.patch
# PATCH-FIX-UPTREAM vte-CVE-2011-2198.patch bnc#699214 bgo#676090 CVE-2011-2198 vuntz@opensuse.org -- malicious escape sequences can cause memory exhaustion, taken from git
Patch1:         vte-CVE-2011-2198.patch
# PATCH-FIX-UPTREAM vte-CVE-2012-2738.patch bnc#772761 bgo#676090 CVE-2012-2738 vuntz@opensuse.org -- malicious escape sequences can cause denial of service, taken from git
Patch2:         vte-CVE-2012-2738.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         permissions
Requires:       %{name}-lang = %{version}
%py_requires

%description
VTE is a terminal emulator library that provides a terminal widget for
use with GTK+ 2.0 as well as handling of child process and terminal
emulation settings.



Authors:
--------
    Nalin Dahyabhai <nalin@redhat.com>

%package devel
License:        GPLv2+
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version} fontconfig-devel glib2-devel gtk2-devel ncurses-devel pango-devel xorg-x11-devel
Provides:       vte-doc = %{version}
Obsoletes:      vte-doc < %{version}

%description devel
VTE is an experimental terminal emulator widget for use with GTK+ 2.0. 
This package contains the files needed for building applications using
VTE.



Authors:
--------
    Nalin Dahyabhai <nalin@redhat.com>

%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%configure --with-pic\
	--libexecdir=%{_prefix}/lib/vte\
	--disable-static
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%find_lang %{name}
find %{buildroot} -type f -name "*.la" -exec %{__rm} -vf {} +
%fdupes $RPM_BUILD_ROOT

%post
/sbin/ldconfig
%run_permissions
%verifyscript
%verify_permissions -e %{_prefix}/lib/vte/gnome-pty-helper

%postun -p /sbin/ldconfig

%files 
%defattr(-,root,root)
%doc AUTHORS COPYING README NEWS ChangeLog 
%{_bindir}/*
%{_libdir}/*.so.*
%dir %{_libdir}/vte
%{_libdir}/vte/[a-fh-z]*
%{_datadir}/vte
%if "%{_libdir}" != "%{_prefix}/lib"
%dir %{_prefix}/lib/vte
%endif
%{_datadir}/pygtk/2.0/defs/vte.defs
%verify (not mode) %attr (2755, root, tty) %{_prefix}/lib/vte/gnome-pty-helper
%{py_sitedir}/gtk-2.0/*.so

%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%{_includedir}/vte
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/vte

%files lang -f %{name}.lang

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
openSUSE Build Service is sponsored by