patch-vl.spec 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. Summary: Utility for modifying/upgrading files
  2. Summary(ja): ファイルを修正/更新するためのユーティリティ
  3. Name: patch
  4. Version: 2.7.6
  5. Release: 2%{?_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.xz
  10. Patch0: patch-2.7.6-avoid-set_file_attributes-sign-conversion-warnings.patch
  11. Patch1: patch-2.7.6-test-suite-compatibility-fixes.patch
  12. Patch2: patch-2.7.6-fix-korn-shell-incompatibility.patch
  13. Patch3: patch-2.7.6-fix-segfault-with-mangled-rename-patch.patch
  14. Patch4: patch-2.7.6-allow-input-files-to-be-missing-for-ed-style-patches.patch
  15. Patch5: patch-CVE-2018-1000156.patch
  16. Patch6: patch-2.7.6-CVE-2019-13638-invoked-ed-directly-instead-of-using-the-shell.patch
  17. Patch7: patch-2.7.6-switch-from-fork-execlp-to-execute.patch
  18. Patch8: patch-2.7.6-cleanups-in-do_ed_script.patch
  19. Patch9: patch-2.7.6-avoid-warnings-gcc8.patch
  20. Patch10: patch-2.7.6-check-of-return-value-of-fwrite.patch
  21. Patch11: patch-2.7.6-fix-ed-style-test-failure.patch
  22. Patch12: patch-2.7.6-dont-leak-temporary-file-on-failed-ed-style-patch.patch
  23. Patch13: patch-2.7.6-dont-leak-temporary-file-on-failed-multi-file-ed-style-patch.patch
  24. Patch14: patch-2.7.6-make-debug-output-more-useful.patch
  25. Patch15: patch-2.7.6-CVE-2018-6952-fix-swapping-fake-lines-in-pch_swap.patch
  26. Patch16: patch-2.7.6-improve_support_for_memory_leak_detection.patch
  27. Patch17: patch-2.7.6-skip-ed-test-when-the-ed-utility-is-not-installed.patch
  28. Patch18: patch-2.7.6-abort_when_cleaning_up_fails.patch
  29. Patch19: patch-2.7.6-crash-RLIMIT_NOFILE.patch
  30. Patch20: patch-2.7.6-CVE-2019-13636-symlinks.patch
  31. Patch21: patch-2.7.6-avoid-invalid-memory-access-in-context-format-diffs.patch
  32. Patch22: patch-2.7.6-CVE-2018-17942.patch
  33. Patch23: patch-2.7.6-failed_assertion.patch
  34. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  35. BuildRequires: ed
  36. Vendor: Project Vine
  37. Distribution: Vine Linux
  38. %description
  39. The patch program applies diff files to originals. The diff command
  40. is used to compare an original to a changed file. Diff lists the
  41. changes made to the file. A person who has the original file can then
  42. use the patch command with the diff file to add the changes to their
  43. original file (patching the file).
  44. Patch should be installed because it is a common way of upgrading
  45. applications.
  46. %description -l ja
  47. patch プログラムは,diff ファイルをオリジナルファイルに適用します.
  48. diff コマンドはオリジナルファイルと変更されたファイルとを比較する
  49. のに使われます.diff はファイルになされた変更を出力します.
  50. オリジナルファイルを持っていれば,この patch コマンドを使って,
  51. diff が出力したファイルを適用することによりオリジナルファイルを
  52. 更新することが出来ます (ファイルに patch を適用する,と言います).
  53. patch は,アプリケーションをアップグレードする際に良く使われますので
  54. 是非インストールしておきましょう.
  55. %prep
  56. %setup -q
  57. %patch0 -p1 -b .avoid-set_file_attributes-sign-conversion-warnings
  58. %patch1 -p1 -b .test-suite-compatibility-fixes
  59. %patch2 -p1 -b .fix-korn-shell-incompatibility
  60. %patch3 -p1 -b .fix-segfault-with-mangled-rename-patch
  61. %patch4 -p1 -b .allow-input-files-to-be-missing-for-ed-style-patches
  62. # CVE-2018-1000156, Malicious patch files cause ed to execute arbitrary commands
  63. %patch5 -p1 -b .CVE-2018-1000156
  64. %patch6 -p1 -b .CVE-2019-13638-invoked-ed-directly-instead-of-using-the-shell
  65. %patch7 -p1 -b .switch-from-fork-execlp-to-execute
  66. %patch8 -p1 -b .cleanups-in-do_ed_script
  67. %patch9 -p1 -b .avoid-warnings-gcc8
  68. %patch10 -p1 -b .check-of-return-value-of-fwrite
  69. %patch11 -p1 -b .fix-ed-style-test-failure
  70. %patch12 -p1 -b .dont-leak-temporary-file-on-failed-ed-style-patch
  71. %patch13 -p1 -b .dont-leak-temporary-file-on-failed-multi-file-ed-style-patch
  72. %patch14 -p1 -b .make-debug-output-more-useful
  73. %patch15 -p1 -b .CVE-2018-6952-fix-swapping-fake-lines-in-pch_swap
  74. %patch16 -p1 -b .improve_support_for_memory_leak_detection
  75. %patch17 -p1 -b .skip-ed-test-when-the-ed-utility-is-not-installed
  76. %patch18 -p1 -b .abort_when_cleaning_up_fails
  77. %patch19 -p1 -b .crash-RLIMIT_NOFILE
  78. %patch20 -p1 -b .CVE-2019-13636-symlinks
  79. %patch21 -p1 -b .avoid-invalid-memory-access-in-context-format-diffs
  80. # CVE-2018-17942 gnulib: heap-based buffer overflow
  81. %patch22 -p1 -b .CVE-2018-17942-gnulib_buffer_overflow
  82. %patch23 -p1 -b .failed_assertion
  83. %build
  84. CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
  85. autoreconf
  86. %configure --disable-silent-rules
  87. # XXX unset CPPFLAGS on (ultra?)sparc to avoid large file system support
  88. %ifarch sparc sparc64
  89. make CPPFLAGS=""
  90. %else
  91. make %{?_smp_mflags}
  92. %endif
  93. %check
  94. make check
  95. %install
  96. rm -rf $RPM_BUILD_ROOT
  97. %makeinstall
  98. %clean
  99. rm -rf $RPM_BUILD_ROOT
  100. %files
  101. %defattr(-,root,root,-)
  102. %doc NEWS README
  103. %{_bindir}/*
  104. %{_mandir}/*/*
  105. %changelog
  106. * Thu Aug 29 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.7.6-2
  107. - replaced all patches with rawhide's.
  108. * Tue Mar 13 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.7.6-1
  109. - new upstream release.
  110. - dropped all patches.
  111. - added Patch1000 to fix CVE-2018-6952.
  112. * Sun Feb 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.1-4
  113. - rebuild with VineSeed environment
  114. * Mon May 7 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.1-3
  115. - add patch2 for fix CVE-2010-4651 (dir traversal) from fc13
  116. - fix using %%{?_smp_mflags} in make section
  117. * Thu Apr 14 2011 IWAI, Masaharu <iwai@alib.jp> 2.6.1-2
  118. - build on current VineSeed
  119. - add Vendor adn Distribution tags
  120. * Sat Jan 16 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6.1-1
  121. - new upstream release
  122. - added %%check section
  123. * Sun Jun 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.4-30
  124. - added Patch8 from Fedora development
  125. * Fri Feb 8 2008 Tim Waugh <twaugh@redhat.com> 2.5.4-32
  126. - Applied patch from 2.5.9 to allow spaces in filenames (bug #431887).
  127. - applied new versioning policy
  128. - spec in UTF-8
  129. * Thu Jun 8 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.4-29vl1
  130. - added Patch6, 8 from Fedora development
  131. * Wed Sep 7 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-27
  132. - Applied patch from Ulrich Drepper to fix string overread (bug #167675).
  133. * Thu Aug 11 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-25
  134. - Fixed CRLF detection (bug #154283).
  135. * Wed May 4 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-24
  136. - Reverted last change (bug #154283, bug #156762).
  137. * Fri Apr 29 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-23
  138. - Applied patch from Toshio Kuratomi to avoid problems with DOS-format
  139. newlines (bug #154283).
  140. * Sat Apr 10 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.5.4-19vl1
  141. - rebuild
  142. * Tue Apr 8 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 2.5.4-15vl2
  143. - rebuild
  144. * Fri Dec 06 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.5.4-15vl1
  145. - based on 2.5.4-15 from Rawhide and built for Vine Linux
  146. - added Japanese summary and description
  147. * Wed Nov 20 2002 Tim Powers <timp@redhat.com>
  148. - rebuilt in current collinst
  149. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  150. - automated rebuild
  151. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  152. - automated rebuild
  153. * Tue Apr 9 2002 Tim Waugh <twaugh@redhat.com> 2.5.4-12
  154. - Fix error reporting when given bad options (bug #62981).
  155. * Tue Mar 5 2002 Tim Waugh <twaugh@redhat.com> 2.5.4-11
  156. - s/Copyright:/License:/.
  157. - Fix -D behaviour (bug #60688).
  158. * Tue May 29 2001 Tim Waugh <twaugh@redhat.com> 2.5.4-10
  159. - Merge Mandrake patch:
  160. - fix possible segfault
  161. * Fri Dec 1 2000 Tim Waugh <twaugh@redhat.com>
  162. - Rebuild because of fileutils bug.
  163. * Thu Nov 2 2000 Tim Waugh <twaugh@redhat.com>
  164. - use .orig as default suffix, as per man page and previous behaviour
  165. (bug #20202).
  166. - use better patch for this, from maintainer.
  167. * Wed Oct 4 2000 Tim Waugh <twaugh@redhat.com>
  168. - actually use the RPM_OPT_FLAGS
  169. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  170. - automatic rebuild
  171. * Tue Jun 13 2000 Trond Eivind Glomsr <teg@redhat.com>
  172. - Use %%makeinstall, %%{_tmppath} and %%{_mandir}
  173. * Fri May 12 2000 Trond Eivind Glomsr <teg@redhat.com>
  174. - added URL
  175. * Wed Feb 16 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  176. - 2.5.4
  177. - Fix up LFS support on Alpha (Bug #5732)
  178. * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
  179. - handle compressed manpages
  180. * Sun Jun 06 1999 Alan Cox <alan@redhat.com>
  181. - Fix the case where stderr isnt flushed for ask(). Now the 'no such file'
  182. appears before the skip patch question, not at the very end, Doh!
  183. * Mon Mar 22 1999 Jeff Johnson <jbj@redhat.com>
  184. - (ultra?) sparc was getting large file system support.
  185. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  186. - auto rebuild in the new build environment (release 7)
  187. * Fri Dec 18 1998 Cristian Gafton <gafton@redhat.com>
  188. - build against glibc 2.1
  189. * Tue Sep 1 1998 Jeff Johnson <jbj@redhat.com>
  190. - bump release to preserve newer than back-ported 4.2.
  191. * Tue Jun 09 1998 Prospector System <bugs@redhat.com>
  192. - translations modified for de, fr
  193. * Tue Jun 9 1998 Jeff Johnson <jbj@redhat.com>
  194. - Fix for problem #682 segfault.
  195. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  196. - translations modified for de, fr, tr
  197. * Tue Apr 07 1998 Cristian Gafton <gafton@redhat.com>
  198. - added buildroot
  199. * Tue Oct 21 1997 Cristian Gafton <gafton@redhat.com>
  200. - updated to 2.5
  201. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  202. - built against glibc