tar-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. Summary: A GNU file archiving program.
  2. Summary(ja): GNU ファイルアーカイブプログラム
  3. Name: tar
  4. Version: 1.22
  5. Release: 4%{?_dist_release}
  6. License: GPLv3+
  7. Group: Applications/Archiving
  8. Source: ftp://ftp.gnu.org/pub/gnu/tar/tar-%{version}.tar.gz
  9. Patch0: tar-1.13.18-manpage.patch
  10. Patch8: tar-1.20-loneZeroWarning.patch
  11. Patch10: tar-1.15.1-gcc4.patch
  12. # adhoc but useful patch for z option accepts bzip2ed tarball.
  13. Patch100: tar-1.13.6-barterly.patch
  14. Patch110: tar-1.22-rtapelib-overflow.patch
  15. Requires(post,postun): install-info
  16. Buildroot: %{_tmppath}/%{name}-%{version}-root
  17. %description
  18. The GNU tar program saves many files together in one archive and can
  19. restore individual files (or all of the files) from that archive. Tar
  20. can also be used to add supplemental files to an archive and to update
  21. or list files in the archive. Tar includes multivolume support,
  22. automatic archive compression/decompression, the ability to perform
  23. remote archives, and the ability to perform incremental and full
  24. backups.
  25. If you want to use tar for remote backups, you also need to install
  26. the rmt package.
  27. %description -l ja
  28. GNU tar プログラムは多くのファイルを一つのファイルにまとめたりアーカイブ
  29. から個々のファイルを(または全てのファイルを)リストアしたりする。tarはまた
  30. 追加ファイルを加えたりアーカイブファイル中のリストを更新したりするために
  31. 使われる。
  32. tar はマルチボリュームサポート、自動アーカイブ圧縮/伸長、リモート
  33. アーカイブの取り扱う機能、そして差分バックアップとフルバックアップをする
  34. 機能を含んでいる。
  35. もしリモートバックアップのために tar をインストールするなら、rmt パッケージ
  36. もまたインストールする必要がある。
  37. %prep
  38. %setup -q
  39. %patch0 -p1 -b .manpage
  40. %patch8 -p1 -b .loneZeroWarning
  41. %patch100 -p1 -b .accept-bz2
  42. %patch110 -p1 -b .CVE-2010-0624
  43. %build
  44. %configure --bindir=/bin --libexecdir=/sbin
  45. make LIBS=-lbsd %{?_smp_mflags}
  46. %install
  47. rm -rf $RPM_BUILD_ROOT
  48. make prefix=${RPM_BUILD_ROOT}%{_prefix} \
  49. localedir=${RPM_BUILD_ROOT}%{_prefix}/share/locale \
  50. bindir=${RPM_BUILD_ROOT}/bin \
  51. libexecdir=${RPM_BUILD_ROOT}/sbin \
  52. mandir=${RPM_BUILD_ROOT}%{_mandir} \
  53. infodir=${RPM_BUILD_ROOT}%{_infodir} \
  54. install
  55. ln -s tar ${RPM_BUILD_ROOT}/bin/gtar
  56. ( cd $RPM_BUILD_ROOT
  57. for dir in ./bin ./sbin .%{_prefix}/bin .%{_prefix}/libexec
  58. do
  59. [ -d $dir ] || continue
  60. strip $dir/* || :
  61. done
  62. gzip -9nf .%{_infodir}/tar.info*
  63. rm -f .%{_infodir}/dir
  64. )
  65. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
  66. install -c -m644 tar.1 ${RPM_BUILD_ROOT}%{_mandir}/man1
  67. rm -f ${RPM_BUILD_ROOT}/sbin/rmt
  68. %find_lang %name
  69. %post
  70. /sbin/install-info %{_infodir}/tar.info.gz %{_infodir}/dir
  71. %preun
  72. if [ $1 = 0 ]; then
  73. /sbin/install-info --delete %{_infodir}/tar.info.gz %{_infodir}/dir
  74. fi
  75. %clean
  76. rm -rf ${RPM_BUILD_ROOT}
  77. %files -f %{name}.lang
  78. %defattr(-,root,root)
  79. %doc AUTHORS COPYING ChangeLog* NEWS README THANKS TODO
  80. /bin/tar
  81. /bin/gtar
  82. %{_mandir}/man1/tar.1*
  83. %{_infodir}/tar.info*
  84. %changelog
  85. * Tue Mar 16 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 1.22-4
  86. - add patch110 for fix CVE-2010-0624 (rmt) from fc11
  87. * Thu Apr 30 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.22-3
  88. - add missing documents
  89. * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.22-2
  90. - spec in utf-8
  91. * Mon Mar 16 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.22-1
  92. - new upstream release
  93. - improved tar-1.20-loneZeroWarning.patch (refer to Fedora package)
  94. * Thu Apr 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.20-1
  95. - new upstream release
  96. - remove unneeded patches
  97. * Mon Dec 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.15.1-0vl3
  98. - rebuilt for VineSeed
  99. * Thu Nov 30 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.15.1-0vl2.1
  100. - add patch120 for fix CVE-2006-6097
  101. * Sun Sep 17 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.15.1-0vl2
  102. - add patch110 for fix CVE-2006-0300
  103. * Mon May 02 2005 Satoshi MACHINO <machino@vinelinux.org> 1.15.1-0vl1
  104. - new upstream release
  105. - fixed patch6 and patch7 for new upstream release
  106. - some patches are imported from fedora package. and fixed
  107. -- stop issuing lone zero block warnings(patch8)
  108. -- fixed testsuite(patch9)
  109. -- don't applyed(patch10)
  110. -- fixed offset had incorrect type(patch11)
  111. * Sun Jun 13 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.14-0vl1
  112. - new upstream release
  113. - some patches are imported from fedora package.
  114. * Fri May 2 2003 IWAI Masaharu <iwai@alib.jp> 1.3.25-8vl4
  115. - rebuild with new toolchain
  116. - update BuildRequire (autoconf253 -> autoconf)
  117. * Thu Oct 31 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.25-8vl3
  118. - add adhoc but useful patch100 for "z" option to accepts bz2 tarball.
  119. * Wed Oct 30 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.25-8vl2
  120. - Oops the spec was in Shift-JIS. Fixed.
  121. * Wed Oct 30 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.25-8vl1
  122. - based on 1.3.25-8 from Rawhide and built for Vine Linux
  123. - the previous Vine package was 1.3.18-0vl2. Vine's changelog was as follows:
  124. - Wed Feb 20 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.13.18-0vl2
  125. - rebuild to remove rpmlib dependancy
  126. - Sat May 26 2001 <sagami@vinelinux.org>
  127. - 1.13.18-0vl1: based on 1.13.18-1 and added Japanese summary and description
  128. - added barterly patch
  129. * Fri Aug 23 2002 Phil Knirsch <pknirsch@redhat.com> 1.13.25-8
  130. - Included security patch from errata release.
  131. * Mon Jul 1 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.13.25-7
  132. - Fix argv NULL termination (#64869)
  133. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  134. - automated rebuild
  135. * Tue Apr 9 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.13.25-4
  136. - Fix build with autoconf253 (LIBOBJ change; autoconf252 worked)
  137. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  138. - automated rebuild
  139. * Tue Oct 23 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.13.25-2
  140. - Don't include hardlinks to sockets in a tar file (#54827)
  141. * Thu Sep 27 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.13.25-1
  142. - 1.13.25
  143. * Tue Sep 18 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.13.22-1
  144. - Update to 1.13.22, adapt patches
  145. * Mon Aug 27 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.13.19-6
  146. - Fix #52084
  147. * Thu May 17 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.13.19-5
  148. - Fix build with current autoconf (stricter checking on AC_DEFINE)
  149. - Fix segfault when tarring directories without having read permissions
  150. (#40802)
  151. * Tue Mar 6 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  152. - Don't depend on librt.
  153. * Fri Feb 23 2001 Trond Eivind Glomsr <teg@redhat.com>
  154. - langify
  155. * Thu Feb 22 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  156. - Fix up the man page (#28915)
  157. * Wed Feb 21 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  158. - 1.3.19, nukes -I and fixes up -N
  159. - Add -I back in as an alias to -j with a nice loud warning
  160. * Mon Oct 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  161. - 1.3.18
  162. - Update man page to reflect changes
  163. * Thu Oct 5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  164. - Fix the "ignore failed read" option (Bug #8330)
  165. * Mon Sep 25 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  166. - fix hang on tar tvzf - <something.tar.gz, introduced by
  167. exit code fix (Bug #15448), Patch from Tim Waugh <twaugh@redhat.com>
  168. * Fri Aug 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  169. - really fix exit code (Bug #15448)
  170. * Mon Aug 7 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  171. - fix exit code (Bug #15448), patch from Tim Waugh <twaugh@redhat.com>
  172. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  173. - automatic rebuild
  174. * Mon Jun 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  175. - FHSify
  176. * Fri Apr 28 2000 Bill Nottingham <notting@redhat.com>
  177. - fix for ia64
  178. * Wed Feb 9 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  179. - Fix the exclude bug (#9201)
  180. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  181. - man pages are compressed
  182. - fix description
  183. - fix fnmatch build problems
  184. * Sun Jan 9 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  185. - 1.13.17
  186. - remove dotbug patch (fixed in base)
  187. - update download URL
  188. * Fri Jan 7 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  189. - Fix a severe bug (tar xf any_package_containing_. would delete the
  190. current directory)
  191. * Wed Jan 5 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  192. - 1.3.16
  193. - unset LINGUAS before running configure
  194. * Tue Nov 9 1999 Bernhard Rosenkr舅zer <bero@redhat.com>
  195. - 1.13.14
  196. - Update man page to know about -I / --bzip
  197. - Remove dependancy on rmt - tar can be used for anything local
  198. without it.
  199. * Fri Aug 27 1999 Preston Brown <pbrown@redhat.com>
  200. - upgrade to 1.13.11.
  201. * Wed Aug 18 1999 Jeff Johnson <jbj@redhat.com>
  202. - update to 1.13.9.
  203. * Thu Aug 12 1999 Jeff Johnson <jbj@redhat.com>
  204. - update to 1.13.6.
  205. - support -y --bzip2 options for bzip2 compression (#2415).
  206. * Fri Jul 23 1999 Jeff Johnson <jbj@redhat.com>
  207. - update to 1.13.5.
  208. * Tue Jul 13 1999 Bill Nottingham <notting@redhat.com>
  209. - update to 1.13
  210. * Sat Jun 26 1999 Jeff Johnson <jbj@redhat.com>
  211. - update to 1.12.64014.
  212. - pipe patch corrected for remote tars now merged in.
  213. * Sun Jun 20 1999 Jeff Johnson <jbj@redhat.com>
  214. - update to tar-1.12.64013.
  215. - subtract (and reopen #2415) bzip2 support using -y.
  216. - move gtar to /bin.
  217. * Tue Jun 15 1999 Jeff Johnson <jbj@redhat.com>
  218. - upgrade to tar-1.12.64011 to
  219. - add bzip2 support (#2415)
  220. - fix filename bug (#3479)
  221. * Mon Mar 29 1999 Jeff Johnson <jbj@redhat.com>
  222. - fix suspended tar with compression over pipe produces error (#390).
  223. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  224. - auto rebuild in the new build environment (release 8)
  225. * Mon Mar 08 1999 Michael Maher <mike@redhat.com>
  226. - added patch for bad name cache.
  227. - FIXES BUG 320
  228. * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
  229. - Injected new description and group.
  230. * Fri Dec 18 1998 Preston Brown <pbrown@redhat.com>
  231. - bumped spec number for initial rh 6.0 build
  232. * Tue Aug 4 1998 Jeff Johnson <jbj@redhat.com>
  233. - add /usr/bin/gtar symlink (change #421)
  234. * Tue Jul 14 1998 Jeff Johnson <jbj@redhat.com>
  235. - Fiddle bindir/libexecdir to get RH install correct.
  236. - Don't include /sbin/rmt -- use the rmt from dump.
  237. - Turn on nls.
  238. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  239. - translations modified for de, fr, tr
  240. * Thu Oct 16 1997 Donnie Barnes <djb@redhat.com>
  241. - updated from 1.11.8 to 1.12
  242. - various spec file cleanups
  243. - /sbin/install-info support
  244. * Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
  245. - built against glibc
  246. * Thu May 29 1997 Michael Fulbright <msf@redhat.com>
  247. - Fixed to include rmt