patch-vl.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. Summary: Utility for modifying/upgrading files
  2. Summary(ja): ファイルを修正/更新するためのユーティリティ
  3. Name: patch
  4. Version: 2.6.1
  5. Release: 4%{?_dist_release}
  6. License: GPLv2+
  7. URL: http://www.gnu.org/software/patch/patch.html
  8. Group: Development/Tools
  9. Source: ftp://ftp.gnu.org/gnu/patch/patch-%{version}.tar.bz2
  10. Patch1: patch-2.5.4-sigsegv.patch
  11. Patch2: patch-CVE-2010-4651.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: ed
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. The patch program applies diff files to originals. The diff command
  18. is used to compare an original to a changed file. Diff lists the
  19. changes made to the file. A person who has the original file can then
  20. use the patch command with the diff file to add the changes to their
  21. original file (patching the file).
  22. Patch should be installed because it is a common way of upgrading
  23. applications.
  24. %description -l ja
  25. patch プログラムは,diff ファイルをオリジナルファイルに適用します.
  26. diff コマンドはオリジナルファイルと変更されたファイルとを比較する
  27. のに使われます.diff はファイルになされた変更を出力します.
  28. オリジナルファイルを持っていれば,この patch コマンドを使って,
  29. diff が出力したファイルを適用することによりオリジナルファイルを
  30. 更新することが出来ます (ファイルに patch を適用する,と言います).
  31. patch は,アプリケーションをアップグレードする際に良く使われますので
  32. 是非インストールしておきましょう.
  33. %prep
  34. %setup -q
  35. %patch1 -p1 -b .sigsegv
  36. %patch2 -p1 -b .CVE-2010-4651
  37. %build
  38. CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
  39. %configure
  40. # XXX unset CPPFLAGS on (ultra?)sparc to avoid large file system support
  41. %ifarch sparc sparc64
  42. make CPPFLAGS=""
  43. %else
  44. make %{?_smp_mflags}
  45. %endif
  46. %check
  47. make check
  48. %install
  49. rm -rf $RPM_BUILD_ROOT
  50. %makeinstall
  51. %clean
  52. rm -rf $RPM_BUILD_ROOT
  53. %files
  54. %defattr(-,root,root,-)
  55. %doc NEWS README
  56. %{_bindir}/*
  57. %{_mandir}/*/*
  58. %changelog
  59. * Sun Feb 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.1-4
  60. - rebuild with VineSeed environment
  61. * Mon May 7 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.1-3
  62. - add patch2 for fix CVE-2010-4651 (dir traversal) from fc13
  63. - fix using %%{?_smp_mflags} in make section
  64. * Thu Apr 14 2011 IWAI, Masaharu <iwai@alib.jp> 2.6.1-2
  65. - build on current VineSeed
  66. - add Vendor adn Distribution tags
  67. * Sat Jan 16 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6.1-1
  68. - new upstream release
  69. - added %%check section
  70. * Sun Jun 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.4-30
  71. - added Patch8 from Fedora development
  72. * Fri Feb 8 2008 Tim Waugh <twaugh@redhat.com> 2.5.4-32
  73. - Applied patch from 2.5.9 to allow spaces in filenames (bug #431887).
  74. - applied new versioning policy
  75. - spec in UTF-8
  76. * Thu Jun 8 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.4-29vl1
  77. - added Patch6, 8 from Fedora development
  78. * Wed Sep 7 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-27
  79. - Applied patch from Ulrich Drepper to fix string overread (bug #167675).
  80. * Thu Aug 11 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-25
  81. - Fixed CRLF detection (bug #154283).
  82. * Wed May 4 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-24
  83. - Reverted last change (bug #154283, bug #156762).
  84. * Fri Apr 29 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-23
  85. - Applied patch from Toshio Kuratomi to avoid problems with DOS-format
  86. newlines (bug #154283).
  87. * Sat Apr 10 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.5.4-19vl1
  88. - rebuild
  89. * Tue Apr 8 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 2.5.4-15vl2
  90. - rebuild
  91. * Fri Dec 06 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.5.4-15vl1
  92. - based on 2.5.4-15 from Rawhide and built for Vine Linux
  93. - added Japanese summary and description
  94. * Wed Nov 20 2002 Tim Powers <timp@redhat.com>
  95. - rebuilt in current collinst
  96. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  97. - automated rebuild
  98. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  99. - automated rebuild
  100. * Tue Apr 9 2002 Tim Waugh <twaugh@redhat.com> 2.5.4-12
  101. - Fix error reporting when given bad options (bug #62981).
  102. * Tue Mar 5 2002 Tim Waugh <twaugh@redhat.com> 2.5.4-11
  103. - s/Copyright:/License:/.
  104. - Fix -D behaviour (bug #60688).
  105. * Tue May 29 2001 Tim Waugh <twaugh@redhat.com> 2.5.4-10
  106. - Merge Mandrake patch:
  107. - fix possible segfault
  108. * Fri Dec 1 2000 Tim Waugh <twaugh@redhat.com>
  109. - Rebuild because of fileutils bug.
  110. * Thu Nov 2 2000 Tim Waugh <twaugh@redhat.com>
  111. - use .orig as default suffix, as per man page and previous behaviour
  112. (bug #20202).
  113. - use better patch for this, from maintainer.
  114. * Wed Oct 4 2000 Tim Waugh <twaugh@redhat.com>
  115. - actually use the RPM_OPT_FLAGS
  116. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  117. - automatic rebuild
  118. * Tue Jun 13 2000 Trond Eivind Glomsr <teg@redhat.com>
  119. - Use %%makeinstall, %%{_tmppath} and %%{_mandir}
  120. * Fri May 12 2000 Trond Eivind Glomsr <teg@redhat.com>
  121. - added URL
  122. * Wed Feb 16 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  123. - 2.5.4
  124. - Fix up LFS support on Alpha (Bug #5732)
  125. * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
  126. - handle compressed manpages
  127. * Sun Jun 06 1999 Alan Cox <alan@redhat.com>
  128. - Fix the case where stderr isnt flushed for ask(). Now the 'no such file'
  129. appears before the skip patch question, not at the very end, Doh!
  130. * Mon Mar 22 1999 Jeff Johnson <jbj@redhat.com>
  131. - (ultra?) sparc was getting large file system support.
  132. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  133. - auto rebuild in the new build environment (release 7)
  134. * Fri Dec 18 1998 Cristian Gafton <gafton@redhat.com>
  135. - build against glibc 2.1
  136. * Tue Sep 1 1998 Jeff Johnson <jbj@redhat.com>
  137. - bump release to preserve newer than back-ported 4.2.
  138. * Tue Jun 09 1998 Prospector System <bugs@redhat.com>
  139. - translations modified for de, fr
  140. * Tue Jun 9 1998 Jeff Johnson <jbj@redhat.com>
  141. - Fix for problem #682 segfault.
  142. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  143. - translations modified for de, fr, tr
  144. * Tue Apr 07 1998 Cristian Gafton <gafton@redhat.com>
  145. - added buildroot
  146. * Tue Oct 21 1997 Cristian Gafton <gafton@redhat.com>
  147. - updated to 2.5
  148. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  149. - built against glibc