]>
Commit | Line | Data |
---|---|---|
e36f504e ER |
1 | # TODO |
2 | # - use IANA as source http://www.iana.org/assignments/media-types/ ? | |
90d3adf4 JB |
3 | # nb. fedorahosted mailcap project is synchronized with IANA |
4 | # | |
5 | # Conditional build: | |
6 | %bcond_without tests # do not perform "make check" | |
67de061b | 7 | |
c09db18f | 8 | %define fcver 2.1.43 |
67de061b | 9 | %define ver 2.3.%(v=%{fcver}; echo ${v#2.1.}) |
f5679928 | 10 | Summary: Defines multimedia helper applications for various programs |
230679a2 ER |
11 | Summary(de.UTF-8): Definiert Multimedia-Hilfsapplikationen für diverse Programme |
12 | Summary(es.UTF-8): Define aplicaciones auxiliares multimedia para varios programas | |
13 | Summary(fr.UTF-8): Définit une aide multimédia pour de nombreuses applications | |
14 | Summary(pl.UTF-8): Definicje rozszerzeń multimedialnych dla różnych programów | |
15 | Summary(pt_BR.UTF-8): Define aplicações auxiliares multimídia para vários programas | |
16 | Summary(tr.UTF-8): Çeşitli programlar için çokluortam yardımcı uygulamaları tanımlar | |
f5679928 | 17 | Name: mailcap |
67de061b ER |
18 | Version: %{ver} |
19 | Release: 1 | |
dfe4af38 | 20 | License: Public Domain |
f5679928 | 21 | Group: Base |
e9d5b4ad | 22 | Source0: https://fedorahosted.org/released/mailcap/%{name}-%{fcver}.tar.xz |
c09db18f | 23 | # Source0-md5: 106996238be763ad2e3e3c814b91228f |
023f87b6 AM |
24 | Source1: %{name} |
25 | Source2: %{name}.4 | |
c85fa412 TP |
26 | Source3: run-%{name} |
27 | Source4: run-%{name}.man | |
e4885dc2 | 28 | Patch0: mime.types.patch |
90d3adf4 | 29 | URL: http://git.fedorahosted.org/git/?p=mailcap.git |
8cdcfd32 | 30 | BuildRequires: rpm >= 4.4.9-56 |
e9d5b4ad ER |
31 | BuildRequires: tar >= 1:1.22 |
32 | BuildRequires: xz | |
064f9a10 TP |
33 | Suggests: ImageMagick-coder-jpeg |
34 | Suggests: ImageMagick-coder-png | |
35 | Suggests: aview | |
aeaba286 | 36 | Suggests: colordiff |
0b111cdd | 37 | Suggests: dvi2tty |
aeaba286 TP |
38 | Suggests: elinks |
39 | Suggests: eog | |
aeaba286 | 40 | Suggests: ghostscript |
4cd4258d | 41 | Suggests: gplflash |
aeaba286 | 42 | Suggests: gv |
064f9a10 | 43 | Suggests: id3v2 |
7f4b79a2 | 44 | Suggests: libcaca-img |
aeaba286 TP |
45 | Suggests: metamail |
46 | Suggests: mikmod | |
47 | Suggests: mplayer | |
48 | Suggests: odt2txt | |
d6d1c0cf | 49 | Suggests: perl-base |
aeaba286 | 50 | Suggests: qiv |
aeaba286 TP |
51 | Suggests: soffice2html |
52 | Suggests: tar | |
e9dc9f04 | 53 | Suggests: tnef |
09ff13d4 | 54 | Suggests: unrar |
4623e8a9 | 55 | Suggests: unrtf |
aeaba286 TP |
56 | Suggests: unzip |
57 | Suggests: wv | |
58 | Suggests: xdvi | |
59 | Suggests: xlhtml | |
60 | Suggests: xpdf | |
61 | Suggests: xpdf-tools | |
8cdcfd32 ER |
62 | %if "%{pld_release}" == "ac" |
63 | Suggests: X11 | |
64 | %else | |
aeaba286 | 65 | Suggests: xterm |
8cdcfd32 | 66 | %endif |
023f87b6 | 67 | %{?with_tests:BuildRequires:perl-base} |
e4885dc2 | 68 | Conflicts: rpm < 4.4.9 |
d69063e0 | 69 | BuildArch: noarch |
cf8aa0b6 | 70 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ea459c09 | 71 | |
d6d1c0cf ER |
72 | %define _noautoreqfiles %{_bindir}/run-%{name} |
73 | ||
ea459c09 | 74 | %description |
f5679928 | 75 | The mailcap file is used by the metamail program. Metamail reads the |
76 | mailcap file to determine how it should display non-text or multimedia | |
d75d98da | 77 | material. Basically, mailcap associates a particular type of file with |
78 | a particular program that a mail agent or other program can call in | |
79 | order to handle the file. | |
ea459c09 | 80 | |
472a3084 JR |
81 | %description -l de.UTF-8 |
82 | Wenn es installiert ist, können Programme wie 'lynx' automatically | |
83 | 'zgv' zum Darstellen von Bildern verwenden (zgv muß installiert sein). | |
ea459c09 | 84 | |
472a3084 JR |
85 | %description -l es.UTF-8 |
86 | Este es el paquete Red Hat Mailcap. Al instalarlo podrás hacer que | |
87 | programas como lynx usen automáticamente zgv para enseñar imágenes | |
b7629fc9 | 88 | (con zgv instalado). |
89 | ||
472a3084 JR |
90 | %description -l fr.UTF-8 |
91 | L'installer permettra à des programmes come lynx d'utiliser | |
d75d98da | 92 | automatiquement zgv pour afficher des images (pourvu que zgv soit |
472a3084 | 93 | installé). |
ea459c09 | 94 | |
472a3084 JR |
95 | %description -l pl.UTF-8 |
96 | Plik mailcap jest używany przez program metamail i inne. Pakiet ten | |
97 | pozwoli na automatyczne wyświetlanie grafiki przez programy takie jak | |
98 | lynx, przy użyciu zgv. | |
67d18053 | 99 | |
472a3084 JR |
100 | %description -l pt_BR.UTF-8 |
101 | Este é o pacote Red Hat Mailcap. Instalando você poderá fazer com que | |
b7629fc9 | 102 | programas como lynx automaticamente usem zgv para mostrar figuras (com |
103 | o zgv instalado). | |
104 | ||
472a3084 JR |
105 | %description -l tr.UTF-8 |
106 | lynx gibi programların resim göstermek için otomatik olarak zgv | |
107 | paketini kullanamalarına olanak sağlar (zgv kurulmuş olmalı). | |
ea459c09 | 108 | |
109 | %prep | |
023f87b6 | 110 | %setup -q -n %{name}-%{fcver} |
e4885dc2 | 111 | %patch0 -p1 |
023f87b6 | 112 | cp -a %{SOURCE1} mailcap |
c5fe3917 ER |
113 | |
114 | %if "%{pld_release}" == "ac" | |
115 | %{__sed} -i -e 's,/usr/bin/xterm,/usr/X11R6/bin/xterm,g' mailcap | |
116 | %endif | |
ea459c09 | 117 | |
5334a6fd | 118 | %build |
023f87b6 AM |
119 | %if %{with tests} |
120 | %{__make} check | |
121 | %endif | |
122 | ||
ea459c09 | 123 | %install |
124 | rm -rf $RPM_BUILD_ROOT | |
c85fa412 | 125 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man{1,4},%{_bindir}} |
57ebe208 ER |
126 | cp -p mailcap mime.types $RPM_BUILD_ROOT%{_sysconfdir} |
127 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man4 | |
128 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1/run-%{name}.1 | |
c5fe3917 | 129 | install -p %{SOURCE3} $RPM_BUILD_ROOT%{_bindir} |
ea459c09 | 130 | |
ea459c09 | 131 | %clean |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %files | |
135 | %defattr(644,root,root,755) | |
c5fe3917 ER |
136 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mailcap |
137 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.types | |
138 | %attr(755,root,root) %{_bindir}/run-mailcap | |
139 | %{_mandir}/man1/run-mailcap.1* | |
140 | %{_mandir}/man4/mailcap.4* |