]> git.pld-linux.org Git - packages/metamail.git/blob - metamail.spec
- up to 2.7.52 (fixed core dumps with -w option)
[packages/metamail.git] / metamail.spec
1 # TODO
2 # - drop fonts and sun/apple/server stuff as did debian? (read debian/README.debian)
3 %define _ver    2.7
4 %define _debrel 52
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ý
10 Name:           metamail
11 Version:        %{_ver}.%{_debrel}
12 Release:        1
13 License:        GPL v2
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
19 Source2:        htmlview
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
36 Requires:       mktemp
37 Requires:       sharutils
38 Provides:       htmlview
39 Obsoletes:      htmlview
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %define         _fontdir        %{_libdir}/metamail/fonts
43
44 %description
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.
50
51 This version includes Debian patches.
52
53 %description -l pl
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.
59
60 Ta wersja zawiera ³aty z Debiana.
61
62 %prep
63 %setup -q -n mm%{_ver}
64 cd src
65
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
68 rm -rf richmail
69 mv metamail metamail.org
70 mkdir metamail
71 mv metamail.org/splitmail.c metamail
72
73 %{__gzip} -dc %{SOURCE3} | %{__patch} -p1
74
75 # needed as file was created from patching
76 chmod +x configure
77
78 # same as mimeencode
79 rm man/mmencode.1
80
81 cd ..
82 %patch0 -p1
83 %patch1 -p1
84 %patch2 -p1
85 %patch3 -p1
86 %patch4 -p1
87 %patch5 -p1
88 %patch6 -p1
89 %patch7 -p0
90
91 %build
92 cd src
93 %{__aclocal} -I config
94 %{__libtoolize}
95 %{__autoheader}
96 %{__automake}
97 %{__autoconf}
98 %configure \
99         --disable-static
100 %{__make} -j1
101 %{__make} -C fonts
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105 install -d $RPM_BUILD_ROOT{%{_bindir},%{_fontdir},%{_mandir}/man1}
106
107 cd src
108 %{__make} install \
109         DESTDIR=$RPM_BUILD_ROOT
110
111 install man/* debian/mimencode.1 debian/mimeit.1 $RPM_BUILD_ROOT%{_mandir}/man1
112
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}
118
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
122
123 # that site doesn't exist
124 rm $RPM_BUILD_ROOT{%{_bindir}/patch-metamail,%{_mandir}/man1/patch-metamail.1}
125
126 %clean
127 rm -rf $RPM_BUILD_ROOT
128
129 %post   -p /sbin/ldconfig
130 %postun -p /sbin/ldconfig
131
132 %files
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.*.*.*
137 %{_libdir}/metamail
138 %{_mandir}/man1/*
139 %lang(fi) %{_mandir}/fi/man1/*
140 %lang(pl) %{_mandir}/pl/man1/*
This page took 0.059887 seconds and 3 git commands to generate.