2 # - drop fonts and sun/apple/server stuff as did debian? (read debian/README.debian)
5 Summary: Collection of MIME handling utilities
6 Summary(de): Sammlung von MIME-Behandlungs-Utilities
7 Summary(fr): Ensemble d'utilitaires de gestion MIME
8 Summary(pl): Zestaw narzêdzi do obs³ugi standardu MIME
9 Summary(tr): MIME iþleme araçlarý
11 Version: %{_ver}.%{_debrel}
14 Group: Applications/Mail
15 Source0: ftp://thumper.bellcore.com/pub/nsb/mm%{_ver}.tar.Z
16 # Source0-md5: fd5617ea87e20d7f2fa839e1d1fede60
17 Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
18 # Source1-md5: 0ad0e591d536bc4e0d5ae97514ee6cc4
20 Source3: ftp://ftp.debian.org/debian/pool/main/m/metamail/%{name}_%{_ver}-%{_debrel}.diff.gz
21 # Source3-md5: 43d21022f048b6610932cf6f6f46b516
22 Patch0: %{name}-ncurses.patch
23 Patch1: %{name}-pager.patch
24 Patch2: %{name}-linux.patch
25 Patch3: %{name}-fixawk.patch
26 Patch4: %{name}-fonts.patch
27 Patch5: %{name}-am.patch
28 Patch6: %{name}-suggestedname.patch
29 Patch7: %{name}-metasend_mktemp.patch
30 BuildRequires: XFree86
31 BuildRequires: autoconf
32 BuildRequires: automake
33 BuildRequires: libtool
34 BuildRequires: ncurses-devel >= 5.0
35 Requires: /usr/lib/sendmail
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %define _fontdir %{_libdir}/metamail/fonts
45 Metamail is an implementation of MIME, the Multipurpose Internet Mail
46 Extensions, a proposed standard for multimedia mail on the Internet.
47 Metamail implements MIME, and also implements extensibility and
48 configuration via the "mailcap" mechanism described in an
49 informational RFC that is a companion to the MIME document.
51 This version includes Debian patches.
54 Metamail obs³uguje standard MIME (rozszerzenie poczty internetowej dla
55 ró¿nych celów) u¿ywany do przesy³ania poczt± plików multimedialnych.
56 MIME jest te¿ wykorzystywany do kodowania znaków narodowych w listach
57 i artyku³ach news. Metamail jest konfigurowalny poprzez mechanizm
58 "mailcap" opisany w informacyjnym RFC towarzysz±cym dokumentacji MIME.
60 Ta wersja zawiera ³aty z Debiana.
63 %setup -q -n mm%{_ver}
66 # there's {metamail,richmail} unused in debian patch and metamail is libmetamail sources
67 # but due debian patch patching (erronously probably) metamail/splitmail.c, we need to keep it first
69 mv metamail metamail.org
71 mv metamail.org/splitmail.c metamail
73 %{__gzip} -dc %{SOURCE3} | %{__patch} -p1
75 # needed as file was created from patching
93 %{__aclocal} -I config
104 rm -rf $RPM_BUILD_ROOT
105 install -d $RPM_BUILD_ROOT{%{_bindir},%{_fontdir},%{_mandir}/man1}
109 DESTDIR=$RPM_BUILD_ROOT
111 install man/* debian/mimencode.1 debian/mimeit.1 $RPM_BUILD_ROOT%{_mandir}/man1
113 install fonts/*.pcf $RPM_BUILD_ROOT%{_fontdir}
114 install fonts/fonts.alias $RPM_BUILD_ROOT%{_fontdir}
115 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
116 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}
117 mkfontdir $RPM_BUILD_ROOT%{_fontdir}
119 #ln -f $RPM_BUILD_ROOT%{_bindir}/mmencode $RPM_BUILD_ROOT%{_bindir}/mimencode
120 rm -rf $RPM_BUILD_ROOT%{_includedir}/metamail
121 rm -f $RPM_BUILD_ROOT%{_libdir}/libmetamail.la
123 # that site doesn't exist
124 rm $RPM_BUILD_ROOT{%{_bindir}/patch-metamail,%{_mandir}/man1/patch-metamail.1}
127 rm -rf $RPM_BUILD_ROOT
129 %post -p /sbin/ldconfig
130 %postun -p /sbin/ldconfig
133 %defattr(644,root,root,755)
134 %doc src/{README,CREDITS,mailers.txt}
135 %attr(755,root,root) %{_bindir}/*
136 %attr(755,root,root) %{_libdir}/libmetamail.so.*.*.*
139 %lang(fi) %{_mandir}/fi/man1/*
140 %lang(pl) %{_mandir}/pl/man1/*