Commit c5690fcf c5690fcfb55fff31188fe11ad0775af7913a669d by Wojciech Polak

Major changes. Added new packages, changed package names.

1 parent 01fc3bb3
...@@ -2,112 +2,208 @@ ...@@ -2,112 +2,208 @@
2 %define rel 1 2 %define rel 1
3 %define prefix /usr 3 %define prefix /usr
4 4
5 Summary: GNU mail utilities 5 Summary: GNU Mailutils
6 Name: mailutils 6 Name: mailutils
7 Version: @VERSION@ 7 Version: @VERSION@
8 Release: %rel 8 Release: %rel
9 Copyright: GPL 9 Copyright: GPL
10 Source: ftp://ftp.gnu.org/pub/%{name}/%{name}-%{version}.tar.gz 10 Source: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
11 BuildRoot: /var/tmp/%{name}-%{version}-root 11 BuildRoot: /var/tmp/%{name}-%{version}-root
12 URL: http://www.gnu.org/software/%{name}/%{name}.html 12 URL: http://www.gnu.org/software/%{name}/%{name}.html
13 Group: Development/Libraries 13 Group: Console/Mail
14 Requires: libmailutils, guile >= 1.6, readline
15 BuildRequires: guile >= 1.6, readline-devel, emacs
14 16
15 %description 17 %description
16 GNU mail utilities 18 GNU Mailutils contains a series of useful mail clients, servers, and
17 19 libraries. These are the primary mail utilities of the GNU system.
18 %package -n libmailbox 20 This package provides a replacement for /bin/mail(x) conforming to
19 Summary: GNU mail utilities mailbox access library 21 the UNIX98 specification for mailx. Provides also mail.local,
22 mail.remote, and other tools including guimb, dotlock, frm.
23
24 %package -n libmailutils
25 Summary: GNU Mailutils: mailbox access library.
20 Copyright: LGPL 26 Copyright: LGPL
21 Group: Development/Libraries 27 Group: System Environment/Libraries
22 28
23 %description -n libmailbox 29 %description -n libmailutils
24 The runtime library libmailbox. This library contains various mailbox 30 The runtime library libmailbox contains various mailbox access
25 access routines and support for a number of mailbox types, such as 31 routines and support for a number of mailbox types, such as mbox,
26 mbox, mh, POP3, and IMAP4. It also support mime message handling, 32 mh, POP3, and IMAP4. It also supports MIME message handling,
27 and sending mail via SMTP and /sbin/sendmail. 33 and sending mail via SMTP and /sbin/sendmail.
28 34
29 %package -n libmailbox-dev 35 %package -n libmailutils-dev
30 Summary: GNU mail utilities mailbox access library development 36 Summary: GNU Mailutils: mailbox access library development.
31 Copyright: LGPL 37 Copyright: LGPL
32 Requires: libmailbox 38 Requires: libmailutils
33 Group: Development/Libraries 39 Group: Development/Libraries
34 40
35 %description -n libmailbox-dev 41 %description -n libmailutils-dev
36 The static library and header files for libmailbox. API documentation 42 The static libraries and header files for GNU Mailutils.
37 is in %{name}-doc.
38 43
39 %package doc 44 %package doc
40 Summary: GNU mail utitlies documentation 45 Summary: GNU Mailutils: documentation.
46 Copyright: FDL
41 Prereq: /sbin/install-info 47 Prereq: /sbin/install-info
42 Group: Development/Libraries 48 Group: Development/Libraries
43 49
44 %description doc 50 %description doc
45 API reference for libmailbox and user documentation for the rest of 51 API reference for libmailbox and user documentation for the rest of
46 the GNU mail utilities. 52 the GNU Mailutils.
47 53
48 %package -n gnu-mail 54 %package -n mailutils-pop3d
49 Summary: GNU mail utilties mail(x) replacement 55 Summary: GNU Mailutils: POP3 daemon.
50 Requires: libmailbox 56 Copyright: GPL
51 Group: Console/Mail 57 Requires: libmailutils
58 Group: Networking/Daemons
52 59
53 %description -n gnu-mail 60 %description -n mailutils-pop3d
54 A replacement for /bin/mail(x) conforming to the UNIX98 specification 61 The GNU POP3 daemon. Uses libmailbox to support different styles of
55 for mailx. 62 mailboxes.
56 63
57 %package -n gnu-pop3d 64 %package -n mailutils-imap4d
58 Summary: GNU mail utilites POP3 daemon 65 Summary: GNU Mailutils: IMAP4 daemon.
59 Requires: libmailbox 66 Copyright: GPL
67 Requires: libmailutils
60 Group: Networking/Daemons 68 Group: Networking/Daemons
61 69
62 %description -n gnu-pop3d 70 %description -n mailutils-imap4d
63 The GNU POP3 daemon. Uses libmailbox to support different styles of 71 The GNU IMAP4 daemon. Uses libmailbox to support different styles of
64 mailboxes. 72 mailboxes.
65 73
74 %package -n mailutils-sieve
75 Summary: GNU Mailutils: mail filtering language Sieve.
76 Copyright: LGPL
77 Requires: libmailutils
78 Group: System Environment/Libraries
79
80 %description -n mailutils-sieve
81 Libsieve is the GNU implementation of the mail filtering language Sieve,
82 described in RFC 3028 and RFC 3431. This packages contains also the
83 Sieve interpreter and Sieve to Scheme translator and filter.
84
85 %package -n mailutils-comsatd
86 Summary: GNU Mailutils: Comsat daemon.
87 Copyright: GPL
88 Requires: libmailutils
89 Group: Networking/Daemons
90
91 %description -n mailutils-comsatd
92 The GNU Comsat daemon.
93
94 %package -n mailutils-mh
95 Summary: GNU Mailutils: The Message Handling System.
96 Copyright: GPL
97 Requires: libmailutils
98 Group: Console/Mail
99
100 %description -n mailutils-mh
101 The GNU MH (Message Handling System).
102
66 %prep 103 %prep
67 %setup 104 %setup -q
68 105
69 %build 106 %build
70 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix 107 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --enable-mh-utils
71 make 108 make
72 109
73 %install 110 %install
74 rm -rf $RPM_BUILD_ROOT 111 rm -rf $RPM_BUILD_ROOT
75 make prefix=$RPM_BUILD_ROOT%{prefix} install-strip 112 mkdir -p $RPM_BUILD_ROOT
76 gzip -9n $RPM_BUILD_ROOT%{prefix}/info/* 113 make prefix=$RPM_BUILD_ROOT%{prefix} install
77 114
78 %clean 115 %clean
79 rm -rf $RPM_BUILD_ROOT 116 rm -rf $RPM_BUILD_ROOT
117 make distclean
80 118
81 %post -n libmailbox -p /sbin/ldconfig 119 %post -n libmailutils -p /sbin/ldconfig
82 120 %postun -n libmailutils -p /sbin/ldconfig
83 %postun -n libmailbox -p /sbin/ldconfig 121 %post -n mailutils-sieve -p /sbin/ldconfig
122 %postun -n mailutils-sieve -p /sbin/ldconfig
84 123
85 %post doc 124 %post doc
86 /sbin/install-info %{prefix}/info/mailutils.info.gz %{prefix}/info/dir 125 /sbin/install-info %{prefix}/info/mailutils.info.gz %{prefix}/info/dir
87 126
88 %preun doc 127 %preun doc
89 /sbin/install-info --delete %{prefix}/info/mailutils.info.gz \ 128 /sbin/install-info --delete %{prefix}/info/mailutils.info.gz %{prefix}/info/dir
90 %{prefix}/info/dif
91 129
92 %files -n libmailbox 130 %files -n mailutils
131 %defattr(-, root, root)
132 %{prefix}/bin/mail
133 %{prefix}/bin/guimb
134 %{prefix}/bin/dotlock
135 %{prefix}/bin/frm
136 %{prefix}/bin/from
137 %{prefix}/bin/messages
138 %{prefix}/bin/readmsg
139 %{prefix}/libexec/*
140
141 %files -n libmailutils
93 %defattr(-, root, root) 142 %defattr(-, root, root)
94 %{prefix}/lib/libmailbox.so.* 143 %{prefix}/lib/libmailbox.so.*
144 %{prefix}/lib/libmu_scm.so.*
145 %{prefix}/lib/libmuauth.so.*
146 %{prefix}/share/mailutils/mailutils.scm
147 %{prefix}/share/mailutils/*.txt
148 %{prefix}/share/locale/*/LC_MESSAGES/mailutils.mo
95 149
96 %files -n libmailbox-dev 150 %files -n libmailutils-dev
97 %defattr(-, root, root) 151 %defattr(-, root, root)
98 %{prefix}/lib/lib*.so 152 %{prefix}/bin/mailutils-config
99 %{prefix}/lib/*a 153 %{prefix}/lib/libmailbox.*a
154 %{prefix}/lib/libmu_scm.*a
155 %{prefix}/lib/libmuauth.*a
156 %{prefix}/include
100 157
101 %files doc 158 %files doc
102 %defattr(-, root, root) 159 %defattr(-, root, root)
103 %doc AUTHORS COPYING COPYING.LIB COPYING.FDL ChangeLog NEWS README THANKS TODO 160 %doc AUTHORS COPYING* ChangeLog NEWS README THANKS TODO
104 %{prefix}/info/* 161 %{prefix}/info/*
105 162
106 %files -n gnu-mail 163 %files -n mailutils-pop3d
107 %defattr(-, root, root) 164 %defattr(-, root, root)
108 %{prefix}/bin/mail 165 %{prefix}/sbin/pop3d
166 %{prefix}/man/*/pop*
109 167
110 %files -n gnu-pop3d 168 %files -n mailutils-imap4d
111 %defattr(-, root, root) 169 %defattr(-, root, root)
112 %{prefix}/sbin/pop3d 170 %{prefix}/sbin/imap4d
171 %{prefix}/man/*/imap4d*
172
173 %files -n mailutils-comsatd
174 %defattr(-, root, root)
175 %{prefix}/sbin/comsatd
176
177 %files -n mailutils-sieve
178 %defattr(-, root, root)
179 %{prefix}/bin/sieve*
180 %{prefix}/lib/libsieve.so.*
181 %{prefix}/lib/libsieve.*a
182 %{prefix}/lib/mailutils/numaddr*
183 %{prefix}/share/mailutils/*.scm
113 184
185 %files -n mailutils-mh
186 %defattr(-, root, root)
187 %{prefix}/bin/mu-mh/anno
188 %{prefix}/bin/mu-mh/comp
189 %{prefix}/bin/mu-mh/fmtcheck
190 %{prefix}/bin/mu-mh/folder
191 %{prefix}/bin/mu-mh/forw
192 %{prefix}/bin/mu-mh/inc
193 %{prefix}/bin/mu-mh/install-mh
194 %{prefix}/bin/mu-mh/mark
195 %{prefix}/bin/mu-mh/mhl
196 %{prefix}/bin/mu-mh/mhn
197 %{prefix}/bin/mu-mh/mhpath
198 %{prefix}/bin/mu-mh/pick
199 %{prefix}/bin/mu-mh/refile
200 %{prefix}/bin/mu-mh/repl
201 %{prefix}/bin/mu-mh/rmf
202 %{prefix}/bin/mu-mh/rmm
203 %{prefix}/bin/mu-mh/scan
204 %{prefix}/bin/mu-mh/send
205 %{prefix}/bin/mu-mh/sortm
206 %{prefix}/bin/mu-mh/whatnow
207 %{prefix}/bin/mu-mh/whom
208 %{prefix}/share/mailutils/mh/*
209 %{prefix}/share/emacs/site-lisp/*
......