source: projects/specs/trunk/p/patch/patch-vl.spec @ 12131

Revision 12131, 9.1 KB checked in by tomop, 5 years ago (diff)

Merge branch 'tomop'

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