File osk-sdl.spec of Package osk-sdl
#
# spec file for package osk-sdl
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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: osk-sdl
Version: 0.66
Release: 0
Summary: Lightweight On-Screen-Keyboard based on SDL2
License: GPL-3.0-or-later
Group: System/Console
#Git-Clone: https://gitlab.com/postmarketOS/osk-sdl.git
URL: https://wiki.postmarketos.org/wiki/Osk-sdl
Source: https://gitlab.com/postmarketOS/osk-sdl/-/archive/%{version}/%{name}-%{version}.tar.bz2
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: scdoc
## SECTION test requirements
#BuildRequires: xvfb-run
#BuildRequires: xorg-x11-server-extra
#BuildRequires: xdotool
## /SECTION
BuildRequires: pkgconfig(SDL2_ttf)
BuildRequires: pkgconfig(libcryptsetup)
BuildRequires: pkgconfig(sdl2)
Requires: dejavu-fonts
%description
This keyboard is designed to unlock encrypted root partitions on boot
on mobile devices. It is automatically launched on boot, allowing the
user to enter their disk encryption password.
%prep
%setup -q
sed -i 's|%{_datadir}/fonts/ttf-dejavu/DejaVuSans.ttf|%{_datadir}/fonts/truetype/DejaVuSans.ttf|g' osk.conf
%build
%meson
%meson_build
%install
%meson_install
%check
# FIXME: Skip for now
#%%meson_test
%files
%license LICENSE
%doc README.md
%config %{_sysconfdir}/osk.conf
%{_bindir}/osk-sdl
%{_mandir}/man1/osk-sdl.1%{?ext_man}
%{_mandir}/man5/osk.conf.5%{?ext_man}
%changelog