]> git.pld-linux.org Git - packages/zgv.git/blame - zgv.spec
- CVE reference
[packages/zgv.git] / zgv.spec
CommitLineData
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 7Summary: Console viewer for many graphics formats
6f240d0f
ER
8Summary(de.UTF-8): Konsolenbetrachter für viele Grafikformate
9Summary(es.UTF-8): Visualizador para muchos formatos de gráficos (consola)
10Summary(fr.UTF-8): Visualiseur d'image en mode console, pour de nombreux formats graphiques
11Summary(pl.UTF-8): Konsolowa przeglądarka obrazków w różnych formatach
12Summary(pt_BR.UTF-8): Visualizador para muitos formatos de gráficos (console)
13Summary(uk.UTF-8): Консольна програма перегляду багатьох графічних форматів
14Summary(tr.UTF-8): Birçok resim formatını görüntüleyebilen konsol aracı
15Summary(ru.UTF-8): Консольная программа просмотра множества графических форматов
9fa45298 16Name: zgv
7723a22e 17Version: 5.9
d7d91d00 18Release: 3
347c3391 19License: GPL
9fa45298 20Group: Applications/Graphics
347c3391 21Source0: ftp://metalab.unc.edu/pub/Linux/apps/graphics/viewers/svga/%{name}-%{version}.tar.gz
7723a22e 22# Source0-md5: d65a434ddeb612f0c488177f873afad2
e124fe38
SZ
23Patch0: %{name}-DESTDIR.patch
24Patch1: %{name}-info.patch
bc577745 25Patch2: %{name}-Dkey.patch
1248849a 26Patch3: %{name}-home_etc.patch
29729890 27%{?with_sdl:BuildRequires: SDL-devel}
d82f896d 28BuildRequires: gawk
4ac08874 29BuildRequires: libjpeg-devel
29729890 30BuildRequires: libpng-devel >= 1.0.8
d1c1a16d 31BuildRequires: libtiff-devel
29729890 32%{?with_svga:BuildRequires: svgalib-devel}
d82f896d 33BuildRequires: texinfo
4ac08874 34BuildRequires: zlib-devel
29729890 35%{?with_pcd:BuildRequires: libpcd-devel}
e45728ad 36Requires: %{name}-common = %{version}-%{release}
a380cc35 37BuildRoot: %{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
42Zgv is a picture viewer capable of displaying GIF files as defined by
43CompuServe, with the exceptions listed in the RESTRICTIONS section. It
44is also capable of displaying JPEG/JFIF files using the Independant
45JPEG Group's JPEG software, PBM/PGM/PPM files as used by pbmplus and
da53450f 46netpbm, Microsoft Windows and OS/2 BMP files, Targa (TGA) and TIFF
e45728ad 47files, the new PNG format%{?with_pcd: and PhotoCD}.
9fa45298 48
29729890
JB
49This package contains svgalib-based interface.
50
bb305c18 51%description -l de.UTF-8
347c3391 52zgv ist ein Bild-Viewer, der GIF-Dateien nach der
53CompuServe-Definition anzeigen kann, abgesehen von den Ausnahmen im
54Teil RESTRICTIONS. Ferner kann er JPEG/JFIF-Dateien unter Verwendung
bb305c18 55der JPEG-Software der unabhängigen JPEG-Group, PBM/PGM/PPM-Dateien wie
347c3391 56sie pbmplus und netpbm benutzen, sowie Microsoft Windows und OS/2
57BMB-Dateien, Targa (TGA) und das neue PNG-Format anzeigen.
9fa45298 58
bb305c18
JR
59%description -l es.UTF-8
60Zgv 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
62enseñar archivos JPEG/JFIF usando "Independant JPEG Group JPEG
d82f896d 63software", archivos PBM/PGM/PPM como los usados por la pbmplus y
64netpbm, archivos Microsoft Windows y OS/2 BMP, archivos Targa (TGA), y
65el nuevo formato PNG.
66
bb305c18 67%description -l fr.UTF-8
347c3391 68Zgv est un visualisateur de fichiers GIF tels que ceux qui sont
bb305c18
JR
69définis par CompuServe, avec les exceptions listées dans la section
70RESTRICTIONS. Il peut aussi afficher les fichiers JPEG/JTIF utilisés
347c3391 71par le logiciel JPEG de l'Independant JPEG Group, les fichiers
bb305c18 72PBM/PGM/PPM utilisés par pbmplus et netpbm, les fichiers BMP de
347c3391 73Microsoft Windows et OS/2, les fichiers Targa (TGA) et le nouveau
74format PNG.
9fa45298 75
bb305c18
JR
76%description -l pl.UTF-8
77Zgv potrafi wyświetlać obrazki w formacie CompuServe GIF (z wyjątkami
347c3391 78opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z
e45728ad 79Microsoft Windows i OS/2), Targa (TGA), TIFF, PNG%{?with_pcd: i PhotoCD}.
9fa45298 80
29729890
JB
81Ten pakiet zawiera interfejs korzystajacy z biblioteki svgalib.
82
bb305c18
JR
83%description -l pt_BR.UTF-8
84Zgv é um visualizador de imagens capaz de mostrar arquivos tipo "GIF"
85como as definidas pela CompuServe. Ele também é capaz de mostrar
d82f896d 86arquivos JPEG/JFIF usando o "Independent JPEG Group JPEG software",
87arquivos PBM/PGM/PPM como os usados pela pbmplus e netpbm, arquivos
88Microsoft Windows e OS/2 BMP, arquivos Targa (TGA), e o novo formato
89PNG.
90
bb305c18
JR
91%description -l ru.UTF-8
92Zgv - это программа для просмотра изображений, которая поддерживает
93показ файлов в форматах GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA,
94PCX и MRF на VGA и SVGA дисплеях. Zgv может также показывать
95мини-копии изображений (thumbnails). Zgv основывается на svgalib,
96поэтому для использования zgv вам необходимо ее установить.
97
98%description -l tr.UTF-8
99Zgv, konsol ortamından CompuServe'in GIF formatı (RESTRICTIONS ile
100belirtilenler 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
104Zgv - це програма для перегляду зображень, яка підтримує показ файлів
105в форматах GIF, JPEG/JFIF, PNG, PBM/PGM/PPM, BMP, TGA, PCX і MRF на
106VGA та SVGA дисплеях. Zgv може також показувати міні-копії зображень
107(thumbnails). Zgv базується на svgalib, тому для використання zgv вам
108необхідно її встановити,
5ecf5ad6 109
29729890
JB
110%package common
111Summary: Common files for both ZGV frontends
6f240d0f 112Summary(pl.UTF-8): Pakiet wspólny dla obu interfejsów ZGV
29729890 113Group: Applications/Graphics
d7d91d00 114Requires: /usr/share/X11/rgb.txt
29729890
JB
115
116%description common
117Common files for both ZGV frontends.
118
bb305c18
JR
119%description common -l pl.UTF-8
120Pakiet wspólny dla obu interfejsów ZGV.
29729890
JB
121
122%package sdl
123Summary: SDL viewer for many graphics formats
6f240d0f 124Summary(pl.UTF-8): Oparta na SDL przeglądarka obrazków w różnych formatach
29729890 125Group: Applications/Graphics
e45728ad 126Requires: %{name}-common = %{version}-%{release}
29729890
JB
127
128%description sdl
129Zgv is a picture viewer capable of displaying GIF files as defined by
130CompuServe, with the exceptions listed in the RESTRICTIONS section. It
131is also capable of displaying JPEG/JFIF files using the Independant
132JPEG Group's JPEG software, PBM/PGM/PPM files as used by pbmplus and
133netpbm, Microsoft Windows and OS/2 BMP files, Targa (TGA) and TIFF
e45728ad 134files, the new PNG format%{?with_pcd: and PhotoCD}.
29729890
JB
135
136This package contains SDL-based interfeace.
137
bb305c18
JR
138%description sdl -l pl.UTF-8
139Zgv potrafi wyświetlać obrazki w formacie CompuServe GIF (z wyjątkami
29729890 140opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z
e45728ad 141Microsoft Windows i OS/2), Targa (TGA), TIFF, PNG%{?with_pcd: i PhotoCD}.
29729890
JB
142
143Ten 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
153sed -e 's@#\(PCDDEF=.*\)@\1@' config.mk > config.mk.new
154mv -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
181rm -rf $RPM_BUILD_ROOT
1665b004 182install -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 194sed -e "s@/usr/local/etc@%{_sysconfdir}@g" doc/sample.zgvrc >$RPM_BUILD_ROOT%{_sysconfdir}/zgv.conf
1665b004 195
1665b004
JB
196%clean
197rm -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
This page took 0.121584 seconds and 4 git commands to generate.