]> git.pld-linux.org Git - packages/metamail.git/blob - metamail.spec
- rel 3
[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:        3
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 Patch8:         %{name}-procmail_warning.patch
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 %patch8 -p1
91
92 %build
93 cd src
94 %{__aclocal} -I config
95 %{__libtoolize}
96 %{__autoheader}
97 %{__automake}
98 %{__autoconf}
99 %configure \
100         --disable-static
101 %{__make} -j1
102 %{__make} -C fonts
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106 install -d $RPM_BUILD_ROOT{%{_bindir},%{_fontdir},%{_mandir}/man1}
107
108 cd src
109 %{__make} install \
110         DESTDIR=$RPM_BUILD_ROOT
111
112 install man/* debian/mimencode.1 debian/mimeit.1 $RPM_BUILD_ROOT%{_mandir}/man1
113
114 install fonts/*.pcf       $RPM_BUILD_ROOT%{_fontdir}
115 install fonts/fonts.alias $RPM_BUILD_ROOT%{_fontdir}
116 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
117 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}
118 mkfontdir $RPM_BUILD_ROOT%{_fontdir}
119
120 #ln -f $RPM_BUILD_ROOT%{_bindir}/mmencode $RPM_BUILD_ROOT%{_bindir}/mimencode
121 rm -rf $RPM_BUILD_ROOT%{_includedir}/metamail
122 rm -f $RPM_BUILD_ROOT%{_libdir}/libmetamail.la
123
124 # that site doesn't exist
125 rm $RPM_BUILD_ROOT{%{_bindir}/patch-metamail,%{_mandir}/man1/patch-metamail.1}
126
127 %clean
128 rm -rf $RPM_BUILD_ROOT
129
130 %post   -p /sbin/ldconfig
131 %postun -p /sbin/ldconfig
132
133 %files
134 %defattr(644,root,root,755)
135 %doc src/{README,CREDITS,mailers.txt}
136 %attr(755,root,root) %{_bindir}/*
137 %attr(755,root,root) %{_libdir}/libmetamail.so.*.*.*
138 %{_libdir}/metamail
139 %{_mandir}/man1/*
140 %lang(fi) %{_mandir}/fi/man1/*
141 %lang(pl) %{_mandir}/pl/man1/*
This page took 0.076193 seconds and 3 git commands to generate.