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