]> git.pld-linux.org Git - packages/zgv.git/blob - zgv.spec
info files are in -common
[packages/zgv.git] / zgv.spec
1 #
2 # Conditional build:
3 %bcond_with     pcd     # with Kodak PhotoCD support
4 %bcond_with     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.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):      Консольная программа просмотра множества графических форматов
16 Name:           zgv
17 Version:        5.9
18 Release:        13
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:  d65a434ddeb612f0c488177f873afad2
23 Patch0:         %{name}-DESTDIR.patch
24 Patch1:         %{name}-info.patch
25 Patch2:         %{name}-Dkey.patch
26 Patch3:         %{name}-home_etc.patch
27 Patch4:         %{name}-gcc.patch
28 Patch5:         %{name}-libpng15.patch
29 Patch6:         format-security.patch
30 Patch7:         texinfo.patch
31 %{?with_sdl:BuildRequires:      SDL-devel}
32 BuildRequires:  gawk
33 BuildRequires:  libjpeg-devel
34 BuildRequires:  libpng-devel >= 1.0.8
35 BuildRequires:  libtiff-devel
36 %{?with_svga:BuildRequires:     svgalib-devel}
37 BuildRequires:  texinfo
38 BuildRequires:  zlib-devel
39 %{?with_pcd:BuildRequires:      libpcd-devel}
40 Requires:       %{name}-common = %{version}-%{release}
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %{!?with_sdl:%{!?with_svga:%{error: at least one version must be enabled} exit 1}}
44
45 %description
46 Zgv is a picture viewer capable of displaying GIF files as defined by
47 CompuServe, with the exceptions listed in the RESTRICTIONS section. It
48 is also capable of displaying JPEG/JFIF files using the Independant
49 JPEG Group's JPEG software, PBM/PGM/PPM files as used by pbmplus and
50 netpbm, Microsoft Windows and OS/2 BMP files, Targa (TGA) and TIFF
51 files, the new PNG format%{?with_pcd: and PhotoCD}.
52
53 This package contains svgalib-based interface.
54
55 %description -l de.UTF-8
56 zgv ist ein Bild-Viewer, der GIF-Dateien nach der
57 CompuServe-Definition anzeigen kann, abgesehen von den Ausnahmen im
58 Teil RESTRICTIONS. Ferner kann er JPEG/JFIF-Dateien unter Verwendung
59 der JPEG-Software der unabhängigen JPEG-Group, PBM/PGM/PPM-Dateien wie
60 sie pbmplus und netpbm benutzen, sowie Microsoft Windows und OS/2
61 BMB-Dateien, Targa (TGA) und das neue PNG-Format anzeigen.
62
63 %description -l es.UTF-8
64 Zgv es un visualizador de imágenes capaz de enseñar archivos tipo
65 "GIF" como las definidas por la CompuServe. También es capaz de
66 enseñar archivos JPEG/JFIF usando "Independant JPEG Group JPEG
67 software", archivos PBM/PGM/PPM como los usados por la pbmplus y
68 netpbm, archivos Microsoft Windows y OS/2 BMP, archivos Targa (TGA), y
69 el nuevo formato PNG.
70
71 %description -l fr.UTF-8
72 Zgv est un visualisateur de fichiers GIF tels que ceux qui sont
73 définis par CompuServe, avec les exceptions listées dans la section
74 RESTRICTIONS. Il peut aussi afficher les fichiers JPEG/JTIF utilisés
75 par le logiciel JPEG de l'Independant JPEG Group, les fichiers
76 PBM/PGM/PPM utilisés par pbmplus et netpbm, les fichiers BMP de
77 Microsoft Windows et OS/2, les fichiers Targa (TGA) et le nouveau
78 format PNG.
79
80 %description -l pl.UTF-8
81 Zgv potrafi wyświetlać obrazki w formacie CompuServe GIF (z wyjątkami
82 opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z
83 Microsoft Windows i OS/2), Targa (TGA), TIFF, PNG%{?with_pcd: i PhotoCD}.
84
85 Ten pakiet zawiera interfejs korzystajacy z biblioteki svgalib.
86
87 %description -l pt_BR.UTF-8
88 Zgv é um visualizador de imagens capaz de mostrar arquivos tipo "GIF"
89 como as definidas pela CompuServe. Ele também é capaz de mostrar
90 arquivos JPEG/JFIF usando o "Independent JPEG Group JPEG software",
91 arquivos PBM/PGM/PPM como os usados pela pbmplus e netpbm, arquivos
92 Microsoft Windows e OS/2 BMP, arquivos Targa (TGA), e o novo formato
93 PNG.
94
95 %description -l ru.UTF-8
96 Zgv - это программа для просмотра изображений, которая поддерживает
97 показ файлов в форматах GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA,
98 PCX и MRF на VGA и SVGA дисплеях. Zgv может также показывать
99 мини-копии изображений (thumbnails). Zgv основывается на svgalib,
100 поэтому для использования zgv вам необходимо ее установить.
101
102 %description -l tr.UTF-8
103 Zgv, konsol ortamından CompuServe'in GIF formatı (RESTRICTIONS ile
104 belirtilenler dışında), JPEG/JFIF, PGM/PBM/PPM, Bitmap (BMP), Targa
105 (TGA) ve yeni PNG formatlarındaki resimleri görüntüleyebilmektedir.
106
107 %description -l uk.UTF-8
108 Zgv - це програма для перегляду зображень, яка підтримує показ файлів
109 в форматах GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA, PCX і MRF на
110 VGA та SVGA дисплеях. Zgv може також показувати міні-копії зображень
111 (thumbnails). Zgv базується на svgalib, тому для використання zgv вам
112 необхідно її встановити,
113
114 %package common
115 Summary:        Common files for both ZGV frontends
116 Summary(pl.UTF-8):      Pakiet wspólny dla obu interfejsów ZGV
117 Group:          Applications/Graphics
118 Requires:       /usr/share/X11/rgb.txt
119
120 %description common
121 Common files for both ZGV frontends.
122
123 %description common -l pl.UTF-8
124 Pakiet wspólny dla obu interfejsów ZGV.
125
126 %package sdl
127 Summary:        SDL viewer for many graphics formats
128 Summary(pl.UTF-8):      Oparta na SDL przeglądarka obrazków w różnych formatach
129 Group:          Applications/Graphics
130 Requires:       %{name}-common = %{version}-%{release}
131
132 %description sdl
133 Zgv is a picture viewer capable of displaying GIF files as defined by
134 CompuServe, with the exceptions listed in the RESTRICTIONS section. It
135 is also capable of displaying JPEG/JFIF files using the Independant
136 JPEG Group's JPEG software, PBM/PGM/PPM files as used by pbmplus and
137 netpbm, Microsoft Windows and OS/2 BMP files, Targa (TGA) and TIFF
138 files, the new PNG format%{?with_pcd: and PhotoCD}.
139
140 This package contains SDL-based interfeace.
141
142 %description sdl -l pl.UTF-8
143 Zgv potrafi wyświetlać obrazki w formacie CompuServe GIF (z wyjątkami
144 opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z
145 Microsoft Windows i OS/2), Targa (TGA), TIFF, PNG%{?with_pcd: i PhotoCD}.
146
147 Ten pakiet zawiera interfejs korzystajacy z biblioteki SDL.
148
149 %prep
150 %setup -q
151 %patch0 -p1
152 %patch1 -p1
153 %patch2 -p1
154 %patch3 -p1
155 %patch4 -p1
156 %patch5 -p1
157 %patch6 -p1
158 %patch7 -p1
159
160 %if %{with pcd}
161 sed -e 's@#\(PCDDEF=.*\)@\1@' config.mk > config.mk.new
162 mv -f config.mk.new config.mk
163 %endif
164
165 %build
166 %if %{with svga}
167 %{__make} all \
168         OPTFLAGS="%{rpmcflags}" \
169         RGB_DB="/usr/share/X11/rgb.txt" \
170         RCFILE="%{_sysconfdir}/zgv.conf" \
171         CC="%{__cc}"
172
173 %{?with_sdl:mv -f src/zgv zgv-svga}
174 %{?with_sdl:%{__make} clean}
175 %endif
176
177 %if %{with sdl}
178 %{__make} all \
179         OPTFLAGS="%{rpmcflags}" \
180         BACKEND=SDL \
181         RGB_DB="/usr/share/X11/rgb.txt" \
182         RCFILE="%{_sysconfdir}/zgv.conf" \
183         CC="%{__cc}"
184 %endif
185
186 %{__make} info
187
188 %install
189 rm -rf $RPM_BUILD_ROOT
190 install -d $RPM_BUILD_ROOT%{_sysconfdir}
191
192 %{__make} install \
193         DESTDIR=$RPM_BUILD_ROOT \
194         BINDIR=%{_bindir} \
195         MANDIR=%{_mandir}/man1 \
196         INFODIR=%{_infodir} \
197         %{?with_sdl:BACKEND=SDL}
198
199 %{?with_svga:%{?with_sdl:install zgv-svga $RPM_BUILD_ROOT%{_bindir}/zgv}}
200 %{?with_sdl:echo '.so zgv.1' > $RPM_BUILD_ROOT%{_mandir}/man1/zgv-sdl.1}
201
202 sed -e "s@/usr/local/etc@%{_sysconfdir}@g" doc/sample.zgvrc >$RPM_BUILD_ROOT%{_sysconfdir}/zgv.conf
203
204 %clean
205 rm -rf $RPM_BUILD_ROOT
206
207 %post   common -p       /sbin/postshell
208 -/usr/sbin/fix-info-dir -c %{_infodir}
209
210 %postun common -p       /sbin/postshell
211 -/usr/sbin/fix-info-dir -c %{_infodir}
212
213 %if %{with svga}
214 %files
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_bindir}/zgv
217 %endif
218
219 %files common
220 %defattr(644,root,root,755)
221 %doc AUTHORS ChangeLog NEWS README* TODO
222 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/zgv.conf
223 %{_mandir}/man1/zgv.1*
224 %{_infodir}/*.info*
225
226 %if %{with sdl}
227 %files sdl
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_bindir}/zgv-sdl
230 %{_mandir}/man1/zgv-sdl.1*
231 %endif
This page took 0.103745 seconds and 4 git commands to generate.