c4a9d28
%global majorversion 1.10
3a974d4
3a974d4
Name:           nfoview
c4a9d28
Version:        1.10
2b894b0
Release:        4%{?dist}
3a974d4
Summary:        Viewer for NFO files
3a974d4
3a974d4
Group:          Applications/File
3a974d4
License:        GPLv3+
3a974d4
URL:            http://home.gna.org/nfoview/
0bb3a1c
Source0:        http://download.gna.org/nfoview/%{majorversion}/%{name}-%{version}.tar.bz2
3a974d4
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3a974d4
BuildArch:      noarch
3a974d4
c4a9d28
BuildRequires:  python3-devel
c4a9d28
BuildRequires:  python3-setuptools
c4a9d28
BuildRequires:  pygobject3-devel
3a974d4
3a974d4
BuildRequires:  desktop-file-utils
3a974d4
BuildRequires:  intltool
3a974d4
0bb3a1c
Requires:       shared-mime-info
fa29ac3
Requires:       hicolor-icon-theme
85ea940
Requires:       python3-gobject
3a974d4
c4d5f43
%if 0%{?fedora} >= 11
3a974d4
Requires:       terminus-fonts
3a974d4
%else
3a974d4
Requires:       terminus-font-x11
3a974d4
%endif
3a974d4
3a974d4
3a974d4
%description
3a974d4
NFO Viewer is a simple viewer for NFO files, which are "ASCII" art in
3a974d4
the CP437 codepage. The advantages of using NFO Viewer instead of a
3a974d4
text editor are preset font and encoding settings, automatic window
3a974d4
size and clickable hyperlinks.
3a974d4
3a974d4
3a974d4
%prep
3a974d4
%setup -q
3a974d4
3a974d4
3a974d4
%build
b8c35cc
%{__python3} setup.py build
3a974d4
3a974d4
3a974d4
%install
3a974d4
rm -rf %{buildroot}
b8c35cc
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
3a974d4
%find_lang %{name}
3a974d4
desktop-file-install                                        \
3a974d4
    --add-category="TextTools;"                             \
3a974d4
    --remove-category="Viewer;"                             \
3a974d4
    --delete-original                                       \
3a974d4
    --dir=%{buildroot}%{_datadir}/applications              \
3a974d4
    %{buildroot}%{_datadir}/applications/%{name}.desktop
3a974d4
3a974d4
3a974d4
%clean
3a974d4
rm -rf %{buildroot}
3a974d4
3a974d4
%post
3a974d4
update-desktop-database &> /dev/null || :
fa29ac3
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
fa29ac3
3a974d4
3a974d4
%postun
3a974d4
update-desktop-database &> /dev/null || :
fa29ac3
if [ $1 -eq 0 ] ; then
fa29ac3
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
fa29ac3
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fa29ac3
fi
fa29ac3
fa29ac3
fa29ac3
%posttrans
fa29ac3
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
3a974d4
3a974d4
3a974d4
%files -f %{name}.lang
3a974d4
%defattr(-,root,root,-)
f8753e7
%doc AUTHORS ChangeLog COPYING NEWS README TODO 
3a974d4
%{_mandir}/man*/%{name}.*
3a974d4
%{_bindir}/%{name}
3a974d4
%{_datadir}/%{name}/
b8c35cc
%{python3_sitelib}/%{name}/
b8c35cc
%{python3_sitelib}/%{name}*.egg-info
3a974d4
%{_datadir}/applications/%{name}.desktop
fa29ac3
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
3a974d4
3a974d4
3a974d4
%changelog
2b894b0
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-4
2b894b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2b894b0
2f0ed74
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3
2f0ed74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2f0ed74
85ea940
* Sun Dec 18 2011 Conrad Meyer <konrad@tylerc.org> - 1.10-2
85ea940
- Add missing Requires on python3-gobject (#765643)
85ea940
c4a9d28
* Sun Nov 13 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.10-1
c4a9d28
- BRs updated
c4a9d28
- Updated to new upstream version 1.10
c4a9d28
c4a9d28
* Thu Jun 02 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.9.5-1
Fabian Affolter df0b5f3
- Updated to new upstream version 1.9.5
Fabian Affolter df0b5f3
c4a9d28
* Wed Apr 06 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.9.4-1
Fabian Affolter bf895ab
- Updated to new upstream version 1.9.4
Fabian Affolter bf895ab
c4a9d28
* Sun Mar 27 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.9.3-1
Fabian Affolter 73fb2b2
- Updated to new upstream version 1.9.3
Fabian Affolter 73fb2b2
2cc42cb
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.2-2
2cc42cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2cc42cb
c4a9d28
* Fri Oct 08 2010 Fabian Affolter <mail@fabian-affolter.ch> - 1.9.2-1
0f5eb2d
- Updated to new upstream version 1.9.2
0f5eb2d
07ab539
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.9.1-2
07ab539
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
07ab539
0bb3a1c
* Sat Jun 26 2010 Christoph Wickert <cwickert@fedoraproject.org> - 1.9.1-1
0bb3a1c
- Update to 1.9.1
0bb3a1c
- Require shared-mime-info
0bb3a1c
c4a9d28
* Sun Oct 18 2009 Fabian Affolter <mail@fabian-affolter.ch> - 1.8-1
fa29ac3
- Updated to new upstream version 1.8
0bb3a1c
- The icons need now hicolor-icon-theme
fa29ac3
c4a9d28
* Tue Sep 29 2009 Fabian Affolter <mail@fabian-affolter.ch> - 1.7-1
41753d2
- Updated to new upstream version 1.7
41753d2
c4a9d28
* Thu Sep 17 2009 Fabian Affolter <mail@fabian-affolter.ch> - 1.6-1
6b9fe05
- Updated to new upstream version 1.6
6b9fe05
934e2b8
* Tue Aug 11 2009 Ville Skyttä <ville.skytta@iki.fi> - 1.5-3
934e2b8
- Use bzipped upstream tarball.
934e2b8
b5e18b6
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
b5e18b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b5e18b6
c4d5f43
* Mon May 11 2009 Christoph Wickert <cwickert@fedoraproject.org> - 1.5-1
c4d5f43
- Update to 1.5
c4d5f43
- Fix conditional comparison that caused broken deps in Fedora 9
c4d5f43
c4a9d28
* Sat May 02 2009 Fabian Affolter <mail@fabian-affolter.ch> - 1.4-3
3a974d4
- Small changes around the desktop file
3a974d4
c4a9d28
* Sat Apr 25 2009 Fabian Affolter <mail@fabian-affolter.ch> - 1.4-2
3a974d4
- Removed PKG-INFO from doc
3a974d4
- Fixed requiements
3a974d4
- Added update-desktop-database
3a974d4
- Fixed category for the .desktop file
3a974d4
- Added patch for German translation
3a974d4
c4a9d28
* Sun Apr 19 2009 Fabian Affolter <mail@fabian-affolter.ch> - 1.4-1
3a974d4
- Initial package for Fedora