]>
Commit | Line | Data |
---|---|---|
d79b500e | 1 | # |
29729890 JB |
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 | # | |
2140d0a1 | 7 | Summary: Console viewer for many graphics formats |
6f240d0f ER |
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): Консольная программа просмотра множества графических форматов | |
9fa45298 | 16 | Name: zgv |
7723a22e | 17 | Version: 5.9 |
d7d91d00 | 18 | Release: 3 |
347c3391 | 19 | License: GPL |
9fa45298 | 20 | Group: Applications/Graphics |
347c3391 | 21 | Source0: ftp://metalab.unc.edu/pub/Linux/apps/graphics/viewers/svga/%{name}-%{version}.tar.gz |
7723a22e | 22 | # Source0-md5: d65a434ddeb612f0c488177f873afad2 |
e124fe38 SZ |
23 | Patch0: %{name}-DESTDIR.patch |
24 | Patch1: %{name}-info.patch | |
bc577745 | 25 | Patch2: %{name}-Dkey.patch |
1248849a | 26 | Patch3: %{name}-home_etc.patch |
29729890 | 27 | %{?with_sdl:BuildRequires: SDL-devel} |
d82f896d | 28 | BuildRequires: gawk |
4ac08874 | 29 | BuildRequires: libjpeg-devel |
29729890 | 30 | BuildRequires: libpng-devel >= 1.0.8 |
d1c1a16d | 31 | BuildRequires: libtiff-devel |
29729890 | 32 | %{?with_svga:BuildRequires: svgalib-devel} |
d82f896d | 33 | BuildRequires: texinfo |
4ac08874 | 34 | BuildRequires: zlib-devel |
29729890 | 35 | %{?with_pcd:BuildRequires: libpcd-devel} |
e45728ad | 36 | Requires: %{name}-common = %{version}-%{release} |
a380cc35 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29729890 JB |
38 | |
39 | %{!?with_sdl:%{!?with_svga:%{error: at least one version must be enabled} exit 1}} | |
9fa45298 | 40 | |
41 | %description | |
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 | |
da53450f | 46 | netpbm, Microsoft Windows and OS/2 BMP files, Targa (TGA) and TIFF |
e45728ad | 47 | files, the new PNG format%{?with_pcd: and PhotoCD}. |
9fa45298 | 48 | |
29729890 JB |
49 | This package contains svgalib-based interface. |
50 | ||
bb305c18 | 51 | %description -l de.UTF-8 |
347c3391 | 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 | |
bb305c18 | 55 | der JPEG-Software der unabhängigen JPEG-Group, PBM/PGM/PPM-Dateien wie |
347c3391 | 56 | sie pbmplus und netpbm benutzen, sowie Microsoft Windows und OS/2 |
57 | BMB-Dateien, Targa (TGA) und das neue PNG-Format anzeigen. | |
9fa45298 | 58 | |
bb305c18 JR |
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 | |
d82f896d | 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 | |
65 | el nuevo formato PNG. | |
66 | ||
bb305c18 | 67 | %description -l fr.UTF-8 |
347c3391 | 68 | Zgv est un visualisateur de fichiers GIF tels que ceux qui sont |
bb305c18 JR |
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 | |
347c3391 | 71 | par le logiciel JPEG de l'Independant JPEG Group, les fichiers |
bb305c18 | 72 | PBM/PGM/PPM utilisés par pbmplus et netpbm, les fichiers BMP de |
347c3391 | 73 | Microsoft Windows et OS/2, les fichiers Targa (TGA) et le nouveau |
74 | format PNG. | |
9fa45298 | 75 | |
bb305c18 JR |
76 | %description -l pl.UTF-8 |
77 | Zgv potrafi wyświetlać obrazki w formacie CompuServe GIF (z wyjątkami | |
347c3391 | 78 | opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z |
e45728ad | 79 | Microsoft Windows i OS/2), Targa (TGA), TIFF, PNG%{?with_pcd: i PhotoCD}. |
9fa45298 | 80 | |
29729890 JB |
81 | Ten pakiet zawiera interfejs korzystajacy z biblioteki svgalib. |
82 | ||
bb305c18 JR |
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 | |
d82f896d | 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 | |
89 | PNG. | |
90 | ||
bb305c18 JR |
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 вам необходимо ее установить. | |
97 | ||
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. | |
102 | ||
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 | необхідно її встановити, | |
5ecf5ad6 | 109 | |
29729890 JB |
110 | %package common |
111 | Summary: Common files for both ZGV frontends | |
6f240d0f | 112 | Summary(pl.UTF-8): Pakiet wspólny dla obu interfejsów ZGV |
29729890 | 113 | Group: Applications/Graphics |
d7d91d00 | 114 | Requires: /usr/share/X11/rgb.txt |
29729890 JB |
115 | |
116 | %description common | |
117 | Common files for both ZGV frontends. | |
118 | ||
bb305c18 JR |
119 | %description common -l pl.UTF-8 |
120 | Pakiet wspólny dla obu interfejsów ZGV. | |
29729890 JB |
121 | |
122 | %package sdl | |
123 | Summary: SDL viewer for many graphics formats | |
6f240d0f | 124 | Summary(pl.UTF-8): Oparta na SDL przeglądarka obrazków w różnych formatach |
29729890 | 125 | Group: Applications/Graphics |
e45728ad | 126 | Requires: %{name}-common = %{version}-%{release} |
29729890 JB |
127 | |
128 | %description sdl | |
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 | |
e45728ad | 134 | files, the new PNG format%{?with_pcd: and PhotoCD}. |
29729890 JB |
135 | |
136 | This package contains SDL-based interfeace. | |
137 | ||
bb305c18 JR |
138 | %description sdl -l pl.UTF-8 |
139 | Zgv potrafi wyświetlać obrazki w formacie CompuServe GIF (z wyjątkami | |
29729890 | 140 | opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z |
e45728ad | 141 | Microsoft Windows i OS/2), Targa (TGA), TIFF, PNG%{?with_pcd: i PhotoCD}. |
29729890 JB |
142 | |
143 | Ten pakiet zawiera interfejs korzystajacy z biblioteki SDL. | |
144 | ||
9fa45298 | 145 | %prep |
7723a22e | 146 | %setup -q |
7c544f4e | 147 | %patch0 -p1 |
3184de43 | 148 | %patch1 -p1 |
bc577745 | 149 | %patch2 -p1 |
29729890 | 150 | %patch3 -p1 |
9fa45298 | 151 | |
29729890 | 152 | %if %{with pcd} |
d79b500e JB |
153 | sed -e 's@#\(PCDDEF=.*\)@\1@' config.mk > config.mk.new |
154 | mv -f config.mk.new config.mk | |
155 | %endif | |
7c544f4e | 156 | |
d79b500e | 157 | %build |
29729890 JB |
158 | %if %{with svga} |
159 | %{__make} all \ | |
160 | OPTFLAGS="%{rpmcflags}" \ | |
d7d91d00 | 161 | RGB_DB="/usr/share/X11/rgb.txt" \ |
ae606b0b AG |
162 | RCFILE="%{_sysconfdir}/zgv.conf" \ |
163 | CC="%{__cc}" | |
29729890 JB |
164 | |
165 | %{?with_sdl:mv -f src/zgv zgv-svga} | |
166 | %{?with_sdl:%{__make} clean} | |
167 | %endif | |
168 | ||
169 | %if %{with sdl} | |
170 | %{__make} all \ | |
171 | OPTFLAGS="%{rpmcflags}" \ | |
172 | BACKEND=SDL \ | |
d7d91d00 | 173 | RGB_DB="/usr/share/X11/rgb.txt" \ |
ae606b0b AG |
174 | RCFILE="%{_sysconfdir}/zgv.conf" \ |
175 | CC="%{__cc}" | |
29729890 | 176 | %endif |
7c544f4e | 177 | |
8eed1465 | 178 | %{__make} info |
9fa45298 | 179 | |
180 | %install | |
181 | rm -rf $RPM_BUILD_ROOT | |
1665b004 | 182 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
9fa45298 | 183 | |
557763ab | 184 | %{__make} install \ |
185 | DESTDIR=$RPM_BUILD_ROOT \ | |
42a6f4ad | 186 | BINDIR=%{_bindir} \ |
187 | MANDIR=%{_mandir}/man1 \ | |
29729890 JB |
188 | INFODIR=%{_infodir} \ |
189 | %{?with_sdl:BACKEND=SDL} | |
190 | ||
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} | |
7c544f4e | 193 | |
1248849a | 194 | sed -e "s@/usr/local/etc@%{_sysconfdir}@g" doc/sample.zgvrc >$RPM_BUILD_ROOT%{_sysconfdir}/zgv.conf |
1665b004 | 195 | |
1665b004 JB |
196 | %clean |
197 | rm -rf $RPM_BUILD_ROOT | |
9fa45298 | 198 | |
7c544f4e | 199 | %post |
a3c6c314 | 200 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
7c544f4e | 201 | |
046f1430 | 202 | %postun |
a3c6c314 | 203 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
8ec89d09 | 204 | |
29729890 | 205 | %if %{with svga} |
9fa45298 | 206 | %files |
8ec89d09 | 207 | %defattr(644,root,root,755) |
29729890 JB |
208 | %attr(755,root,root) %{_bindir}/zgv |
209 | %endif | |
210 | ||
211 | %files common | |
212 | %defattr(644,root,root,755) | |
18e18065 | 213 | %doc AUTHORS ChangeLog NEWS README* TODO |
1665b004 | 214 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/zgv.conf |
29729890 JB |
215 | %{_mandir}/man1/zgv.1* |
216 | %{_infodir}/*.info* | |
217 | ||
218 | %if %{with sdl} | |
219 | %files sdl | |
220 | %defattr(644,root,root,755) | |
221 | %attr(755,root,root) %{_bindir}/zgv-sdl | |
222 | %{_mandir}/man1/zgv-sdl.1* | |
223 | %endif |