%define name zgv %define version 5.9 %define release %mkrel 3 Summary: Console-based picture viewer for many graphics formats Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{version}.tar.bz2 Patch1: zgv-5.6.rgb-path.patch License: GPL Group: Graphics BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} BuildRequires: svgalib-devel jpeg-devel png-devel tiff-devel %description Zgv is a picture viewer for the linux console (svgalib), with a thumbnail-based file selector. Zgv is one of the most powerful console-based image viewers available. It uses a thumbnail-based file selector, handles both scrolling and fit-to-window, and can be driven completely from the keyboard (although it also has pretty spiffy mouse features for a console app). Zgv is closely related to xzgv, so if you're familiar with xzgv, zgv should be a piece of cake. If you need a good image viewer that works from the linux console, you probably want zgv. %prep %setup -q %patch1 -p0 -b .rgb-path %build %make %install rm -rf $RPM_BUILD_ROOT # Wow, this is an ugly hack. Thanks to the Conectiva packagers # for getting this to work at all.... mkdir -p $RPM_BUILD_ROOT/{%{_bindir},%{_infodir},%{_mandir}/man1} mv src/Makefile src/Makefile.old cat src/Makefile.old | sed -e "\ s@ -o root -g root@@g" > src/Makefile mv etc/bin.makefile etc/bin.makefile.old cat etc/bin.makefile.old | sed -e "\ s@ -o root -g root@@g" > etc/bin.makefile %makeinstall \ BINDIR=$RPM_BUILD_ROOT/%{_bindir} \ INFODIR=$RPM_BUILD_ROOT/%{_infodir} \ MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 chmod 644 doc/sample.zgvrc cd $RPM_BUILD_ROOT/%{_infodir} mv zgv zgv.info for a in 1 2 3 4 ; do mv zgv-$a zgv-$a.info done %clean rm -rf $RPM_BUILD_ROOT %post %install_info %preun %remove_info %files %defattr(-,root,root) %doc ChangeLog AUTHORS NEWS README README.fonts INSTALL TODO COPYING SECURITY doc/sample.zgvrc %{_mandir}/man1/%{name}.1.* %{_infodir}/%{name}* %{_bindir}/%{name} %changelog * Wed Sep 09 2009 Thierry Vignaud <tvignaud@mandriva.com> 5.9-3mdv2010.0 + Revision: 435380 - rebuild * Tue Jun 17 2008 Thierry Vignaud <tvignaud@mandriva.com> 5.9-2mdv2009.0 + Revision: 222761 - buildrequires tiff-devel - BuildRequires png-devel - BuildRequires jpeg-devel - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Fri Aug 04 2006 Olivier Thauvin <nanardon@mandriva.org> + 08/04/06 00:31:27 (51699) - 5.9 * Fri Aug 04 2006 Olivier Thauvin <nanardon@mandriva.org> + 08/04/06 00:24:31 (51694) - from andi payn <payn@myrealbox.com> - Initial mandriva package loosely based on Claudio Matsuoka's Connectiva package