File nfoview.spec of Package nfoview
#
# spec file for package nfoview
#
# Copyright (c) 2012 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
Name: nfoview
Version: 1.9.5
Release: 0
License: GPL-3.0
Summary: Simple Viewer for NFO Files
Url: http://home.gna.org/nfoview/
Group: Productivity/Text/Utilities
Source0: http://download.gna.org/nfoview/1.9/nfoview-1.9.5.tar.gz
# PATCH-FEATURE-OPENSUSE nfoview-1.9.5-font.patch lazy.kent@opensuse.org -- correct font name and size
Patch0: nfoview-1.9.5-font.patch
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
%if 0%{?suse_version} >= 1210
BuildRequires: python-distribute
%else
BuildRequires: python-setuptools
%endif
BuildRequires: update-desktop-files
Requires: python-gtk
Recommends: %{name}-lang
Recommends: terminus-font
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%py_requires
%description
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.
%lang_package
%prep
%setup -q
%patch0
%build
%install
python setup.py install \
--root=%{buildroot} \
--prefix=%{_prefix}
%find_lang %{name}
%suse_update_desktop_file -r %{name} Office Viewer
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*
%doc %{_mandir}/man?/*
%{python_sitelib}/%{name}
%{python_sitelib}/%{name}-%{version}-py%{py_ver}.egg-info
%files lang -f %{name}.lang
%changelog