Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 72cb03f5625f513a5fffd861e7721dce > files > 2

xzgv-0.8-1mdk.src.rpm

Summary:	A GTK+/Imlib-based picture viewer for X
Name:		xzgv
Version:	0.8
Release:	1mdk
License:	GPL
Group:		Graphics

Source0:	%{name}-%{version}.tar.bz2

URL:		http://xzgv.browser.org/#download
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
#ExclusiveArch:	%ix86
BuildRequires:	jpeg-devel tiff-devel imlib-devel

%description
xzgv is a picture viewer for X, with a thumbnail-based file selector. 
It uses GTK+ and Imlib. Most file formats are supported, and the thumbnails 
used are compatible with xv, zgv, and the Gimp. 

xzgv differs from other picture viewers for X in that it uses one window 
for both the file selector and viewer, it (unlike xv) allows both scrolling 
and fit-to-window methods of viewing large pictures, and it (unlike xv and
some others) doesn't ever mangle the picture's aspect ratio without you telling
it to. It also provides extensive keyboard support; if you prefer using the 
keyboard, this is almost certainly the best viewer for you. But it doesn't 
skimp on the mousey stuff, either - you can click on a picture to view it, 
drag the picture around to scroll (or use the scrollbars), it has menus, all 
that. So anyway, it's just terribly great. :-) 

%prep
%setup -q

%build
#(peroyvind) does amd64 and ia64 support mmx?
%ifarch %ix86 amd64 ia64
%make CFLAGS="$RPM_OPT_FLAGS -DINTERP_MMX -DBACKEND_IMLIB1 `gtk-config --cflags`"
%else
%make CFLAGS="$RPM_OPT_FLAGS -DBACKEND_IMLIB1 `gtk-config --cflags`"
%endif

%install
make prefix=%buildroot/%_prefix \
     BINDIR=%buildroot/%_bindir \
     MANDIR=%buildroot/%_mandir/man1 \
     INFODIR=%buildroot/%_infodir install

install -d %buildroot/%_menudir
cat > %buildroot/%_menudir/%name <<EOF
?package(%name):\
command="xzgv"\
title="Xzgv"\
longtitle="Image viewer"\
needs="x11"\
icon="graphics_section.png"\
section="Multimedia/Graphics"
EOF
 
chmod 0644 README COPYING TODO ChangeLog
 
%post
%update_menus
%_install_info %name.info
 
%postun
%clean_menus
%_remove_install_info %name.info

%clean
rm -fr %buildroot

%files
%defattr (-,root,root)
%doc README COPYING TODO ChangeLog
%_bindir/*
%_menudir/*
%_mandir/man1/*
%_infodir/*.bz2
# Laurent 0.7-3 don"t add dir conflict with info-install
#%_infodir/dir

%changelog
* Thu Jan 08 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.8-1mdk
- 0.8
- fix buildrequires (lib64..)
- compile with $RPM_OPT_FLAGS
- fix build on other archs

* Sun May 04 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.7-4mdk
- rebuild for rpm 4.2

* Mon Jan 21 2002 Laurent MONTEL <lmontel@mandrakesoft.cpm> 0.7-3mdk
- Fix menu entry
- Add missing files

* Fri Nov 30 2001 Yves Duret <yduret@mandrakesoft.com> 0.7-2mdk
- rebuild against libpng3
- really fix doc perm aka etienne sux

* Thu Aug 23 2001 Etienne Faure <etienne@mandrakesoft.com> 0.7-1mdk
- 0.7
- fix doc permissions

* Sat Jan 06 2001 David BAUDENS <baudens@mandrakesoft.com> 0.6-2mdk
- ExclusiveArch: %%ix86
- Fix group
- %%setup -q
- Fix %%postun
- Spec clean up

* Mon Nov 06 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.6-1mdk
- new in contribs
- add menu entry