3 %bcond_with pcd # with Kodak PhotoCD support
4 %bcond_without svga # don't build svgalib version
5 %bcond_without sdl # don't build SDL version
7 Summary: Console viewer for many graphics formats
8 Summary(de): Konsolenbetrachter für viele Grafikformate
9 Summary(es): Visualizador para muchos formatos de gráficos (consola)
10 Summary(fr): Visualiseur d'image en mode console, pour de nombreux formats graphiques
11 Summary(pl): Konsolowa przegl±darka obrazków w ró¿nych formatach
12 Summary(pt_BR): Visualizador para muitos formatos de gráficos (console)
13 Summary(uk): ëÏÎÓÏÌØÎÁ ÐÒÏÇÒÁÍÁ ÐÅÒÅÇÌÑÄÕ ÂÁÇÁÔØÏÈ ÇÒÁƦÞÎÉÈ ÆÏÒÍÁÔ¦×
14 Summary(tr): Birçok resim formatýný görüntüleyebilen konsol aracý
15 Summary(ru): ëÏÎÓÏÌØÎÁÑ ÐÒÏÇÒÁÍÍÁ ÐÒÏÓÍÏÔÒÁ ÍÎÏÖÅÓÔ×Á ÇÒÁÆÉÞÅÓËÉÈ ÆÏÒÍÁÔÏ×
20 Group: Applications/Graphics
21 Source0: ftp://metalab.unc.edu/pub/Linux/apps/graphics/viewers/svga/%{name}-%{version}.tar.gz
22 # Source0-md5: 016bb8f3b9f3d1aa01a837dbbb67c5dc
23 Patch0: %{name}-DESTDIR.patch
24 Patch1: %{name}-info.patch
25 Patch2: %{name}-Dkey.patch
26 Patch3: %{name}-home_etc.patch
27 # http://www.svgalib.org/rus/zgv/zgv-5.8-integer-overflow-fix.dif
28 Patch4: %{name}-CAN-2004-0999.patch
29 %{?with_sdl:BuildRequires: SDL-devel}
31 BuildRequires: libjpeg-devel
32 BuildRequires: libpng-devel >= 1.0.8
33 BuildRequires: libtiff-devel
34 %{?with_svga:BuildRequires: svgalib-devel}
35 BuildRequires: texinfo
36 BuildRequires: zlib-devel
37 %{?with_pcd:BuildRequires: libpcd-devel}
38 Requires: %{name}-common = %{version}-%{release}
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %{!?with_sdl:%{!?with_svga:%{error: at least one version must be enabled} exit 1}}
44 Zgv is a picture viewer capable of displaying GIF files as defined by
45 CompuServe, with the exceptions listed in the RESTRICTIONS section. It
46 is also capable of displaying JPEG/JFIF files using the Independant
47 JPEG Group's JPEG software, PBM/PGM/PPM files as used by pbmplus and
48 netpbm, Microsoft Windows and OS/2 BMP files, Targa (TGA) and TIFF
49 files, the new PNG format%{?with_pcd: and PhotoCD}.
51 This package contains svgalib-based interface.
54 zgv ist ein Bild-Viewer, der GIF-Dateien nach der
55 CompuServe-Definition anzeigen kann, abgesehen von den Ausnahmen im
56 Teil RESTRICTIONS. Ferner kann er JPEG/JFIF-Dateien unter Verwendung
57 der JPEG-Software der unabhängigen JPEG-Group, PBM/PGM/PPM-Dateien wie
58 sie pbmplus und netpbm benutzen, sowie Microsoft Windows und OS/2
59 BMB-Dateien, Targa (TGA) und das neue PNG-Format anzeigen.
62 Zgv es un visualizador de imágenes capaz de enseñar archivos tipo
63 "GIF" como las definidas por la CompuServe. También es capaz de
64 enseñar archivos JPEG/JFIF usando "Independant JPEG Group JPEG
65 software", archivos PBM/PGM/PPM como los usados por la pbmplus y
66 netpbm, archivos Microsoft Windows y OS/2 BMP, archivos Targa (TGA), y
70 Zgv est un visualisateur de fichiers GIF tels que ceux qui sont
71 définis par CompuServe, avec les exceptions listées dans la section
72 RESTRICTIONS. Il peut aussi afficher les fichiers JPEG/JTIF utilisés
73 par le logiciel JPEG de l'Independant JPEG Group, les fichiers
74 PBM/PGM/PPM utilisés par pbmplus et netpbm, les fichiers BMP de
75 Microsoft Windows et OS/2, les fichiers Targa (TGA) et le nouveau
79 Zgv potrafi wy¶wietlaæ obrazki w formacie CompuServe GIF (z wyj±tkami
80 opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z
81 Microsoft Windows i OS/2), Targa (TGA), TIFF, PNG%{?with_pcd: i PhotoCD}.
83 Ten pakiet zawiera interfejs korzystajacy z biblioteki svgalib.
86 Zgv é um visualizador de imagens capaz de mostrar arquivos tipo "GIF"
87 como as definidas pela CompuServe. Ele também é capaz de mostrar
88 arquivos JPEG/JFIF usando o "Independent JPEG Group JPEG software",
89 arquivos PBM/PGM/PPM como os usados pela pbmplus e netpbm, arquivos
90 Microsoft Windows e OS/2 BMP, arquivos Targa (TGA), e o novo formato
94 Zgv - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ ÐÒÏÓÍÏÔÒÁ ÉÚÏÂÒÁÖÅÎÉÊ, ËÏÔÏÒÁÑ ÐÏÄÄÅÒÖÉ×ÁÅÔ
95 ÐÏËÁÚ ÆÁÊÌÏ× × ÆÏÒÍÁÔÁÈ GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA,
96 PCX É MRF ÎÁ VGA É SVGA ÄÉÓÐÌÅÑÈ. Zgv ÍÏÖÅÔ ÔÁËÖÅ ÐÏËÁÚÙ×ÁÔØ
97 ÍÉÎÉ-ËÏÐÉÉ ÉÚÏÂÒÁÖÅÎÉÊ (thumbnails). Zgv ÏÓÎÏ×Ù×ÁÅÔÓÑ ÎÁ svgalib,
98 ÐÏÜÔÏÍÕ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ zgv ×ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÅÅ ÕÓÔÁÎÏ×ÉÔØ.
101 Zgv, konsol ortamýndan CompuServe'in GIF formatý (RESTRICTIONS ile
102 belirtilenler dýþýnda), JPEG/JFIF, PGM/PBM/PPM, Bitmap (BMP), Targa
103 (TGA) ve yeni PNG formatlarýndaki resimleri görüntüleyebilmektedir.
106 Zgv - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ ÐÅÒÅÇÌÑÄÕ ÚÏÂÒÁÖÅÎØ, ÑËÁ ЦÄÔÒÉÍÕ¤ ÐÏËÁÚ ÆÁÊ̦×
107 × ÆÏÒÍÁÔÁÈ GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA, PCX ¦ MRF ÎÁ
108 VGA ÔÁ SVGA ÄÉÓÐÌÅÑÈ. Zgv ÍÏÖÅ ÔÁËÏÖ ÐÏËÁÚÕ×ÁÔÉ Í¦Î¦-ËÏЦ§ ÚÏÂÒÁÖÅÎØ
109 (thumbnails). Zgv ÂÁÚÕ¤ÔØÓÑ ÎÁ svgalib, ÔÏÍÕ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ zgv ×ÁÍ
110 ÎÅÏÂȦÄÎÏ §§ ×ÓÔÁÎÏ×ÉÔÉ,
113 Summary: Common files for both ZGV frontends
114 Summary(pl): Pakiet wspólny dla obu interfejsów ZGV
115 Group: Applications/Graphics
116 Requires: /usr/X11R6/lib/X11/rgb.txt
119 Common files for both ZGV frontends.
121 %description common -l pl
122 Pakiet wspólny dla obu interfejsów ZGV.
125 Summary: SDL viewer for many graphics formats
126 Summary(pl): Oparta na SDL przegl±darka obrazków w ró¿nych formatach
127 Group: Applications/Graphics
128 Requires: %{name}-common = %{version}-%{release}
131 Zgv is a picture viewer capable of displaying GIF files as defined by
132 CompuServe, with the exceptions listed in the RESTRICTIONS section. It
133 is also capable of displaying JPEG/JFIF files using the Independant
134 JPEG Group's JPEG software, PBM/PGM/PPM files as used by pbmplus and
135 netpbm, Microsoft Windows and OS/2 BMP files, Targa (TGA) and TIFF
136 files, the new PNG format%{?with_pcd: and PhotoCD}.
138 This package contains SDL-based interfeace.
140 %description sdl -l pl
141 Zgv potrafi wy¶wietlaæ obrazki w formacie CompuServe GIF (z wyj±tkami
142 opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z
143 Microsoft Windows i OS/2), Targa (TGA), TIFF, PNG%{?with_pcd: i PhotoCD}.
145 Ten pakiet zawiera interfejs korzystajacy z biblioteki SDL.
156 sed -e 's@#\(PCDDEF=.*\)@\1@' config.mk > config.mk.new
157 mv -f config.mk.new config.mk
163 OPTFLAGS="%{rpmcflags}" \
164 RGB_DB="/usr/X11R6/lib/X11/rgb.txt" \
165 RCFILE="%{_sysconfdir}/zgv.conf" \
168 %{?with_sdl:mv -f src/zgv zgv-svga}
169 %{?with_sdl:%{__make} clean}
174 OPTFLAGS="%{rpmcflags}" \
176 RGB_DB="/usr/X11R6/lib/X11/rgb.txt" \
177 RCFILE="%{_sysconfdir}/zgv.conf" \
184 rm -rf $RPM_BUILD_ROOT
185 install -d $RPM_BUILD_ROOT%{_sysconfdir}
188 DESTDIR=$RPM_BUILD_ROOT \
190 MANDIR=%{_mandir}/man1 \
191 INFODIR=%{_infodir} \
192 %{?with_sdl:BACKEND=SDL}
194 %{?with_svga:%{?with_sdl:install zgv-svga $RPM_BUILD_ROOT%{_bindir}/zgv}}
195 %{?with_sdl:echo '.so zgv.1' > $RPM_BUILD_ROOT%{_mandir}/man1/zgv-sdl.1}
197 sed -e "s@/usr/local/etc@%{_sysconfdir}@g" doc/sample.zgvrc >$RPM_BUILD_ROOT%{_sysconfdir}/zgv.conf
200 rm -rf $RPM_BUILD_ROOT
203 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
206 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_bindir}/zgv
215 %defattr(644,root,root,755)
216 %doc AUTHORS ChangeLog NEWS README* TODO
217 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/zgv.conf
218 %{_mandir}/man1/zgv.1*
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_bindir}/zgv-sdl
225 %{_mandir}/man1/zgv-sdl.1*