1 |
# Defined in CVS makefile. |
Summary: Helper application and MIME type associations for file types |
|
|
|
|
Summary: Associates helper applications with particular file types |
|
2 |
Name: mailcap |
Name: mailcap |
3 |
Version: 2.0.4 |
Version: 2.1.42 |
4 |
Release: %mkrel 30 |
Release: %mkrel 1 |
5 |
License: Public Domain |
License: Public Domain and MIT |
6 |
Group: System/Networking |
Group: System Environment/Base |
7 |
Source0: %{name}-%{version}.tar.bz2 |
Source0: https://fedorahosted.org/released/mailcap/%{name}-%{version}.tar.xz |
8 |
Source1: mime.types |
Patch0: mailcap-2.1.42-mga-mailcap-modifications.patch |
|
Patch0: mailcap-2.0.4.patch |
|
|
Patch1: mailcap-2.0.4-java-web-start.patch |
|
|
Patch2: mailcap-2.0.4-ooffice.patch |
|
|
Patch3: mailcap-2.0.4-mailcap.vga.patch |
|
9 |
BuildArch: noarch |
BuildArch: noarch |
10 |
|
|
11 |
%description |
%description |
18 |
Mailcap should be installed to allow certain programs to be able to |
Mailcap should be installed to allow certain programs to be able to |
19 |
handle non-text files. |
handle non-text files. |
20 |
|
|
21 |
|
Also included in this package is the mime.types file which contains a |
22 |
|
list of MIME types and their filename "extension" associations, used |
23 |
|
by several applications e.g. to determine MIME types for filenames. |
24 |
|
|
25 |
%prep |
%prep |
26 |
%setup -q |
%setup -q |
27 |
%patch0 -p1 -b .mdk |
|
28 |
%patch1 -p1 -b .javastart |
%apply_patches |
|
%patch2 -p1 -b .ooffice |
|
|
%patch3 -p1 -b .mailcap.vga |
|
29 |
|
|
30 |
%install |
%install |
|
perl -pi -e "s!/usr/man!%{_mandir}!g" Makefile |
|
31 |
%makeinstall |
%makeinstall |
32 |
|
|
|
# overwrite the original one, which is outdated |
|
|
install -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/mime.types |
|
33 |
|
|
34 |
%files |
%files |
|
%doc ChangeLog |
|
35 |
%config(noreplace) %{_sysconfdir}/mailcap |
%config(noreplace) %{_sysconfdir}/mailcap |
|
%config(noreplace) %{_sysconfdir}/mailcap.vga |
|
36 |
%config(noreplace) %{_sysconfdir}/mime.types |
%config(noreplace) %{_sysconfdir}/mime.types |
37 |
%{_mandir}/man4/* |
%{_mandir}/man4/* |