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.2.20180807 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | License: BSD |
---|
7 | Group: Applications/Internet |
---|
8 | Source: http://deb.debian.org/debian/pool/main/b/bsd-mailx/bsd-mailx_8.1.2-0.20180807cvs.orig.tar.xz |
---|
9 | Patch0: 00-Makefiles.patch |
---|
10 | Patch1: 01-Fix-includes.patch |
---|
11 | Patch2: 02-Base-fixes-1.patch |
---|
12 | Patch3: 03-Base-fixes-2.patch |
---|
13 | Patch4: 04-Add-custom-header.patch |
---|
14 | Patch5: 05-Mailx-fixes.patch |
---|
15 | Patch6: 06-Use-lockf-instead-of-flock.patch |
---|
16 | Patch7: 07-Initialize-head-struct.patch |
---|
17 | Patch8: 08-Use-liblockfile-library.patch |
---|
18 | Patch9: 09-Saved-mbox-message.patch |
---|
19 | Patch10: 10-Reply-To-header.patch |
---|
20 | Patch11: 11-Showname-option.patch |
---|
21 | Patch12: 12-REPLYTO-can-be-set-in-.mailrc-too.patch |
---|
22 | Patch13: 13-Mailx-concatenates-messages.patch |
---|
23 | Patch14: 14-Truncate-mailbox-instead-of-deleting-it.patch |
---|
24 | Patch15: 15-No-space-left-in-tmp.patch |
---|
25 | Patch16: 16-Stdin-not-a-tty.patch |
---|
26 | Patch18: 18-Wait-for-sendmail.patch |
---|
27 | Patch19: 19-Fix-compilation-on-Hurd.patch |
---|
28 | Patch20: 20-Don-t-delete-temporary-file.patch |
---|
29 | Patch21: 21-Use-wordexpr-instead-of-echo.patch |
---|
30 | Patch22: 22-Replace-newlines-with-spaces.patch |
---|
31 | Patch24: 24-False-cant-send-email-errors.patch |
---|
32 | Patch25: 25-Fix-confusing-error.patch |
---|
33 | Patch26: 26-Add-missing-include.patch |
---|
34 | Patch27: 27-Use-FOPEN_MAX.patch |
---|
35 | Patch28: 28-Fix-gcc-warning.patch |
---|
36 | Patch29: 29-Document-two-dashes-separator.patch |
---|
37 | Patch30: 30-Add-missing-includes.patch |
---|
38 | Patch31: 31-Do-not-call-pledge.patch |
---|
39 | Patch32: 32-Fix-FTBFS-on-Hurd.patch |
---|
40 | Patch33: 33-Add-MIME-headers.patch |
---|
41 | Patch34: 34-Fix-strnvis.patch |
---|
42 | Patch35: 35-Fix-new-warnings-and-error.patch |
---|
43 | |
---|
44 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
45 | |
---|
46 | BuildRequires: libbsd-devel |
---|
47 | BuildRequires: liblockfile-devel |
---|
48 | |
---|
49 | Vendor: Project Vine |
---|
50 | Distribution: Vine Linux |
---|
51 | |
---|
52 | %description |
---|
53 | The mailx package installs the /bin/mail program, which is used to |
---|
54 | send quick email messages (i.e., without opening up a full-featured |
---|
55 | mail user agent). Mail is often used in shell scripts. |
---|
56 | |
---|
57 | You should install mailx because of its quick email sending ability, |
---|
58 | which is especially useful if you're planning on writing any shell |
---|
59 | scripts. |
---|
60 | |
---|
61 | %description -l ja |
---|
62 | mailx パッケージは /bin/mail プログラムをインストールします. |
---|
63 | /bin/mail は,多機能のメールクライアントを起動すること無く迅速に |
---|
64 | メールを送信するのに使われます./bin/mail はシェルスクリプトから |
---|
65 | よく使われています. |
---|
66 | |
---|
67 | メール送信が関係するシェルスクリプト作成を検討しているのならば, |
---|
68 | 迅速なメール送信機能を備えた mailx パッケージを是非インストールして下さい. |
---|
69 | |
---|
70 | |
---|
71 | %prep |
---|
72 | %setup -q -n bsd-mailx-8.1.2-0.20180807cvs.orig |
---|
73 | %autopatch -p1 |
---|
74 | |
---|
75 | %build |
---|
76 | make CFLAGS="%{optflags} -D_GNU_SOURCE -DDEBIAN" |
---|
77 | |
---|
78 | |
---|
79 | %install |
---|
80 | rm -rf %{buildroot} |
---|
81 | mkdir -p %{buildroot}/{bin,etc} |
---|
82 | mkdir -p %{buildroot}%{_bindir} |
---|
83 | mkdir -p %{buildroot}%{_datadir}/bsd-mailx |
---|
84 | mkdir -p %{buildroot}%{_mandir}/man1 |
---|
85 | |
---|
86 | make DESTDIR=%{buildroot} bindir=%{_bindir} mandir=%{_mandir} install |
---|
87 | |
---|
88 | ( cd %{buildroot} |
---|
89 | mv -f .%{_bindir}/bsd-mailx ./bin/mail |
---|
90 | chmod g-s ./bin/mail |
---|
91 | ln -sf ../../bin/mail .%{_bindir}/Mail |
---|
92 | ln -sf mail.1 .%{_mandir}/man1/Mail.1 |
---|
93 | mv -f .%{_mandir}/man1/bsd-mailx.1 .%{_mandir}/man1/mail.1 |
---|
94 | ) |
---|
95 | |
---|
96 | |
---|
97 | %clean |
---|
98 | rm -rf %{buildroot} |
---|
99 | |
---|
100 | %files |
---|
101 | %defattr(-,root,root) |
---|
102 | %attr(755,root,mail) /bin/mail |
---|
103 | %{_bindir}/Mail |
---|
104 | %{_datadir}/bsd-mailx |
---|
105 | %config(noreplace) /etc/mail.rc |
---|
106 | %{_mandir}/man1/mail.1* |
---|
107 | %{_mandir}/man1/Mail.1* |
---|
108 | |
---|
109 | |
---|
110 | %changelog |
---|
111 | * Sat Mar 21 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.1.2.20180807cvs-1 |
---|
112 | - updated to 8.1.2.20180807cvs. |
---|
113 | - dropped Source1. |
---|
114 | - dropped all patches. |
---|
115 | - imported patches from debian. |
---|
116 | |
---|
117 | * Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 8.1.1-37 |
---|
118 | - rebuild with VineSeed environment |
---|
119 | |
---|
120 | * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 8.1.1-36 |
---|
121 | - rebuilt with rpm-4.8.1-3 |
---|
122 | |
---|
123 | * Sun Oct 18 2009 Shu KONNO <owa@bg.wakwak.com> 8.1.1-35 |
---|
124 | - applied vine5 updates |
---|
125 | * Wed Sep 09 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 8.1.1-35 |
---|
126 | - use %%{_prefix}/lib to build on x86_64 |
---|
127 | |
---|
128 | * Tue Sep 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 8.1.1-34 |
---|
129 | - man files in the wrong location - fixed. |
---|
130 | |
---|
131 | * Tue Aug 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.1.1-33 |
---|
132 | - applied new versioning policy |
---|
133 | - spec in UTF-8 |
---|
134 | |
---|
135 | * Sat Sep 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 8.1.1-32vl2 |
---|
136 | - rebuild to add gpg sign |
---|
137 | |
---|
138 | * Fri Mar 26 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 8.1.1-32vl1 |
---|
139 | - rebuilt with new toolchains |
---|
140 | - s/Copyright/License/ |
---|
141 | - added Patch9--Patch15 from Fedora 8.1.1-32 |
---|
142 | * Fri Aug 01 2003 Florian La Roche <Florian.LaRoche@redhat.de> |
---|
143 | - fix include file order #101251 |
---|
144 | * Thu Aug 24 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
145 | - clean up flock() usage -- LOCK_EX shouldn't work on read-only descriptors |
---|
146 | * Mon Aug 21 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
147 | - patch to use fcntl() for locking instead of flock() (#15779) |
---|
148 | - patch to ignore ~/.mailrc if it's owned by anyone other than the owner of |
---|
149 | this process |
---|
150 | - clean up flock() emulation semantics |
---|
151 | * Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com> |
---|
152 | - summaries from specspo. |
---|
153 | * Fri Aug 11 2000 Jeff Johnson <jbj@redhat.com> |
---|
154 | - time to use sigsetjmp/siglongjmp (#14010). |
---|
155 | - avoid indexing on NOSTR valued pointer (#15728). |
---|
156 | - ignore MAIL enviromment variable when invoked with -u (#10074). |
---|
157 | - mailx-fio.patch dropped because it was merged Patch8 |
---|
158 | |
---|
159 | * Mon Jun 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
160 | - 8.1.1-16vl2 |
---|
161 | - rebuilt for VineSeed, as well as adding Japanese summary/description |
---|
162 | - define %%{_mandir} on the top of this spec file :-P |
---|
163 | |
---|
164 | * Mon Sep 18 2000 Jun Nishii <jun@vinelinux.org> |
---|
165 | - added fio-patch to fix bug for `mail -f` |
---|
166 | |
---|
167 | * Mon Aug 7 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
168 | - disable security-prone variables-inherited-from-environment behavior |
---|
169 | - inherit only SHELL, DEAD, PAGER, LISTER, EDITOR, VISUAL, MBOX from environment |
---|
170 | - document the environment variables that are used |
---|
171 | |
---|
172 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
---|
173 | - automatic rebuild |
---|
174 | |
---|
175 | * Wed Jun 21 2000 Preston Brown <pbrown@redhat.com> |
---|
176 | - noreplace mail.rc |
---|
177 | |
---|
178 | * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> |
---|
179 | - FHS packaging. |
---|
180 | |
---|
181 | * Sun May 7 2000 Bill Nottingham <notting@redhat.com> |
---|
182 | - fix explosions on ia64 |
---|
183 | |
---|
184 | * Thu Feb 03 2000 Elliot Lee <sopwith@redhat.com> |
---|
185 | - Fix bug #8451 |
---|
186 | - Fix bug #8100 |
---|
187 | |
---|
188 | * Tue Aug 31 1999 Bill Nottingham <notting@redhat.com> |
---|
189 | - fix pathnames |
---|
190 | - take out makefile install crud |
---|
191 | |
---|
192 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
193 | - auto rebuild in the new build environment (release 8) |
---|
194 | |
---|
195 | * Thu Aug 27 1998 Alan Cox <alan@redhat.com> |
---|
196 | - Synchronized with the Debian people (more small edge case cures) |
---|
197 | |
---|
198 | * Tue Aug 4 1998 Jeff Johnson <jbj@redhat.com> |
---|
199 | - build root |
---|
200 | |
---|
201 | * Wed Jun 24 1998 Alan Cox <alan@redhat.com> |
---|
202 | - Switched dotlocking off. This fits the Red Hat model of not having setgid |
---|
203 | mail agents and fixes the "lock" problem reported. |
---|
204 | |
---|
205 | * Mon Jun 22 1998 Alan Cox <alan@redhat.com> |
---|
206 | - Buffer overrun patches. These dont bite us when we don't run mailx setgid |
---|
207 | but do want to be in as mailx needs to be setgid |
---|
208 | |
---|
209 | * Fri Jun 12 1998 Alan Cox <alan@redhat.com> |
---|
210 | - Moved from 5.5 to the OpenBSD 8.1 release plus Debian patches |
---|
211 | |
---|
212 | * Tue May 05 1998 Prospector System <bugs@redhat.com> |
---|
213 | - translations modified for de, fr, tr |
---|
214 | |
---|
215 | * Tue Oct 21 1997 Donnie Barnes <djb@redhat.com> |
---|
216 | - spec file cleanups |
---|
217 | |
---|
218 | * Thu Jun 12 1997 Erik Troan <ewt@redhat.com> |
---|
219 | - built against glibc |
---|