]> git.pld-linux.org Git - packages/zgv.git/blob - zgv.spec
- added CAN-2004-0999.patch (fixes integer overflow vulnerability)
[packages/zgv.git] / zgv.spec
1 #
2 # Conditional build:
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
6 #
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):    ëÏÎÓÏÌØÎÁÑ ÐÒÏÇÒÁÍÍÁ ÐÒÏÓÍÏÔÒÁ ÍÎÏÖÅÓÔ×Á ÇÒÁÆÉÞÅÓËÉÈ ÆÏÒÍÁÔÏ×
16 Name:           zgv
17 Version:        5.8
18 Release:        3
19 License:        GPL
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}
30 BuildRequires:  gawk
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)
40
41 %{!?with_sdl:%{!?with_svga:%{error: at least one version must be enabled} exit 1}}
42
43 %description
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}.
50
51 This package contains svgalib-based interface.
52
53 %description -l de
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.
60
61 %description -l es
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
67 el nuevo formato PNG.
68
69 %description -l fr
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
76 format PNG.
77
78 %description -l pl
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}.
82
83 Ten pakiet zawiera interfejs korzystajacy z biblioteki svgalib.
84
85 %description -l pt_BR
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
91 PNG.
92
93 %description -l ru
94 Zgv - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ ÐÒÏÓÍÏÔÒÁ ÉÚÏÂÒÁÖÅÎÉÊ, ËÏÔÏÒÁÑ ÐÏÄÄÅÒÖÉ×ÁÅÔ
95 ÐÏËÁÚ ÆÁÊÌÏ× × ÆÏÒÍÁÔÁÈ GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA,
96 PCX É MRF ÎÁ VGA É SVGA ÄÉÓÐÌÅÑÈ. Zgv ÍÏÖÅÔ ÔÁËÖÅ ÐÏËÁÚÙ×ÁÔØ
97 ÍÉÎÉ-ËÏÐÉÉ ÉÚÏÂÒÁÖÅÎÉÊ (thumbnails). Zgv ÏÓÎÏ×Ù×ÁÅÔÓÑ ÎÁ svgalib,
98 ÐÏÜÔÏÍÕ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ zgv ×ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÅÅ ÕÓÔÁÎÏ×ÉÔØ.
99
100 %description -l tr
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.
104
105 %description -l uk
106 Zgv - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ ÐÅÒÅÇÌÑÄÕ ÚÏÂÒÁÖÅÎØ, ÑËÁ Ð¦ÄÔÒÉÍÕ¤ ÐÏËÁÚ ÆÁÊ̦×
107 × ÆÏÒÍÁÔÁÈ GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA, PCX ¦ MRF ÎÁ
108 VGA ÔÁ SVGA ÄÉÓÐÌÅÑÈ. Zgv ÍÏÖÅ ÔÁËÏÖ ÐÏËÁÚÕ×ÁÔɠͦΦ-ËÏЦ§ ÚÏÂÒÁÖÅÎØ
109 (thumbnails). Zgv ÂÁÚÕ¤ÔØÓÑ ÎÁ svgalib, ÔÏÍÕ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ zgv ×ÁÍ
110 ÎÅÏÂȦÄÎÏ §§ ×ÓÔÁÎÏ×ÉÔÉ,
111
112 %package common
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
117
118 %description common
119 Common files for both ZGV frontends.
120
121 %description common -l pl
122 Pakiet wspólny dla obu interfejsów ZGV.
123
124 %package sdl
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}
129
130 %description sdl
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}.
137
138 This package contains SDL-based interfeace.
139
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}.
144
145 Ten pakiet zawiera interfejs korzystajacy z biblioteki SDL.
146
147 %prep
148 %setup  -q
149 %patch0 -p1
150 %patch1 -p1
151 %patch2 -p1
152 %patch3 -p1
153 %patch4 -p1
154
155 %if %{with pcd}
156 sed -e 's@#\(PCDDEF=.*\)@\1@' config.mk > config.mk.new
157 mv -f config.mk.new config.mk
158 %endif
159
160 %build
161 %if %{with svga}
162 %{__make} all \
163         OPTFLAGS="%{rpmcflags}" \
164         RGB_DB="/usr/X11R6/lib/X11/rgb.txt" \
165         RCFILE="%{_sysconfdir}/zgv.conf" \
166         CC="%{__cc}"
167
168 %{?with_sdl:mv -f src/zgv zgv-svga}
169 %{?with_sdl:%{__make} clean}
170 %endif
171
172 %if %{with sdl}
173 %{__make} all \
174         OPTFLAGS="%{rpmcflags}" \
175         BACKEND=SDL \
176         RGB_DB="/usr/X11R6/lib/X11/rgb.txt" \
177         RCFILE="%{_sysconfdir}/zgv.conf" \
178         CC="%{__cc}"
179 %endif
180
181 %{__make} info
182
183 %install
184 rm -rf $RPM_BUILD_ROOT
185 install -d $RPM_BUILD_ROOT%{_sysconfdir}
186
187 %{__make} install \
188         DESTDIR=$RPM_BUILD_ROOT \
189         BINDIR=%{_bindir} \
190         MANDIR=%{_mandir}/man1 \
191         INFODIR=%{_infodir} \
192         %{?with_sdl:BACKEND=SDL}
193
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}
196
197 sed -e "s@/usr/local/etc@%{_sysconfdir}@g" doc/sample.zgvrc >$RPM_BUILD_ROOT%{_sysconfdir}/zgv.conf
198
199 %clean
200 rm -rf $RPM_BUILD_ROOT
201
202 %post
203 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
204
205 %postun
206 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
207
208 %if %{with svga}
209 %files
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_bindir}/zgv
212 %endif
213
214 %files common
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*
219 %{_infodir}/*.info*
220
221 %if %{with sdl}
222 %files sdl
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_bindir}/zgv-sdl
225 %{_mandir}/man1/zgv-sdl.1*
226 %endif
This page took 0.071213 seconds and 3 git commands to generate.