File fontedit.spec of Package fontedit

#
# spec file for package fontedit
#
# Copyright (c) 2023 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:           fontedit
Version:        0.0
Release:        0
Summary:        Convert desktop fonts to byte array for use in embedded systems displays
License:        GPL-3.0
URL:            https://kapusta.cc/2020/03/20/fontedit
Source0:        %{name}-%{version}.tar.gz
Patch0:         0001-Fix-new-gcc-build-errors.patch
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Network)
# BuildRequires:  dbus-1

%description
FontEdit is a desktop application that allows you to convert general-purpose fixed-width desktop fonts to byte array representation that's suitable for use in embedded systems displays.

%prep
%autosetup -p1

%build
# no cmake macros to be used as this causes extra libappbundle.so to be built
mkdir build
pushd build
cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
make %{?_smp_mflags}
popd

%check

%install
pushd build
%make_install
popd

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/
%{_datadir}/applications/*

%changelog
openSUSE Build Service is sponsored by