File nfoview.spec of Package nfoview

# spec file for package nfoview
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

Name:           nfoview
Version:        1.23
Release:        0
Summary:        Simple Viewer for NFO Files
License:        GPL-3.0+
Group:          Productivity/Text/Utilities
BuildRequires:  gettext
BuildRequires:  hicolor-icon-theme
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  update-desktop-files
Requires(post): hicolor-icon-theme
Requires(post): update-desktop-files
Requires(postun): hicolor-icon-theme
Requires(postun): update-desktop-files
Recommends:     %{name}-lang
Recommends:     terminus-font
BuildArch:      noarch

NFO Viewer 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 and encoding settings, automatic window size and
clickable hyperlinks.


%setup -q

python3 build

python3 install --root=%{buildroot} --prefix=%{_prefix}

%suse_update_desktop_file -r %{name} Office Viewer

%find_lang %{name}

%if 0%{?suse_version} < 1330


%dir %{_datadir}/metainfo

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by