6b9fe0
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3a974d
3a974d
Name:           nfoview
6b9fe0
Version:        1.6
6b9fe0
Release:        1%{?dist}
3a974d
Summary:        Viewer for NFO files
3a974d
3a974d
Group:          Applications/File
3a974d
License:        GPLv3+
3a974d
URL:            http://home.gna.org/nfoview/
934e2b
Source0:        http://download.gna.org/nfoview/%{version}/%{name}-%{version}.tar.bz2
3a974d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3a974d
BuildArch:      noarch
3a974d
6b9fe0
BuildRequires:  python-devel
6b9fe0
BuildRequires:  python-setuptools
3a974d
3a974d
BuildRequires:  desktop-file-utils
3a974d
BuildRequires:  intltool
3a974d
3a974d
Requires:       pygtk2
3a974d
c4d5f4
%if 0%{?fedora} >= 11
3a974d
Requires:       terminus-fonts
3a974d
%else
3a974d
Requires:       terminus-font-x11
3a974d
%endif
3a974d
3a974d
3a974d
%description
3a974d
NFO Viewer is a simple viewer for NFO files, which are "ASCII" art in
3a974d
the CP437 codepage. The advantages of using NFO Viewer instead of a
3a974d
text editor are preset font and encoding settings, automatic window
3a974d
size and clickable hyperlinks.
3a974d
3a974d
3a974d
%prep
3a974d
%setup -q
3a974d
3a974d
3a974d
%build
3a974d
python setup.py build
3a974d
3a974d
3a974d
%install
3a974d
rm -rf %{buildroot}
3a974d
python setup.py install -O1 --skip-build --root=%{buildroot}
3a974d
%find_lang %{name}
3a974d
desktop-file-install                                        \
3a974d
    --add-category="TextTools;"                             \
3a974d
    --remove-category="Viewer;"                             \
3a974d
    --delete-original                                       \
3a974d
    --dir=%{buildroot}%{_datadir}/applications              \
3a974d
    %{buildroot}%{_datadir}/applications/%{name}.desktop
3a974d
3a974d
3a974d
%clean
3a974d
rm -rf %{buildroot}
3a974d
3a974d
3a974d
%post
3a974d
update-desktop-database &> /dev/null || :
3a974d
3a974d
%postun
3a974d
update-desktop-database &> /dev/null || :
3a974d
3a974d
3a974d
%files -f %{name}.lang
3a974d
%defattr(-,root,root,-)
3a974d
%doc AUTHORS ChangeLog COPYING CREDITS NEWS README TODO 
3a974d
%{_mandir}/man*/%{name}.*
3a974d
%{_bindir}/%{name}
3a974d
%{_datadir}/%{name}/
3a974d
%{python_sitelib}/%{name}/
3a974d
%{python_sitelib}/%{name}*.egg-info
3a974d
%{_datadir}/applications/%{name}.desktop
3a974d
3a974d
3a974d
%changelog
6b9fe0
* Thu Sep 17 2009 Fabian Affolter <fabian@bernewireless.net> - 1.6-1
6b9fe0
- Updated to new upstream version 1.6
6b9fe0
934e2b
* Tue Aug 11 2009 Ville Skyttä <ville.skytta@iki.fi> - 1.5-3
934e2b
- Use bzipped upstream tarball.
934e2b
b5e18b
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
b5e18b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b5e18b
c4d5f4
* Mon May 11 2009 Christoph Wickert <cwickert@fedoraproject.org> - 1.5-1
c4d5f4
- Update to 1.5
c4d5f4
- Fix conditional comparison that caused broken deps in Fedora 9
c4d5f4
3a974d
* Sat May 02 2009 Fabian Affolter <fabian@bernewireless.net> - 1.4-3
3a974d
- Small changes around the desktop file
3a974d
3a974d
* Sat Apr 25 2009 Fabian Affolter <fabian@bernewireless.net> - 1.4-2
3a974d
- Removed PKG-INFO from doc
3a974d
- Fixed requiements
3a974d
- Added update-desktop-database
3a974d
- Fixed category for the .desktop file
3a974d
- Added patch for German translation
3a974d
3a974d
* Sun Apr 19 2009 Fabian Affolter <fabian@bernewireless.net> - 1.4-1
3a974d
- Initial package for Fedora