File cool-retro-term.spec of Package cool-retro-term

# spec file for package cool-retro-term
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015, Martin Hauke <>
# 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

%define qmltermwidgetrevision 08958f7c83a7d05627f623b8904f3e79a0b7366b

Name:           cool-retro-term
Version:        1.0.1
Release:        0
Summary:        Terminal emulator which mimics old screens
License:        GPL-3.0+
Group:          System/X11/Terminals
# From git submodule by revision #
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Widgets)
Requires:       libqt5-qtgraphicaleffects
Requires:       libqt5-qtquickcontrols

cool-retro-term is a terminal emulator which tries to mimic the look and feel
of the old cathode tube screens. It has been designed to be eye-candy,
customizable, and reasonably lightweight.

%setup -q
rm -rf qmltermwidget
tar -xf %{SOURCE1}
mv qmltermwidget-%{qmltermwidgetrevision} qmltermwidget

mkdir build
cd build
qmake-qt5 QMAKE_CXXFLAGS+="%{optflags}" ..
make %{?_smp_mflags}

cd build
make install INSTALL_ROOT=%{buildroot}
mkdir -p %{buildroot}/%{_datadir}/applications/
install -Dpm 0644 ../cool-retro-term.desktop %{buildroot}/%{_datadir}/applications/cool-retro-term.desktop

%doc gpl-2.0.txt gpl-3.0.txt
%dir %{_datadir}/icons/hicolor/
%dir %{_datadir}/icons/hicolor/*
%dir %{_datadir}/icons/hicolor/*/*

openSUSE Build Service is sponsored by