1 | Summary: A GNU collection of diff utilities. |
---|
2 | Summary(ja): GNU diff ユーティリティ集 |
---|
3 | Name: diffutils |
---|
4 | Version: 3.3 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | Group: Applications/Text |
---|
7 | URL: http://www.gnu.org/software/diffutils/diffutils.html |
---|
8 | License: GPLv3+ |
---|
9 | |
---|
10 | Source: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.xz |
---|
11 | Patch1: diffutils-cmp-s-empty.patch |
---|
12 | Patch2: diffutils-mkdir_p.patch |
---|
13 | Patch3: diffutils-FILE....patch |
---|
14 | Patch4: diffutils-i18n.patch |
---|
15 | Patch5: diffutils-format-security.patch |
---|
16 | |
---|
17 | Requires(post): /sbin/install-info |
---|
18 | Requires(preun): /sbin/install-info |
---|
19 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
20 | BuildRequires: coreutils |
---|
21 | |
---|
22 | %description |
---|
23 | Diffutils includes four utilities: diff, cmp, diff3 and sdiff. Diff |
---|
24 | compares two files and shows the differences, line by line. The cmp |
---|
25 | command shows the offset and line numbers where two files differ, or |
---|
26 | cmp can show the characters that differ between the two files. The |
---|
27 | diff3 command shows the differences between three files. Diff3 can be |
---|
28 | used when two people have made independent changes to a common |
---|
29 | original; diff3 can produce a merged file that contains both sets of |
---|
30 | changes and warnings about conflicts. The sdiff command can be used |
---|
31 | to merge two files interactively. |
---|
32 | |
---|
33 | Install diffutils if you need to compare text files. |
---|
34 | |
---|
35 | %description -l ja |
---|
36 | diffutils には diff, cmp, diff3, sdiff の 4つのユーティリティが |
---|
37 | 収められています.diff は 2つのファイルを行単位で比較し相違点を |
---|
38 | 出力します.cmp コマンドは 2つのファイルの相違点をオフセットと行番号で |
---|
39 | 表示できますし,どの文字が異なるかを表示することも出来ます. |
---|
40 | diff3 コマンドは 3つのファイルの相違点を出力します.diff3 は |
---|
41 | 1つのオリジナルファイルを2人が変更した場合等に良く使われます. |
---|
42 | diff3 を使って,2つの変更をマージした変更ファイルを出力することが |
---|
43 | 出来ますし,コンフリクトした変更点を出力することも出来ます. |
---|
44 | sdiff コマンドは2つのファイルを対話的にマージするのに使います. |
---|
45 | |
---|
46 | テキストファイルを比較したい場合は diffutils をインストールして下さい. |
---|
47 | |
---|
48 | |
---|
49 | %prep |
---|
50 | %setup -q |
---|
51 | |
---|
52 | # For 'cmp -s', compare file sizes only if both non-zero (bug #563618). |
---|
53 | %patch1 -p1 -b .cmp-s-empty |
---|
54 | |
---|
55 | # Work around @mkdir_p@ build issue. |
---|
56 | %patch2 -p1 -b .mkdir_p |
---|
57 | |
---|
58 | # Fix --help output and man page (bug #1079076). |
---|
59 | %patch3 -p1 -b .FILE... |
---|
60 | |
---|
61 | %patch4 -p1 -b .i18n |
---|
62 | |
---|
63 | # Applied upstream gnulib patch to avoid -Wformat-security warning |
---|
64 | # (bug #1037038). |
---|
65 | %patch5 -p1 -b .format-security |
---|
66 | |
---|
67 | # Run autoreconf for aarch64 support (bug #925256). |
---|
68 | autoreconf |
---|
69 | |
---|
70 | %build |
---|
71 | %configure |
---|
72 | make PR_PROGRAM=%{_bindir}/pr |
---|
73 | |
---|
74 | %install |
---|
75 | rm -rf $RPM_BUILD_ROOT |
---|
76 | %__make DESTDIR=$RPM_BUILD_ROOT install |
---|
77 | |
---|
78 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
---|
79 | %find_lang %{name} |
---|
80 | |
---|
81 | |
---|
82 | %post |
---|
83 | /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : |
---|
84 | |
---|
85 | %preun |
---|
86 | if [ $1 = 0 ]; then |
---|
87 | /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : |
---|
88 | fi |
---|
89 | |
---|
90 | %clean |
---|
91 | rm -rf $RPM_BUILD_ROOT |
---|
92 | |
---|
93 | %files -f %{name}.lang |
---|
94 | %defattr(-,root,root) |
---|
95 | %doc COPYING NEWS README |
---|
96 | %{_bindir}/* |
---|
97 | %{_mandir}/*/* |
---|
98 | %{_infodir}/diffutils.info*gz |
---|
99 | |
---|
100 | |
---|
101 | %changelog |
---|
102 | * Sun Jun 15 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.3-1 |
---|
103 | - new upstream release. |
---|
104 | - replaced patches. |
---|
105 | |
---|
106 | * Thu Nov 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2-1 |
---|
107 | - new upstream reelase |
---|
108 | - update patches |
---|
109 | |
---|
110 | * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.1-13 |
---|
111 | - spec in utf-8 |
---|
112 | |
---|
113 | * Mon May 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.1-12 |
---|
114 | - applied new versioning policy |
---|
115 | - added BuildRequires: coreutils |
---|
116 | |
---|
117 | * Fri Sep 22 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.1-11vl2 |
---|
118 | - rebuild to add gpg sign |
---|
119 | |
---|
120 | * Fri Mar 26 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.1-11vl1 |
---|
121 | - added Patch1 from Fedora 2.8.1-11 |
---|
122 | * Thu Jan 8 2004 Tim Waugh <twaugh@redhat.com> 2.8.1-10 |
---|
123 | - Fix mistaken use of '|' instead of '||'. |
---|
124 | - fixed typo at description(ja) |
---|
125 | |
---|
126 | * Wed Dec 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.8.1-5vl1 |
---|
127 | - merge Rawhide's 2.8.1-5 and Vine's 2.8.1-0vl1: |
---|
128 | |
---|
129 | - Sun Sep 29 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.1-0vl1 |
---|
130 | - new upstream release 2.8.1 |
---|
131 | - drop old unneeded patches. |
---|
132 | |
---|
133 | - Mon Jun 18 2001 <sagami@vinelinux.org> |
---|
134 | - 2.7.2-0vl3: patch taken from RH's 2.7.2-2 (not in sync, actually) |
---|
135 | - Install diff.1, since it's no longer in man-pages. |
---|
136 | |
---|
137 | - Tue Jan 09 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
138 | - 2.7.2-0vl2 |
---|
139 | - use better macros (%%{_localedir}) |
---|
140 | - %%makeinstall was here again |
---|
141 | - added Japanese summary and description |
---|
142 | |
---|
143 | - Mon Jul 3 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
144 | - updated to 2.7.2 (NLS support version) |
---|
145 | - added poor gettext_fix patch |
---|
146 | - added ja.po from fj.sources |
---|
147 | - remove %%makeinstall and use "make install prefix..." for rpm 3.x |
---|
148 | |
---|
149 | * Tue Nov 19 2002 Tim Waugh <twaugh@redhat.com> 2.8.1-5 |
---|
150 | - i18n patch. |
---|
151 | |
---|
152 | * Tue Oct 22 2002 Tim Waugh <twaugh@redhat.com> 2.8.1-4 |
---|
153 | - Ship translations. |
---|
154 | |
---|
155 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
156 | - automated rebuild |
---|
157 | |
---|
158 | * Thu May 23 2002 Tim Powers <timp@redhat.com> |
---|
159 | - automated rebuild |
---|
160 | |
---|
161 | * Mon Apr 22 2002 Tim Waugh <twaugh@redhat.com> 2.8.1-1 |
---|
162 | - 2.8.1. |
---|
163 | - No longer need immunix-owl-tmp patch. |
---|
164 | |
---|
165 | * Wed Feb 27 2002 Tim Waugh <twaugh@redhat.com> 2.7.2-5 |
---|
166 | - Rebuild in new environment. |
---|
167 | |
---|
168 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
169 | - automated rebuild |
---|
170 | |
---|
171 | * Fri Nov 02 2001 Tim Waugh <twaugh@redhat.com> 2.7.2-3 |
---|
172 | - Make sure %%post scriplet doesn't fail if --excludedocs is used. |
---|
173 | |
---|
174 | * Fri Jun 01 2001 Tim Waugh <twaugh@redhat.com> 2.7.2-2 |
---|
175 | - Install diff.1, since it's no longer in man-pages. |
---|
176 | |
---|
177 | * Fri Mar 30 2001 Tim Waugh <twaugh@redhat.com> 2.7.2-1 |
---|
178 | - 2.7.2. |
---|
179 | |
---|
180 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
---|
181 | - automatic rebuild |
---|
182 | |
---|
183 | * Thu Jul 06 2000 Trond Eivind Glomsr <teg@redhat.com> |
---|
184 | - fix %%changelog entries (escape them) |
---|
185 | - update source location |
---|
186 | - remove manual stripping |
---|
187 | - add URL |
---|
188 | |
---|
189 | * Tue Jun 06 2000 Than Ngo <than@redhat.de> |
---|
190 | - add %%defattr |
---|
191 | - use rpm macros |
---|
192 | |
---|
193 | * Wed May 31 2000 Ngo Than <than@redhat.de> |
---|
194 | - put man pages and info files in correct place |
---|
195 | - cleanup specfile |
---|
196 | |
---|
197 | * Thu Feb 03 2000 Preston Brown <pbrown@redhat.com> |
---|
198 | - rebuild to gzip man pages. |
---|
199 | |
---|
200 | * Mon Apr 19 1999 Jeff Johnson <jbj@redhat.com> |
---|
201 | - man pages not in %%files. |
---|
202 | - but avoid conflict for diff.1 |
---|
203 | |
---|
204 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
205 | - auto rebuild in the new build environment (release 14) |
---|
206 | |
---|
207 | * Sun Mar 14 1999 Jeff Johnson <jbj@redhat.com> |
---|
208 | - add man pages (#831). |
---|
209 | - add %%configure and Prefix. |
---|
210 | |
---|
211 | * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com> |
---|
212 | - build for glibc 2.1 |
---|
213 | |
---|
214 | * Tue Jul 14 1998 Bill Kawakami <billk@home.com> |
---|
215 | - included the four man pages stolen from Slackware |
---|
216 | |
---|
217 | * Tue May 05 1998 Prospector System <bugs@redhat.com> |
---|
218 | - translations modified for de, fr, tr |
---|
219 | |
---|
220 | * Sun May 03 1998 Cristian Gafton <gafton@redhat.com> |
---|
221 | - fixed spec file to reference/use the $RPM_BUILD_ROOT always |
---|
222 | |
---|
223 | * Wed Dec 31 1997 Otto Hammersmith <otto@redhat.com> |
---|
224 | - fixed where it looks for 'pr' (/usr/bin, rather than /bin) |
---|
225 | |
---|
226 | * Fri Oct 17 1997 Donnie Barnes <djb@redhat.com> |
---|
227 | - added BuildRoot |
---|
228 | |
---|
229 | * Sun Sep 14 1997 Erik Troan <ewt@redhat.com> |
---|
230 | - uses install-info |
---|
231 | |
---|
232 | * Mon Jun 02 1997 Erik Troan <ewt@redhat.com> |
---|
233 | - built against glibc |
---|