# # _with_pcd - with Kodak PhotoCD support Summary: console viewer for many graphics formats Summary(de): Konsolenbetrachter für viele Grafikformate Summary(fr): Visualiseur d'image en mode console, pour de nombreux formats graphiques Summary(pl): Konsolowa przegl±darka obrazków w ró¿nych formatach Summary(tr): Birçok resim formatını görüntüleyebilen konsol aracı Name: zgv Version: 5.2 Release: 4 License: GPL Group: Applications/Graphics Group(de): Applikationen/Grafik Group(pl): Aplikacje/Grafika Source0: ftp://metalab.unc.edu/pub/Linux/apps/graphics/viewers/svga/%{name}-%{version}.tar.gz Patch0: %{name}-DESTDIR.patch Patch1: %{name}-info.patch Patch2: %{name}-tifftopnm.patch BuildRequires: svgalib-devel BuildRequires: libjpeg-devel BuildRequires: libpng >= 1.0.8 BuildRequires: zlib-devel BuildRequires: gawk %{?_with_pcd:BuildRequires: libpcd-devel} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Exclusivearch: %{ix86} alpha %description Zgv is a picture viewer capable of displaying GIF files as defined by CompuServe, with the exceptions listed in the RESTRICTIONS section. It is also capable of displaying JPEG/JFIF files using the Independant JPEG Group's JPEG software, PBM/PGM/PPM files as used by pbmplus and netpbm, Microsoft Windows and OS/2 BMP files, Targa (TGA) files, the new PNG format%{?_with_pcd: and PhotoCD}. It can display TIFF files if you install netpbm-progs (tifftopnm). %description -l de zgv ist ein Bild-Viewer, der GIF-Dateien nach der CompuServe-Definition anzeigen kann, abgesehen von den Ausnahmen im Teil RESTRICTIONS. Ferner kann er JPEG/JFIF-Dateien unter Verwendung der JPEG-Software der unabhängigen JPEG-Group, PBM/PGM/PPM-Dateien wie sie pbmplus und netpbm benutzen, sowie Microsoft Windows und OS/2 BMB-Dateien, Targa (TGA) und das neue PNG-Format anzeigen. %description -l fr Zgv est un visualisateur de fichiers GIF tels que ceux qui sont définis par CompuServe, avec les exceptions listées dans la section RESTRICTIONS. Il peut aussi afficher les fichiers JPEG/JTIF utilisés par le logiciel JPEG de l'Independant JPEG Group, les fichiers PBM/PGM/PPM utilisés par pbmplus et netpbm, les fichiers BMP de Microsoft Windows et OS/2, les fichiers Targa (TGA) et le nouveau format PNG. %description -l pl Zgv potrafi wy¶wietlaæ obrazki w formacie CompuServe GIF (z wyj±tkami opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z Microsoft Windows i OS/2), Targa (TGA), PNG%{?_with_pcd: i PhotoCD}. Mo¿e te¿ wy¶wietlaæ pliki TIFF po zainstalowaniu pakietu netpbm-progs (program tifftopnm). %description -l tr Zgv, konsol ortamından CompuServe'in GIF formatı (RESTRICTIONS ile belirtilenler dışında), JPEG/JFIF, PGM/PBM/PPM, Bitmap (BMP), Targa (TGA) ve yeni PNG formatlarındaki resimleri görüntüleyebilmektedir. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %if %{?_with_pcd:1}%{!?_with_pcd:0} sed -e 's@#\(PCDDEF=.*\)@\1@' config.mk > config.mk.new mv -f config.mk.new config.mk %endif %build %{__make} all OPTFLAGS="%{rpmcflags}" \ INCDIRS="-I%{_includedir}" \ RGB_DB="%{_prefix}/X11R6/lib/X11/rgb.txt" %{__make} info %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_sysconfdir} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ BINDIR=%{_bindir} \ MANDIR=%{_mandir}/man1 \ INFODIR=%{_infodir} install doc/sample.zgvrc $RPM_BUILD_ROOT%{_sysconfdir}/zgv.conf gzip -9nf TODO README README.fonts ChangeLog NEWS %clean rm -rf $RPM_BUILD_ROOT %post [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %postun [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %files %defattr(644,root,root,755) %doc {README,README.fonts,ChangeLog,TODO,NEWS}.gz %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/zgv.conf %attr(755,root,root) %{_bindir}/%{name} %{_mandir}/man1/* %{_infodir}/*