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.UTF-8): Konsolenbetrachter für viele Grafikformate
9 Summary(es.UTF-8): Visualizador para muchos formatos de gráficos (consola)
10 Summary(fr.UTF-8): Visualiseur d'image en mode console, pour de nombreux formats graphiques
11 Summary(pl.UTF-8): Konsolowa przeglądarka obrazków w różnych formatach
12 Summary(pt_BR.UTF-8): Visualizador para muitos formatos de gráficos (console)
13 Summary(uk.UTF-8): Консольна програма перегляду багатьох графічних форматів
14 Summary(tr.UTF-8): Birçok resim formatını görüntüleyebilen konsol aracı
15 Summary(ru.UTF-8): Консольная программа просмотра множества графических форматов
20 Group: Applications/Graphics
21 Source0: ftp://metalab.unc.edu/pub/Linux/apps/graphics/viewers/svga/%{name}-%{version}.tar.gz
22 # Source0-md5: d65a434ddeb612f0c488177f873afad2
23 Patch0: %{name}-DESTDIR.patch
24 Patch1: %{name}-info.patch
25 Patch2: %{name}-Dkey.patch
26 Patch3: %{name}-home_etc.patch
27 %{?with_sdl:BuildRequires: SDL-devel}
29 BuildRequires: libjpeg-devel
30 BuildRequires: libpng-devel >= 1.0.8
31 BuildRequires: libtiff-devel
32 %{?with_svga:BuildRequires: svgalib-devel}
33 BuildRequires: texinfo
34 BuildRequires: zlib-devel
35 %{?with_pcd:BuildRequires: libpcd-devel}
36 Requires: %{name}-common = %{version}-%{release}
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %{!?with_sdl:%{!?with_svga:%{error: at least one version must be enabled} exit 1}}
42 Zgv is a picture viewer capable of displaying GIF files as defined by
43 CompuServe, with the exceptions listed in the RESTRICTIONS section. It
44 is also capable of displaying JPEG/JFIF files using the Independant
45 JPEG Group's JPEG software, PBM/PGM/PPM files as used by pbmplus and
46 netpbm, Microsoft Windows and OS/2 BMP files, Targa (TGA) and TIFF
47 files, the new PNG format%{?with_pcd: and PhotoCD}.
49 This package contains svgalib-based interface.
51 %description -l de.UTF-8
52 zgv ist ein Bild-Viewer, der GIF-Dateien nach der
53 CompuServe-Definition anzeigen kann, abgesehen von den Ausnahmen im
54 Teil RESTRICTIONS. Ferner kann er JPEG/JFIF-Dateien unter Verwendung
55 der JPEG-Software der unabhängigen JPEG-Group, PBM/PGM/PPM-Dateien wie
56 sie pbmplus und netpbm benutzen, sowie Microsoft Windows und OS/2
57 BMB-Dateien, Targa (TGA) und das neue PNG-Format anzeigen.
59 %description -l es.UTF-8
60 Zgv es un visualizador de imágenes capaz de enseñar archivos tipo
61 "GIF" como las definidas por la CompuServe. También es capaz de
62 enseñar archivos JPEG/JFIF usando "Independant JPEG Group JPEG
63 software", archivos PBM/PGM/PPM como los usados por la pbmplus y
64 netpbm, archivos Microsoft Windows y OS/2 BMP, archivos Targa (TGA), y
67 %description -l fr.UTF-8
68 Zgv est un visualisateur de fichiers GIF tels que ceux qui sont
69 définis par CompuServe, avec les exceptions listées dans la section
70 RESTRICTIONS. Il peut aussi afficher les fichiers JPEG/JTIF utilisés
71 par le logiciel JPEG de l'Independant JPEG Group, les fichiers
72 PBM/PGM/PPM utilisés par pbmplus et netpbm, les fichiers BMP de
73 Microsoft Windows et OS/2, les fichiers Targa (TGA) et le nouveau
76 %description -l pl.UTF-8
77 Zgv potrafi wyświetlać obrazki w formacie CompuServe GIF (z wyjątkami
78 opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z
79 Microsoft Windows i OS/2), Targa (TGA), TIFF, PNG%{?with_pcd: i PhotoCD}.
81 Ten pakiet zawiera interfejs korzystajacy z biblioteki svgalib.
83 %description -l pt_BR.UTF-8
84 Zgv é um visualizador de imagens capaz de mostrar arquivos tipo "GIF"
85 como as definidas pela CompuServe. Ele também é capaz de mostrar
86 arquivos JPEG/JFIF usando o "Independent JPEG Group JPEG software",
87 arquivos PBM/PGM/PPM como os usados pela pbmplus e netpbm, arquivos
88 Microsoft Windows e OS/2 BMP, arquivos Targa (TGA), e o novo formato
91 %description -l ru.UTF-8
92 Zgv - это программа для просмотра изображений, которая поддерживает
93 показ файлов в форматах GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA,
94 PCX и MRF на VGA и SVGA дисплеях. Zgv может также показывать
95 мини-копии изображений (thumbnails). Zgv основывается на svgalib,
96 поэтому для использования zgv вам необходимо ее установить.
98 %description -l tr.UTF-8
99 Zgv, konsol ortamından CompuServe'in GIF formatı (RESTRICTIONS ile
100 belirtilenler dışında), JPEG/JFIF, PGM/PBM/PPM, Bitmap (BMP), Targa
101 (TGA) ve yeni PNG formatlarındaki resimleri görüntüleyebilmektedir.
103 %description -l uk.UTF-8
104 Zgv - це програма для перегляду зображень, яка підтримує показ файлів
105 в форматах GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA, PCX і MRF на
106 VGA та SVGA дисплеях. Zgv може також показувати міні-копії зображень
107 (thumbnails). Zgv базується на svgalib, тому для використання zgv вам
108 необхідно її встановити,
111 Summary: Common files for both ZGV frontends
112 Summary(pl.UTF-8): Pakiet wspólny dla obu interfejsów ZGV
113 Group: Applications/Graphics
114 Requires: /usr/share/X11/rgb.txt
117 Common files for both ZGV frontends.
119 %description common -l pl.UTF-8
120 Pakiet wspólny dla obu interfejsów ZGV.
123 Summary: SDL viewer for many graphics formats
124 Summary(pl.UTF-8): Oparta na SDL przeglądarka obrazków w różnych formatach
125 Group: Applications/Graphics
126 Requires: %{name}-common = %{version}-%{release}
129 Zgv is a picture viewer capable of displaying GIF files as defined by
130 CompuServe, with the exceptions listed in the RESTRICTIONS section. It
131 is also capable of displaying JPEG/JFIF files using the Independant
132 JPEG Group's JPEG software, PBM/PGM/PPM files as used by pbmplus and
133 netpbm, Microsoft Windows and OS/2 BMP files, Targa (TGA) and TIFF
134 files, the new PNG format%{?with_pcd: and PhotoCD}.
136 This package contains SDL-based interfeace.
138 %description sdl -l pl.UTF-8
139 Zgv potrafi wyświetlać obrazki w formacie CompuServe GIF (z wyjątkami
140 opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z
141 Microsoft Windows i OS/2), Targa (TGA), TIFF, PNG%{?with_pcd: i PhotoCD}.
143 Ten pakiet zawiera interfejs korzystajacy z biblioteki SDL.
153 sed -e 's@#\(PCDDEF=.*\)@\1@' config.mk > config.mk.new
154 mv -f config.mk.new config.mk
160 OPTFLAGS="%{rpmcflags}" \
161 RGB_DB="/usr/share/X11/rgb.txt" \
162 RCFILE="%{_sysconfdir}/zgv.conf" \
165 %{?with_sdl:mv -f src/zgv zgv-svga}
166 %{?with_sdl:%{__make} clean}
171 OPTFLAGS="%{rpmcflags}" \
173 RGB_DB="/usr/share/X11/rgb.txt" \
174 RCFILE="%{_sysconfdir}/zgv.conf" \
181 rm -rf $RPM_BUILD_ROOT
182 install -d $RPM_BUILD_ROOT%{_sysconfdir}
185 DESTDIR=$RPM_BUILD_ROOT \
187 MANDIR=%{_mandir}/man1 \
188 INFODIR=%{_infodir} \
189 %{?with_sdl:BACKEND=SDL}
191 %{?with_svga:%{?with_sdl:install zgv-svga $RPM_BUILD_ROOT%{_bindir}/zgv}}
192 %{?with_sdl:echo '.so zgv.1' > $RPM_BUILD_ROOT%{_mandir}/man1/zgv-sdl.1}
194 sed -e "s@/usr/local/etc@%{_sysconfdir}@g" doc/sample.zgvrc >$RPM_BUILD_ROOT%{_sysconfdir}/zgv.conf
197 rm -rf $RPM_BUILD_ROOT
200 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
203 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{_bindir}/zgv
212 %defattr(644,root,root,755)
213 %doc AUTHORS ChangeLog NEWS README* TODO
214 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/zgv.conf
215 %{_mandir}/man1/zgv.1*
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_bindir}/zgv-sdl
222 %{_mandir}/man1/zgv-sdl.1*