]> git.pld-linux.org Git - packages/zgv.git/blob - zgv.spec
- updated to 5.4,
[packages/zgv.git] / zgv.spec
1 #
2 # _with_pcd - with Kodak PhotoCD support
3 Summary:        console viewer for many graphics formats
4 Summary(de):    Konsolenbetrachter für viele Grafikformate
5 Summary(es):    Visualizador para muchos formatos de gráficos (consola)
6 Summary(fr):    Visualiseur d'image en mode console, pour de nombreux formats graphiques
7 Summary(pl):    Konsolowa przegl±darka obrazków w ró¿nych formatach
8 Summary(pt_BR):Visualizador para muitos formatos de gráficos (console)
9 Summary(tr):    Birçok resim formatýný görüntüleyebilen konsol aracý
10 Name:           zgv
11 Version:        5.4
12 Release:        1
13 License:        GPL
14 Group:          Applications/Graphics
15 Group(de):      Applikationen/Grafik
16 Group(pl):      Aplikacje/Grafika
17 Source0:        ftp://metalab.unc.edu/pub/Linux/apps/graphics/viewers/svga/%{name}-%{version}.tar.gz
18 Patch0:         %{name}-DESTDIR.patch
19 Patch1:         %{name}-info.patch
20 BuildRequires:  gawk
21 BuildRequires:  libjpeg-devel
22 BuildRequires:  libpng >= 1.0.8
23 BuildRequires:  svgalib-devel
24 BuildRequires:  texinfo
25 BuildRequires:  zlib-devel
26 %{?_with_pcd:BuildRequires: libpcd-devel}
27 Requires:       /usr/X11R6/lib/X11/rgb.txt
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Exclusivearch:  %{ix86} alpha
30
31 %description
32 Zgv is a picture viewer capable of displaying GIF files as defined by
33 CompuServe, with the exceptions listed in the RESTRICTIONS section. It
34 is also capable of displaying JPEG/JFIF files using the Independant
35 JPEG Group's JPEG software, PBM/PGM/PPM files as used by pbmplus and
36 netpbm, Microsoft Windows and OS/2 BMP files, Targa (TGA) files, the
37 new PNG format%{?_with_pcd: and PhotoCD}. It can display TIFF files if
38 you install netpbm-progs (tifftopnm).
39
40 %description -l de
41 zgv ist ein Bild-Viewer, der GIF-Dateien nach der
42 CompuServe-Definition anzeigen kann, abgesehen von den Ausnahmen im
43 Teil RESTRICTIONS. Ferner kann er JPEG/JFIF-Dateien unter Verwendung
44 der JPEG-Software der unabhängigen JPEG-Group, PBM/PGM/PPM-Dateien wie
45 sie pbmplus und netpbm benutzen, sowie Microsoft Windows und OS/2
46 BMB-Dateien, Targa (TGA) und das neue PNG-Format anzeigen.
47
48 %description -l es
49 Zgv es un visualizador de imágenes capaz de enseñar archivos tipo
50 "GIF" como las definidas por la CompuServe. También es capaz de
51 enseñar archivos JPEG/JFIF usando "Independant JPEG Group JPEG
52 software", archivos PBM/PGM/PPM como los usados por la pbmplus y
53 netpbm, archivos Microsoft Windows y OS/2 BMP, archivos Targa (TGA), y
54 el nuevo formato PNG.
55
56 %description -l fr
57 Zgv est un visualisateur de fichiers GIF tels que ceux qui sont
58 définis par CompuServe, avec les exceptions listées dans la section
59 RESTRICTIONS. Il peut aussi afficher les fichiers JPEG/JTIF utilisés
60 par le logiciel JPEG de l'Independant JPEG Group, les fichiers
61 PBM/PGM/PPM utilisés par pbmplus et netpbm, les fichiers BMP de
62 Microsoft Windows et OS/2, les fichiers Targa (TGA) et le nouveau
63 format PNG.
64
65 %description -l pl
66 Zgv potrafi wy¶wietlaæ obrazki w formacie CompuServe GIF (z wyj±tkami
67 opisanymi w rozdziale RESTRICTIONS), JPEG/JFIF, PBM/PGM/PPM, BMP (z
68 Microsoft Windows i OS/2), Targa (TGA), PNG%{?_with_pcd: i PhotoCD}.
69 Mo¿e te¿ wy¶wietlaæ pliki TIFF po zainstalowaniu pakietu netpbm-progs
70 (program tifftopnm).
71
72 %description -l pt_BR
73 Zgv é um visualizador de imagens capaz de mostrar arquivos tipo "GIF"
74 como as definidas pela CompuServe. Ele também é capaz de mostrar
75 arquivos JPEG/JFIF usando o "Independent JPEG Group JPEG software",
76 arquivos PBM/PGM/PPM como os usados pela pbmplus e netpbm, arquivos
77 Microsoft Windows e OS/2 BMP, arquivos Targa (TGA), e o novo formato
78 PNG.
79
80 %description -l tr
81 Zgv, konsol ortamýndan CompuServe'in GIF formatý (RESTRICTIONS ile
82 belirtilenler dýþýnda), JPEG/JFIF, PGM/PBM/PPM, Bitmap (BMP), Targa
83 (TGA) ve yeni PNG formatlarýndaki resimleri görüntüleyebilmektedir.
84
85 %prep
86 %setup  -q
87 %patch0 -p1
88 %patch1 -p1
89
90 %if %{?_with_pcd:1}%{!?_with_pcd:0}
91 sed -e 's@#\(PCDDEF=.*\)@\1@' config.mk > config.mk.new
92 mv -f config.mk.new config.mk
93 %endif
94
95 %build
96 %{__make} all OPTFLAGS="%{rpmcflags}" \
97         INCDIRS="-I%{_includedir}" \
98         RGB_DB="%{_prefix}/X11R6/lib/X11/rgb.txt"
99
100 %{__make} info
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT%{_sysconfdir}
105
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT \
108         BINDIR=%{_bindir} \
109         MANDIR=%{_mandir}/man1 \
110         INFODIR=%{_infodir}
111
112 install doc/sample.zgvrc $RPM_BUILD_ROOT%{_sysconfdir}/zgv.conf
113
114 gzip -9nf TODO README README.fonts ChangeLog NEWS
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %post
120 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
121
122 %postun
123 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
124
125 %files
126 %defattr(644,root,root,755)
127 %doc {README,README.fonts,ChangeLog,TODO,NEWS}.gz
128 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/zgv.conf
129 %attr(755,root,root) %{_bindir}/%{name}
130 %{_mandir}/man1/*
131 %{_infodir}/*
This page took 0.077591 seconds and 3 git commands to generate.