patch-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. Summary: Utility for modifying/upgrading files
  2. Summary(ja): ファイルを修正/更新するためのユーティリティ
  3. Name: patch
  4. Version: 2.6.1
  5. Release: 3%{?_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. * Mon May 7 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.1-3
  60. - add patch2 for fix CVE-2010-4651 (dir traversal) from fc13
  61. - fix using %%{?_smp_mflags} in make section
  62. * Thu Apr 14 2011 IWAI, Masaharu <iwai@alib.jp> 2.6.1-2
  63. - build on current VineSeed
  64. - add Vendor adn Distribution tags
  65. * Sat Jan 16 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6.1-1
  66. - new upstream release
  67. - added %%check section
  68. * Sun Jun 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.4-30
  69. - added Patch8 from Fedora development
  70. * Fri Feb 8 2008 Tim Waugh <twaugh@redhat.com> 2.5.4-32
  71. - Applied patch from 2.5.9 to allow spaces in filenames (bug #431887).
  72. - applied new versioning policy
  73. - spec in UTF-8
  74. * Thu Jun 8 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.4-29vl1
  75. - added Patch6, 8 from Fedora development
  76. * Wed Sep 7 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-27
  77. - Applied patch from Ulrich Drepper to fix string overread (bug #167675).
  78. * Thu Aug 11 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-25
  79. - Fixed CRLF detection (bug #154283).
  80. * Wed May 4 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-24
  81. - Reverted last change (bug #154283, bug #156762).
  82. * Fri Apr 29 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-23
  83. - Applied patch from Toshio Kuratomi to avoid problems with DOS-format
  84. newlines (bug #154283).
  85. * Sat Apr 10 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.5.4-19vl1
  86. - rebuild
  87. * Tue Apr 8 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 2.5.4-15vl2
  88. - rebuild
  89. * Fri Dec 06 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.5.4-15vl1
  90. - based on 2.5.4-15 from Rawhide and built for Vine Linux
  91. - added Japanese summary and description
  92. * Wed Nov 20 2002 Tim Powers <timp@redhat.com>
  93. - rebuilt in current collinst
  94. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  95. - automated rebuild
  96. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  97. - automated rebuild
  98. * Tue Apr 9 2002 Tim Waugh <twaugh@redhat.com> 2.5.4-12
  99. - Fix error reporting when given bad options (bug #62981).
  100. * Tue Mar 5 2002 Tim Waugh <twaugh@redhat.com> 2.5.4-11
  101. - s/Copyright:/License:/.
  102. - Fix -D behaviour (bug #60688).
  103. * Tue May 29 2001 Tim Waugh <twaugh@redhat.com> 2.5.4-10
  104. - Merge Mandrake patch:
  105. - fix possible segfault
  106. * Fri Dec 1 2000 Tim Waugh <twaugh@redhat.com>
  107. - Rebuild because of fileutils bug.
  108. * Thu Nov 2 2000 Tim Waugh <twaugh@redhat.com>
  109. - use .orig as default suffix, as per man page and previous behaviour
  110. (bug #20202).
  111. - use better patch for this, from maintainer.
  112. * Wed Oct 4 2000 Tim Waugh <twaugh@redhat.com>
  113. - actually use the RPM_OPT_FLAGS
  114. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  115. - automatic rebuild
  116. * Tue Jun 13 2000 Trond Eivind Glomsr <teg@redhat.com>
  117. - Use %%makeinstall, %%{_tmppath} and %%{_mandir}
  118. * Fri May 12 2000 Trond Eivind Glomsr <teg@redhat.com>
  119. - added URL
  120. * Wed Feb 16 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  121. - 2.5.4
  122. - Fix up LFS support on Alpha (Bug #5732)
  123. * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
  124. - handle compressed manpages
  125. * Sun Jun 06 1999 Alan Cox <alan@redhat.com>
  126. - Fix the case where stderr isnt flushed for ask(). Now the 'no such file'
  127. appears before the skip patch question, not at the very end, Doh!
  128. * Mon Mar 22 1999 Jeff Johnson <jbj@redhat.com>
  129. - (ultra?) sparc was getting large file system support.
  130. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  131. - auto rebuild in the new build environment (release 7)
  132. * Fri Dec 18 1998 Cristian Gafton <gafton@redhat.com>
  133. - build against glibc 2.1
  134. * Tue Sep 1 1998 Jeff Johnson <jbj@redhat.com>
  135. - bump release to preserve newer than back-ported 4.2.
  136. * Tue Jun 09 1998 Prospector System <bugs@redhat.com>
  137. - translations modified for de, fr
  138. * Tue Jun 9 1998 Jeff Johnson <jbj@redhat.com>
  139. - Fix for problem #682 segfault.
  140. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  141. - translations modified for de, fr, tr
  142. * Tue Apr 07 1998 Cristian Gafton <gafton@redhat.com>
  143. - added buildroot
  144. * Wed Oct 21 1997 Cristian Gafton <gafton@redhat.com>
  145. - updated to 2.5
  146. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  147. - built against glibc