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
10 Summary: Console viewer for many graphics formats
11 Summary(de): Konsolenbetrachter für viele Grafikformate
12 Summary(es): Visualizador para muchos formatos de gráficos (consola)
13 Summary(fr): Visualiseur d'image en mode console, pour de nombreux formats graphiques
14 Summary(pl): Konsolowa przegl±darka obrazków w ró¿nych formatach
15 Summary(pt_BR): Visualizador para muitos formatos de gráficos (console)
16 Summary(uk): ëÏÎÓÏÌØÎÁ ÐÒÏÇÒÁÍÁ ÐÅÒÅÇÌÑÄÕ ÂÁÇÁÔØÏÈ ÇÒÁƦÞÎÉÈ ÆÏÒÍÁÔ¦×
17 Summary(tr): Birçok resim formatýný görüntüleyebilen konsol aracý
18 Summary(ru): ëÏÎÓÏÌØÎÁÑ ÐÒÏÇÒÁÍÍÁ ÐÒÏÓÍÏÔÒÁ ÍÎÏÖÅÓÔ×Á ÇÒÁÆÉÞÅÓËÉÈ ÆÏÒÍÁÔÏ×
23 Group: Applications/Graphics
24 Source0: ftp://metalab.unc.edu/pub/Linux/apps/graphics/viewers/svga/%{name}-%{version}.tar.gz
25 # Source0-md5: 016bb8f3b9f3d1aa01a837dbbb67c5dc
26 Patch0: %{name}-DESTDIR.patch
27 Patch1: %{name}-info.patch
28 Patch2: %{name}-Dkey.patch
29 Patch3: %{name}-home_etc.patch
30 %{?with_sdl:BuildRequires: SDL-devel}
32 BuildRequires: libjpeg-devel
33 BuildRequires: libpng-devel >= 1.0.8
34 BuildRequires: libtiff-devel
35 %{?with_svga:BuildRequires: svgalib-devel}
36 BuildRequires: texinfo
37 BuildRequires: zlib-devel
38 %{?with_pcd:BuildRequires: libpcd-devel}
39 Requires: %{name}-common = %{version}
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %{!?with_sdl:%{!?with_svga:%{error: at least one version must be enabled} exit 1}}
45 Zgv is a picture viewer capable of displaying GIF files as defined by
46 CompuServe, with the exceptions listed in the RESTRICTIONS section. It
47 is also capable of displaying JPEG/JFIF files using the Independant
48 JPEG Group's JPEG software, PBM/PGM/PPM files as used by pbmplus and
49 netpbm, Microsoft Windows and OS/2 BMP files, Targa (TGA) and TIFF
50 files, the new PNG format%{?_with_pcd: and PhotoCD}.
52 This package contains svgalib-based interface.
55 zgv ist ein Bild-Viewer, der GIF-Dateien nach der
56 CompuServe-Definition anzeigen kann, abgesehen von den Ausnahmen im
57 Teil RESTRICTIONS. Ferner kann er JPEG/JFIF-Dateien unter Verwendung
58 der JPEG-Software der unabhängigen JPEG-Group, PBM/PGM/PPM-Dateien wie
59 sie pbmplus und netpbm benutzen, sowie Microsoft Windows und OS/2
60 BMB-Dateien, Targa (TGA) und das neue PNG-Format anzeigen.
63 Zgv es un visualizador de imágenes capaz de enseñar archivos tipo
64 "GIF" como las definidas por la CompuServe. También es capaz de
65 enseñar archivos JPEG/JFIF usando "Independant JPEG Group JPEG
66 software", archivos PBM/PGM/PPM como los usados por la pbmplus y
67 netpbm, archivos Microsoft Windows y OS/2 BMP, archivos Targa (TGA), y
71 Zgv est un visualisateur de fichiers GIF tels que ceux qui sont
72 définis par CompuServe, avec les exceptions listées dans la section
73 RESTRICTIONS. Il peut aussi afficher les fichiers JPEG/JTIF utilisés
74 par le logiciel JPEG de l'Independant JPEG Group, les fichiers
75 PBM/PGM/PPM utilisés par pbmplus et netpbm, les fichiers BMP de
76 Microsoft Windows et OS/2, les fichiers Targa (TGA) et le nouveau
80 Zgv potrafi wy¶wietlaæ obrazki w formacie CompuServe GIF (z wyj±tkami
81 opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z
82 Microsoft Windows i OS/2), Targa (TGA), TIFF, PNG%{?_with_pcd: i PhotoCD}.
84 Ten pakiet zawiera interfejs korzystajacy z biblioteki svgalib.
87 Zgv é um visualizador de imagens capaz de mostrar arquivos tipo "GIF"
88 como as definidas pela CompuServe. Ele também é capaz de mostrar
89 arquivos JPEG/JFIF usando o "Independent JPEG Group JPEG software",
90 arquivos PBM/PGM/PPM como os usados pela pbmplus e netpbm, arquivos
91 Microsoft Windows e OS/2 BMP, arquivos Targa (TGA), e o novo formato
95 Zgv - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ ÐÒÏÓÍÏÔÒÁ ÉÚÏÂÒÁÖÅÎÉÊ, ËÏÔÏÒÁÑ ÐÏÄÄÅÒÖÉ×ÁÅÔ
96 ÐÏËÁÚ ÆÁÊÌÏ× × ÆÏÒÍÁÔÁÈ GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA,
97 PCX É MRF ÎÁ VGA É SVGA ÄÉÓÐÌÅÑÈ. Zgv ÍÏÖÅÔ ÔÁËÖÅ ÐÏËÁÚÙ×ÁÔØ
98 ÍÉÎÉ-ËÏÐÉÉ ÉÚÏÂÒÁÖÅÎÉÊ (thumbnails). Zgv ÏÓÎÏ×Ù×ÁÅÔÓÑ ÎÁ svgalib,
99 ÐÏÜÔÏÍÕ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ zgv ×ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÅÅ ÕÓÔÁÎÏ×ÉÔØ.
102 Zgv, konsol ortamýndan CompuServe'in GIF formatý (RESTRICTIONS ile
103 belirtilenler dýþýnda), JPEG/JFIF, PGM/PBM/PPM, Bitmap (BMP), Targa
104 (TGA) ve yeni PNG formatlarýndaki resimleri görüntüleyebilmektedir.
107 Zgv - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ ÐÅÒÅÇÌÑÄÕ ÚÏÂÒÁÖÅÎØ, ÑËÁ ЦÄÔÒÉÍÕ¤ ÐÏËÁÚ ÆÁÊ̦×
108 × ÆÏÒÍÁÔÁÈ GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA, PCX ¦ MRF ÎÁ
109 VGA ÔÁ SVGA ÄÉÓÐÌÅÑÈ. Zgv ÍÏÖÅ ÔÁËÏÖ ÐÏËÁÚÕ×ÁÔÉ Í¦Î¦-ËÏЦ§ ÚÏÂÒÁÖÅÎØ
110 (thumbnails). Zgv ÂÁÚÕ¤ÔØÓÑ ÎÁ svgalib, ÔÏÍÕ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ zgv ×ÁÍ
111 ÎÅÏÂȦÄÎÏ §§ ×ÓÔÁÎÏ×ÉÔÉ,
114 Summary: Common files for both ZGV frontends
115 Summary(pl): Pakiet wspólny dla obu interfejsów ZGV
116 Group: Applications/Graphics
117 Requires: /usr/X11R6/lib/X11/rgb.txt
120 Common files for both ZGV frontends.
122 %description common -l pl
123 Pakiet wspólny dla obu interfejsów ZGV.
126 Summary: SDL viewer for many graphics formats
127 Summary(pl): Oparta na SDL przegl±darka obrazków w ró¿nych formatach
128 Group: Applications/Graphics
129 Requires: %{name}-common = %{version}
132 Zgv is a picture viewer capable of displaying GIF files as defined by
133 CompuServe, with the exceptions listed in the RESTRICTIONS section. It
134 is also capable of displaying JPEG/JFIF files using the Independant
135 JPEG Group's JPEG software, PBM/PGM/PPM files as used by pbmplus and
136 netpbm, Microsoft Windows and OS/2 BMP files, Targa (TGA) and TIFF
137 files, the new PNG format%{?_with_pcd: and PhotoCD}.
139 This package contains SDL-based interfeace.
141 %description sdl -l pl
142 Zgv potrafi wy¶wietlaæ obrazki w formacie CompuServe GIF (z wyj±tkami
143 opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z
144 Microsoft Windows i OS/2), Targa (TGA), TIFF, PNG%{?_with_pcd: i PhotoCD}.
146 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*