File charging-sdl.spec of Package charging-sdl

#
# spec file for package charging-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:           charging-sdl
Version:        0.1~git20191118.9235fd1
Release:        0
Summary:        Charging application for the initramfs based on SDL2
License:        MIT
#Git-Clone:     https://gitlab.com/postmarketOS/charging-sdl.git
URL:            https://wiki.postmarketos.org/wiki/charging-sdl
Source:         %{name}-%{version}.tar.xz
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(sdl2)

%description
Display the charging status when the device is powered on in "charge mode".
It is written in C and uses SDL2/SDL_power to query the battery information.

%prep
%setup -q

%build
%make_build

%install
install -Dm 0755 charging_sdl %{buildroot}/%{_bindir}/charging_sdl

%files
%license LICENSE
%doc README.md
%{_bindir}/charging_sdl

%changelog
openSUSE Build Service is sponsored by