File bp-nfoview.spec of Package bp-nfoview

#
# spec file for package bp-nfoview
#
# Copyright (c) 2019-2025, 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 http://bugs.opensuse.org/
#


Name:           bp-nfoview
Version:        0.4.2
Release:        0
Summary:        A Simple NFO-Viewer
License:        GPL-2.0-or-later
Group:          Productivity/Text/Editors
URL:            https://github.com/brainpower/bp-nfoview
#Git-Clone:     https://github.com/brainpower/bp-nfoview.git
Source:         https://github.com/brainpower/bp-nfoview/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  meson
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt6Core)
BuildRequires:  pkgconfig(Qt6Widgets)
BuildRequires:  pkgconfig(Qt6Core5Compat)

%description
bp-nfoview is a simple viewer for NFO files, which are "ASCII" art in
the CP437 codepage. The advantages of using NFO Viewer instead of a
text editor are preset font, color and encoding settings.

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install
%suse_update_desktop_file -r %{name} "Utility;TextEditor"

%files
%license LICENSES/GPL-2.0-or-later.txt
%doc README.md
%{_bindir}/bp-nfoview
%{_datadir}/applications/bp-nfoview.desktop
%{_datadir}/pixmaps/bp-nfoview.png

%changelog
openSUSE Build Service is sponsored by