File termit.spec of Package termit

#
# spec file for package termit
#
# Copyright (c) 2018 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 http://bugs.opensuse.org/
#


Name:           termit
Version:        3.0
Release:        0
Summary:        Vte-based Terminal Emulator
License:        GPL-3.0+
Group:          System/X11/Terminals
URL:            https://wiki.github.com/nonstop/termit/
Source:         https://github.com/nonstop/termit/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:  cmake >= 2.6.0
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  gettext
BuildRequires:  gettext-devel
BuildRequires:  gtk3-devel
BuildRequires:  libstdc++-devel
BuildRequires:  lua-devel >= 5.1
BuildRequires:  make
BuildRequires:  pkgconfig
BuildRequires:  vte-devel >= 0.29
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif

%description
termit is a terminal emulator based on the vte library. It includes tabs,
bookmarks, and the ability to switch encodings.

%prep
%setup -q

%build
%cmake -DDEBUG=false
%make_jobs

%install
%cmake_install
rm -rf "%{buildroot}%{_datadir}/doc"
%if 0%{?suse_version}
%suse_update_desktop_file -r termit System TerminalEmulator
%endif

%find_lang termit

%files -f termit.lang
%doc ChangeLog COPYING TODO
%doc doc/README
%doc doc/rc.lua.example
%doc doc/lua_api.txt
%dir %{_sysconfdir}/xdg/termit
%config %{_sysconfdir}/xdg/termit/colormaps.lua
%config %{_sysconfdir}/xdg/termit/utils.lua
%config %{_sysconfdir}/xdg/termit/rc.lua
%{_bindir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1%{ext_man}

%changelog