1 | Summary: The /bin/mail program, which is used to send mail via shell scripts. |
---|
2 | Summary(ja): シェルスクリプトからメールを送る /bin/mail プログラム |
---|
3 | Name: mailx |
---|
4 | Version: 8.1.1 |
---|
5 | Release: 36%{?_dist_release} |
---|
6 | License: BSD |
---|
7 | Group: Applications/Internet |
---|
8 | Source: ftp://ftp.debian.org/pub/debian/hamm/source/mail/mailx-8.1.1.tar.gz |
---|
9 | Source1: flock.c |
---|
10 | Patch0: mailx-8.1.1.debian.patch |
---|
11 | Patch1: mailx-8.1.1.security.patch |
---|
12 | Patch2: mailx-8.1.1.nolock.patch |
---|
13 | Patch3: mailx-8.1.1.debian2.patch |
---|
14 | Patch4: mailx-noroot.patch |
---|
15 | Patch5: mailx-nopanic.patch |
---|
16 | Patch6: mailx-nullchar.patch |
---|
17 | Patch7: mailx-8.1.1-fhs.patch |
---|
18 | Patch8: mailx-8.1.1-environ.patch |
---|
19 | Patch9: mailx-8.1.1-siglj.patch |
---|
20 | Patch10: mailx-8.1.1-bug15728.patch |
---|
21 | Patch11: mailx-8.1.1-bug10074.patch |
---|
22 | Patch12: mailx-8.1.1-uidcheck.patch |
---|
23 | Patch13: mailx-8.1.1-flock.patch |
---|
24 | Patch14: mailx-8.1.1-nostrip.patch |
---|
25 | Patch15: mailx-8.1.1-ctime.patch |
---|
26 | # bug fix for environ patch for Vine Linux |
---|
27 | #Patch9: mailx-fio.patch |
---|
28 | |
---|
29 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
30 | |
---|
31 | |
---|
32 | %description |
---|
33 | The mailx package installs the /bin/mail program, which is used to |
---|
34 | send quick email messages (i.e., without opening up a full-featured |
---|
35 | mail user agent). Mail is often used in shell scripts. |
---|
36 | |
---|
37 | You should install mailx because of its quick email sending ability, |
---|
38 | which is especially useful if you're planning on writing any shell |
---|
39 | scripts. |
---|
40 | |
---|
41 | %description -l ja |
---|
42 | mailx パッケージは /bin/mail プログラムをインストールします. |
---|
43 | /bin/mail は,多機能のメールクライアントを起動すること無く迅速に |
---|
44 | メールを送信するのに使われます./bin/mail はシェルスクリプトから |
---|
45 | よく使われています. |
---|
46 | |
---|
47 | メール送信が関係するシェルスクリプト作成を検討しているのならば, |
---|
48 | 迅速なメール送信機能を備えた mailx パッケージを是非インストールして下さい. |
---|
49 | |
---|
50 | |
---|
51 | %prep |
---|
52 | %setup -q |
---|
53 | cp %{SOURCE1} . |
---|
54 | %patch0 -p1 -b .debian |
---|
55 | %patch1 -p1 -b .security |
---|
56 | %patch2 -p1 -b .nolock |
---|
57 | %patch3 -p1 -b .debian2 |
---|
58 | %patch4 -p1 -b .noroot |
---|
59 | %patch5 -p1 -b .nopanic |
---|
60 | %patch6 -p1 -b .nullchar |
---|
61 | %patch7 -p1 -b .fhs |
---|
62 | %patch8 -p1 -b .environ |
---|
63 | %patch9 -p1 -b .siglj |
---|
64 | %patch10 -p1 -b .bug15728 |
---|
65 | %patch11 -p1 -b .bug10074 |
---|
66 | %patch12 -p1 -b .uidcheck |
---|
67 | %patch13 -p1 -b .flock |
---|
68 | %patch14 -p1 |
---|
69 | %patch15 -p1 |
---|
70 | |
---|
71 | #%patch9 -p0 -b .fio |
---|
72 | |
---|
73 | |
---|
74 | %build |
---|
75 | make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" |
---|
76 | |
---|
77 | |
---|
78 | %install |
---|
79 | rm -rf ${RPM_BUILD_ROOT} |
---|
80 | mkdir -p ${RPM_BUILD_ROOT}/{bin,etc} |
---|
81 | mkdir -p ${RPM_BUILD_ROOT}%{_bindir} |
---|
82 | mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/lib |
---|
83 | mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 |
---|
84 | |
---|
85 | make DESTDIR=${RPM_BUILD_ROOT} bindir=%{_bindir} mandir=%{_mandir} install |
---|
86 | |
---|
87 | ( cd ${RPM_BUILD_ROOT} |
---|
88 | mv .%{_bindir}/mail ./bin/mail |
---|
89 | chmod g-s ./bin/mail |
---|
90 | ln -sf ../../bin/mail .%{_bindir}/Mail |
---|
91 | ln -sf mail.1 .%{_mandir}/man1/Mail.1 |
---|
92 | ) |
---|
93 | |
---|
94 | |
---|
95 | %clean |
---|
96 | rm -rf ${RPM_BUILD_ROOT} |
---|
97 | |
---|
98 | |
---|
99 | %files |
---|
100 | %defattr(-,root,root) |
---|
101 | %attr(755,root,mail) /bin/mail |
---|
102 | %{_bindir}/Mail |
---|
103 | %{_prefix}/lib/mail.help |
---|
104 | %{_prefix}/lib/mail.tildehelp |
---|
105 | %config(noreplace) /etc/mail.rc |
---|
106 | %{_mandir}/man1/mail.1* |
---|
107 | %{_mandir}/man1/Mail.1* |
---|
108 | |
---|
109 | |
---|
110 | %changelog |
---|
111 | * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 8.1.1-36 |
---|
112 | - rebuilt with rpm-4.8.1-3 |
---|
113 | |
---|
114 | * Sun Oct 18 2009 Shu KONNO <owa@bg.wakwak.com> 8.1.1-35 |
---|
115 | - applied vine5 updates |
---|
116 | * Wed Sep 09 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 8.1.1-35 |
---|
117 | - use %%{_prefix}/lib to build on x86_64 |
---|
118 | |
---|
119 | * Tue Sep 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 8.1.1-34 |
---|
120 | - man files in the wrong location - fixed. |
---|
121 | |
---|
122 | * Tue Aug 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.1.1-33 |
---|
123 | - applied new versioning policy |
---|
124 | - spec in UTF-8 |
---|
125 | |
---|
126 | * Sat Sep 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 8.1.1-32vl2 |
---|
127 | - rebuild to add gpg sign |
---|
128 | |
---|
129 | * Fri Mar 26 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 8.1.1-32vl1 |
---|
130 | - rebuilt with new toolchains |
---|
131 | - s/Copyright/License/ |
---|
132 | - added Patch9--Patch15 from Fedora 8.1.1-32 |
---|
133 | * Fri Aug 01 2003 Florian La Roche <Florian.LaRoche@redhat.de> |
---|
134 | - fix include file order #101251 |
---|
135 | * Thu Aug 24 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
136 | - clean up flock() usage -- LOCK_EX shouldn't work on read-only descriptors |
---|
137 | * Mon Aug 21 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
138 | - patch to use fcntl() for locking instead of flock() (#15779) |
---|
139 | - patch to ignore ~/.mailrc if it's owned by anyone other than the owner of |
---|
140 | this process |
---|
141 | - clean up flock() emulation semantics |
---|
142 | * Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com> |
---|
143 | - summaries from specspo. |
---|
144 | * Fri Aug 11 2000 Jeff Johnson <jbj@redhat.com> |
---|
145 | - time to use sigsetjmp/siglongjmp (#14010). |
---|
146 | - avoid indexing on NOSTR valued pointer (#15728). |
---|
147 | - ignore MAIL enviromment variable when invoked with -u (#10074). |
---|
148 | - mailx-fio.patch dropped because it was merged Patch8 |
---|
149 | |
---|
150 | * Mon Jun 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
151 | - 8.1.1-16vl2 |
---|
152 | - rebuilt for VineSeed, as well as adding Japanese summary/description |
---|
153 | - define %%{_mandir} on the top of this spec file :-P |
---|
154 | |
---|
155 | * Mon Sep 18 2000 Jun Nishii <jun@vinelinux.org> |
---|
156 | - added fio-patch to fix bug for `mail -f` |
---|
157 | |
---|
158 | * Mon Aug 7 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
159 | - disable security-prone variables-inherited-from-environment behavior |
---|
160 | - inherit only SHELL, DEAD, PAGER, LISTER, EDITOR, VISUAL, MBOX from environment |
---|
161 | - document the environment variables that are used |
---|
162 | |
---|
163 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
---|
164 | - automatic rebuild |
---|
165 | |
---|
166 | * Wed Jun 21 2000 Preston Brown <pbrown@redhat.com> |
---|
167 | - noreplace mail.rc |
---|
168 | |
---|
169 | * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> |
---|
170 | - FHS packaging. |
---|
171 | |
---|
172 | * Sun May 7 2000 Bill Nottingham <notting@redhat.com> |
---|
173 | - fix explosions on ia64 |
---|
174 | |
---|
175 | * Thu Feb 03 2000 Elliot Lee <sopwith@redhat.com> |
---|
176 | - Fix bug #8451 |
---|
177 | - Fix bug #8100 |
---|
178 | |
---|
179 | * Tue Aug 31 1999 Bill Nottingham <notting@redhat.com> |
---|
180 | - fix pathnames |
---|
181 | - take out makefile install crud |
---|
182 | |
---|
183 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
184 | - auto rebuild in the new build environment (release 8) |
---|
185 | |
---|
186 | * Thu Aug 27 1998 Alan Cox <alan@redhat.com> |
---|
187 | - Synchronized with the Debian people (more small edge case cures) |
---|
188 | |
---|
189 | * Tue Aug 4 1998 Jeff Johnson <jbj@redhat.com> |
---|
190 | - build root |
---|
191 | |
---|
192 | * Wed Jun 24 1998 Alan Cox <alan@redhat.com> |
---|
193 | - Switched dotlocking off. This fits the Red Hat model of not having setgid |
---|
194 | mail agents and fixes the "lock" problem reported. |
---|
195 | |
---|
196 | * Mon Jun 22 1998 Alan Cox <alan@redhat.com> |
---|
197 | - Buffer overrun patches. These dont bite us when we don't run mailx setgid |
---|
198 | but do want to be in as mailx needs to be setgid |
---|
199 | |
---|
200 | * Fri Jun 12 1998 Alan Cox <alan@redhat.com> |
---|
201 | - Moved from 5.5 to the OpenBSD 8.1 release plus Debian patches |
---|
202 | |
---|
203 | * Tue May 05 1998 Prospector System <bugs@redhat.com> |
---|
204 | - translations modified for de, fr, tr |
---|
205 | |
---|
206 | * Tue Oct 21 1997 Donnie Barnes <djb@redhat.com> |
---|
207 | - spec file cleanups |
---|
208 | |
---|
209 | * Thu Jun 12 1997 Erik Troan <ewt@redhat.com> |
---|
210 | - built against glibc |
---|