# TODO
# - use IANA as source http://www.iana.org/assignments/media-types/ ?
%bcond_without tests
-#
-%define fcver 2.1.31
+
+%define fcver 2.1.31
Summary: Defines multimedia helper applications for various programs
Summary(de.UTF-8): Definiert Multimedia-Hilfsapplikationen für diverse Programme
Summary(es.UTF-8): Define aplicaciones auxiliares multimedia para varios programas
Release: 4
License: Public Domain
Group: Base
-Source0: https://fedorahosted.org/released/mailcap/mailcap-%{fcver}.tar.gz
+Source0: https://fedorahosted.org/released/mailcap/%{name}-%{fcver}.tar.gz
# Source0-md5: 54f487f4038b703a3e87c2b95334857d
Source1: %{name}
Source2: %{name}.4
Source3: run-%{name}
Source4: run-%{name}.man
+Patch0: mime.types.patch
BuildRequires: rpm >= 4.4.9-56
Suggests: ImageMagick-coder-jpeg
Suggests: ImageMagick-coder-png
%else
Suggests: xterm
%endif
-Conflicts: rpm < 4.4.9
%{?with_tests:BuildRequires:perl-base}
+Conflicts: rpm < 4.4.9
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q -n %{name}-%{fcver}
+%patch0 -p1
cp -a %{SOURCE1} mailcap
%if "%{pld_release}" == "ac"
--- /dev/null
+--- mailcap-2.1.31/mime.types~ 2009-11-17 23:13:33.000000000 +0200
++++ mailcap-2.1.31/mime.types 2010-08-26 19:28:52.629404880 +0300
+@@ -843,6 +843,7 @@
+ application/xop+xml xop
+ application/xslt+xml xsl xslt
+ application/xv+xml mxml xhvml xvml xvm
++application/x-windows-gadget gadget
+ application/zip zip
+ audio/32kadpcm 726
+ # 3gp, 3gpp: video/3gpp