File gnome-terminal.spec of Package gnome-terminal

# spec file for package gnome-terminal
# Copyright (c) 2016 SUSE LINUX 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

Name:           gnome-terminal
Version:        3.20.2
Release:        0
Summary:        GNOME Terminal
License:        GPL-3.0+ and LGPL-2.1+
Group:          System/X11/Terminals
# PATCH-FIX-UPSTREAM gnome-terminal-resize-fix.patch bgo#760944 -- Fix resizing of gnome-terminal, patches from upstream bug.
Patch0:         gnome-terminal-resize-fix.patch
# PATCH-FIX-UPSTREAM gnome-terminal-profile-editor-initialize-palette.patch bgo#768850 -- profile: editor: Properly initialize the first palette color
Patch1:         gnome-terminal-profile-editor-initialize-palette.patch
# PATCH-FIX-UPSTREAM gnome-terminal-notebook-avoid-crash-on-tab-DND.patch bgo#769161 -- notebook: avoid crash on tab DND
Patch2:         gnome-terminal-notebook-avoid-crash-on-tab-DND.patch
BuildRequires:  fdupes
# Needed for search provider. It should not be needed in my opionion, we have to take this up with upstream, or just provide search provider interface definition file as source.
BuildRequires:  gnome-shell
BuildRequires:  intltool >= 0.50.0
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  vala >= 0.26
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(dconf) >= 0.12.0
%if 0%{?sle_version}
BuildRequires:  pkgconfig(gconf-2.0) >= 2.31.3
BuildRequires:  pkgconfig(gio-2.0) >= 2.34.0
BuildRequires:  pkgconfig(glib-2.0) >= 2.42.0
BuildRequires:  pkgconfig(gsettings-desktop-schemas)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.19.8
BuildRequires:  pkgconfig(libnautilus-extension) >= 3.0.0
# Temp disabled as pcre support in vte got disabled, NB when reenabling, make sure to remove --without-pcre2 from configure.
#BuildRequires:  pkgconfig(libpcre2-8) >= 10.00
BuildRequires:  pkgconfig(uuid)
BuildRequires:  pkgconfig(vte-2.91) >= 0.44.2
BuildRequires:  pkgconfig(x11)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires(pre):  filesystem
%if 0%{?sle_version}
Requires(pre):  gconf2

This package provides the GNOME terminal emulator application.

%package -n gnome-shell-search-provider-gnome-terminal
Summary:        GNOME Terminal -- Search Provider for GNOME Shell
Group:          System/X11/Terminals
Supplements:    packageand(gnome-shell:%{name})
Requires:       %{name} = %{version}

%description -n gnome-shell-search-provider-gnome-terminal
This package contains a search provider to enable GNOME Shell to get
search results from GNOME Terminal.

%package -n nautilus-extension-terminal
Summary:        Nautilus Extension to Open Terminal in Folders
Group:          System/GUI/GNOME
Supplements:    packageand(nautilus:%{name})
# nautilus-open-terminal was merged into gnome-terminal source during 3.9 development.
Provides:       nautilus-open-terminal = %{version}
Obsoletes:      nautilus-open-terminal < %{version}

%description -n nautilus-extension-terminal
This is a nautilus extension that allows you to open a terminal in
arbitrary folders.

%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%configure \
    --disable-static \
    --without-pcre2 \
%if !0%{?sle_version}
    --disable-migration \
    --with-gtk=3.0 \
make %{?_smp_mflags}

find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
%suse_update_desktop_file org.gnome.Terminal
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}

rm -rf %{buildroot}



%defattr (-, root, root)
%doc %{_datadir}/help/C/%{name}/
%dir %{_datadir}/appdata
%if 0%{?sle_version}

%files -n gnome-shell-search-provider-gnome-terminal
%defattr (-, root, root)

%files -n nautilus-extension-terminal

%files lang -f %{name}.lang