File sakura.spec of Package sakura

# spec file for package sakura
# Copyright (c) 2017 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:           sakura
Version:        3.5.0
Release:        0
Summary:        Terminal Emulator based on the VTE Library
License:        GPL-2.0+
Group:          System/X11/Utilities
Patch0:         sakura-icon.patch
Patch1:         sakura-fix_pod2man.patch
# to convert SVG to PNG:
BuildRequires:  ImageMagick
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  gettext-devel
BuildRequires:  intltool
BuildRequires:  libstdc++-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(glib-2.0) >= 2.20
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(vte-2.91) >= 0.38

sakura is a vte-based terminal emulator. It aims to provide a terminal
emulator that only depends on GTK and VTE. It uses a notebook to allow
multiple tabs in the same window.


%setup -q
%patch0 -p1
mv terminal-tango.svg sakura.svg
convert -strip sakura.svg sakura.png
# replace hard-coded ICON_DIR
sed -i -r 's|^(\s*#define\s*ICON_DIR\s+").+("\s*)$|\1%{_datadir}/pixmaps\2|g' src/sakura.c


rm -rf "%{buildroot}%{_datadir}/doc"
%find_lang %{name} %{?no_lang_C}

%license GPL

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by