File cmatrix.spec of Package cmatrix
#
# spec file for package cmatrix
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: cmatrix
Version: 2.0
Release: 1
Summary: Terminal based "The Matrix" like implementation.
License: GPL
URL: https://github.com/abishekvashok/cmatrix
Source: cmatrix-2.0.tar.gz
BuildRequires: cmake ncurses-devel mkfontdir
%description
CMatrix is based on the screensaver from The Matrix website. It shows text flying in andout in a terminal like as seen in "The Matrix" movie. It can scroll lines all at the same rate or asynchronously and at a user-defined speed.
%prep
%setup -n cmatrix
%build
%cmake
%cmake_build
%install
rm -rf %{buildroot}
%cmake_install
mkdir -p %{buildroot}%{_datadir}/fonts/misc
mkdir -p %{buildroot}%{_datadir}/kbd/consolefonts
install matrix.fnt %{buildroot}%{_datadir}/kbd/consolefonts
install matrix.psf.gz %{buildroot}%{_datadir}/kbd/consolefonts
install mtx.pcf %{buildroot}%{_datadir}/fonts/misc
mkfontdir %{buildroot}%{_datadir}/fonts/misc
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING INSTALL README.md
%{_bindir}/*
%{_datadir}/fonts/misc/*
%dir %{_datadir}/fonts/misc
%dir %{_datadir}/kbd
%dir %{_datadir}/kbd/consolefonts
%{_datadir}/kbd/consolefonts/*