]> git.pld-linux.org Git - packages/zgv.git/blob - zgv.spec
- pass CC, release 2
[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 %ifnarch %{ix86} alpha
8 %undefine       with_svga
9 %endif
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):    ëÏÎÓÏÌØÎÁÑ ÐÒÏÇÒÁÍÍÁ ÐÒÏÓÍÏÔÒÁ ÍÎÏÖÅÓÔ×Á ÇÒÁÆÉÞÅÓËÉÈ ÆÏÒÍÁÔÏ×
19 Name:           zgv
20 Version:        5.8
21 Release:        2
22 License:        GPL
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}
31 BuildRequires:  gawk
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)
41
42 %{!?with_sdl:%{!?with_svga:%{error: at least one version must be enabled} exit 1}}
43
44 %description
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}.
51
52 This package contains svgalib-based interface.
53
54 %description -l de
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.
61
62 %description -l es
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
68 el nuevo formato PNG.
69
70 %description -l fr
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
77 format PNG.
78
79 %description -l pl
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}.
83
84 Ten pakiet zawiera interfejs korzystajacy z biblioteki svgalib.
85
86 %description -l pt_BR
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
92 PNG.
93
94 %description -l ru
95 Zgv - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ ÐÒÏÓÍÏÔÒÁ ÉÚÏÂÒÁÖÅÎÉÊ, ËÏÔÏÒÁÑ ÐÏÄÄÅÒÖÉ×ÁÅÔ
96 ÐÏËÁÚ ÆÁÊÌÏ× × ÆÏÒÍÁÔÁÈ GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA,
97 PCX É MRF ÎÁ VGA É SVGA ÄÉÓÐÌÅÑÈ. Zgv ÍÏÖÅÔ ÔÁËÖÅ ÐÏËÁÚÙ×ÁÔØ
98 ÍÉÎÉ-ËÏÐÉÉ ÉÚÏÂÒÁÖÅÎÉÊ (thumbnails). Zgv ÏÓÎÏ×Ù×ÁÅÔÓÑ ÎÁ svgalib,
99 ÐÏÜÔÏÍÕ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ zgv ×ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÅÅ ÕÓÔÁÎÏ×ÉÔØ.
100
101 %description -l tr
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.
105
106 %description -l uk
107 Zgv - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ ÐÅÒÅÇÌÑÄÕ ÚÏÂÒÁÖÅÎØ, ÑËÁ Ð¦ÄÔÒÉÍÕ¤ ÐÏËÁÚ ÆÁÊ̦×
108 × ÆÏÒÍÁÔÁÈ GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA, PCX ¦ MRF ÎÁ
109 VGA ÔÁ SVGA ÄÉÓÐÌÅÑÈ. Zgv ÍÏÖÅ ÔÁËÏÖ ÐÏËÁÚÕ×ÁÔɠͦΦ-ËÏЦ§ ÚÏÂÒÁÖÅÎØ
110 (thumbnails). Zgv ÂÁÚÕ¤ÔØÓÑ ÎÁ svgalib, ÔÏÍÕ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ zgv ×ÁÍ
111 ÎÅÏÂȦÄÎÏ §§ ×ÓÔÁÎÏ×ÉÔÉ,
112
113 %package common
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
118
119 %description common
120 Common files for both ZGV frontends.
121
122 %description common -l pl
123 Pakiet wspólny dla obu interfejsów ZGV.
124
125 %package sdl
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}
130
131 %description sdl
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}.
138
139 This package contains SDL-based interfeace.
140
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}.
145
146 Ten pakiet zawiera interfejs korzystajacy z biblioteki SDL.
147
148 %prep
149 %setup  -q
150 %patch0 -p1
151 %patch1 -p1
152 %patch2 -p1
153 %patch3 -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.047338 seconds and 3 git commands to generate.