tar-vl.spec 11 KB

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