1 | Summary: The GNU shar utilities for packaging and unpackaging shell archives. |
---|
2 | Summary(ja): シェルアーカイブのパッケージングを取り扱う GNU shar ユーティリティ |
---|
3 | Name: sharutils |
---|
4 | %define eversion 4.2.1 |
---|
5 | Version: %{eversion}_jp |
---|
6 | #Release: 1.6.1vl6 |
---|
7 | Release: 1.6.2%{?_dist_release} |
---|
8 | License: GPL |
---|
9 | Group: Applications/Archiving |
---|
10 | Source: ftp://prep.ai.mit.edu/pub/gnu/sharutils/sharutils-%{eversion}.tar.gz |
---|
11 | Patch1: sharutils-4.2-gmo.patch |
---|
12 | Patch2: sharutils-4.2-man.patch |
---|
13 | Patch3: sharutils-4.2-po.patch |
---|
14 | Patch4: sharutils-4.2-share.patch |
---|
15 | Patch5: sharutils-4.2-uudecode.patch |
---|
16 | Patch6: sharutils-4.2.1-mktemp.patch |
---|
17 | Patch7: sharutils-4.2.1-uudecode.patch |
---|
18 | Patch8: sharutils-4.2.1-shar_unshar.patch |
---|
19 | Patch9: sharutils-4.2.1-CAN-2005-0990.patch |
---|
20 | Prereq: /sbin/install-info |
---|
21 | |
---|
22 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
23 | |
---|
24 | |
---|
25 | %description |
---|
26 | The sharutils package contains the GNU shar utilities, a set of tools |
---|
27 | for encoding and decoding packages of files (in binary or text format) |
---|
28 | in a special plain text format called shell archives (shar). This |
---|
29 | format can be sent through email (which can be problematic for |
---|
30 | regular binary files). The shar utility supports a wide range of |
---|
31 | capabilities (compressing, uuencoding, splitting long files for |
---|
32 | multi-part mailings, providing checksums), which make it very flexible |
---|
33 | at creating shar files. After the files have been sent, the unshar |
---|
34 | tool scans mail messages looking for shar files. Unshar automatically |
---|
35 | strips off mail headers and introductory text and then unpacks the shar |
---|
36 | files. |
---|
37 | |
---|
38 | Install sharutils if you send binary files through email very often. |
---|
39 | |
---|
40 | %description -l ja |
---|
41 | sharuitls パッケージは(バイナリーかテキスト形式の)ファイルを |
---|
42 | シェルアーカイブ(shar) と呼ばれる特殊なプレインテキスト形式に |
---|
43 | エンコーディングとデコーディングのためのツールのセットである、 |
---|
44 | GNU shar ユーティリティを含んでいる。このフォーマットは email で送信する |
---|
45 | ことが可能である。(通常のバイナリファイルは問題となりうる)。 |
---|
46 | shar ユーティリティは幅広い機能をもっている(圧縮、uuencode、マルチパート |
---|
47 | メールのための長いファイルの分割、チェックサムの提供)、というわけで |
---|
48 | shar ファイルを作成するうえで融通がきく。ファイルが送られたあと、 |
---|
49 | unshar ツールが shar ファイルを見つけるためにメールのメッセージを走査する。 |
---|
50 | unshar は自動的にメールのヘッダと予備のテキストを落とし、shar ファイルを |
---|
51 | アンパックする。 |
---|
52 | |
---|
53 | email でバイナリファイルをよく使うなら sharutils をインストールしなさい。 |
---|
54 | |
---|
55 | |
---|
56 | %prep |
---|
57 | %setup -n %{name}-%{eversion} |
---|
58 | %patch1 -p1 |
---|
59 | %patch2 -p1 |
---|
60 | %patch3 -p1 |
---|
61 | %patch4 -p1 |
---|
62 | %patch5 -p1 |
---|
63 | %patch6 -p1 |
---|
64 | %patch7 -p1 |
---|
65 | %patch8 -p2 -b shar_unshar |
---|
66 | %patch9 -p1 -b .CAN-2005-0990 |
---|
67 | |
---|
68 | |
---|
69 | %build |
---|
70 | %configure |
---|
71 | make |
---|
72 | |
---|
73 | |
---|
74 | %install |
---|
75 | rm -rf ${RPM_BUILD_ROOT} |
---|
76 | |
---|
77 | #make prefix=${RPM_BUILD_ROOT}%{_prefix} install install-man |
---|
78 | %makeinstall install-man |
---|
79 | gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/sharutils* |
---|
80 | gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/remsync* |
---|
81 | |
---|
82 | # fix jp location |
---|
83 | mv ${RPM_BUILD_ROOT}%{_localedir}/ja_JP.EUC \ |
---|
84 | ${RPM_BUILD_ROOT}%{_localedir}/ja |
---|
85 | |
---|
86 | %find_lang %{name} |
---|
87 | |
---|
88 | %post |
---|
89 | /sbin/install-info %{_infodir}/sharutils.info.gz %{_infodir}/dir ||: |
---|
90 | |
---|
91 | |
---|
92 | %preun |
---|
93 | if [ $1 = 0 ]; then |
---|
94 | /sbin/install-info --delete %{_infodir}/sharutils.info.gz %{_infodir}/dir ||: |
---|
95 | fi |
---|
96 | |
---|
97 | |
---|
98 | %clean |
---|
99 | rm -rf ${RPM_BUILD_ROOT} |
---|
100 | |
---|
101 | |
---|
102 | %files -f %{name}.lang |
---|
103 | %defattr(-,root,root) |
---|
104 | %{_bindir}/* |
---|
105 | %{_infodir}/*info* |
---|
106 | %{_mandir}/*/* |
---|
107 | |
---|
108 | |
---|
109 | %changelog |
---|
110 | * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 4.2.1_jp-1.6.2vl5 |
---|
111 | - applied new versioning policy, spec in utf-8 |
---|
112 | |
---|
113 | * Sat Jul 1 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.2.1_jp-1.6.1vl6 |
---|
114 | - rebuilt for VineSeed |
---|
115 | |
---|
116 | * Sun Jul 17 2005 SATO Masakiyo <info@pocomoco.net> 4.2.1_jp-1.6.1vl5 |
---|
117 | - Added Patch9 for CAN-2005-0990 |
---|
118 | |
---|
119 | * Wed Oct 20 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 4.2.1_jp-1.6.1vl4 |
---|
120 | - Added Patch8 for buffer overflows. |
---|
121 | |
---|
122 | * Sat Apr 10 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> |
---|
123 | - 4.2.1_jp-1.6.1vl3 |
---|
124 | - added Patch[67] |
---|
125 | |
---|
126 | * Tue Jan 23 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
127 | - 4.2.1_jp-1.6.1vl2 |
---|
128 | - rebuilt on VineSeed with new environment |
---|
129 | - use better macros (%%{_bindir}, %%{_infodir}, %%{_mandir}, %%{_localedir}, |
---|
130 | %%configure, %%makeinstall, %%{_tmppath}, etc.) |
---|
131 | |
---|
132 | * Wed Jan 5 2000 Jun Nishii <jun@vinelinux.org> |
---|
133 | - updated to 4.2.1 |
---|
134 | |
---|
135 | * Mon Jun 28 1999 Norihito Ohmori <ohmori@flatout.org> |
---|
136 | - Moved Japanese catalog from ja_JP.ujis to ja |
---|
137 | - rebuild from sharutils-4.2-10 |
---|
138 | - configure --with-gnu-gettext to enable nls |
---|
139 | |
---|
140 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
141 | - auto rebuild in the new build environment (release 12) |
---|
142 | |
---|
143 | * Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com> |
---|
144 | - build for glibc 2.1 |
---|
145 | |
---|
146 | * Fri Apr 24 1998 Prospector System <bugs@redhat.com> |
---|
147 | - translations modified for de, fr, tr |
---|
148 | |
---|
149 | * Sat Apr 11 1998 Cristian Gafton <gafton@redhat.com> |
---|
150 | - manhattan rebuild |
---|
151 | |
---|
152 | * Fri Oct 17 1997 Donnie Barnes <djb@redhat.com> |
---|
153 | - ALRIGHT! Woo-hoo! Erik already did the install-info stuff! |
---|
154 | - added BuildRoot |
---|
155 | - spec file cleanups |
---|
156 | |
---|
157 | * Sun Sep 14 1997 Erik Troan <ewt@redhat.com> |
---|
158 | - uses install-info |
---|
159 | |
---|
160 | * Fri Jul 18 1997 Erik Troan <ewt@redhat.com> |
---|
161 | - built against glibc |
---|
162 | |
---|