forked from gooselinux/diffutils
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiffutils.spec
More file actions
260 lines (192 loc) · 7.48 KB
/
diffutils.spec
File metadata and controls
260 lines (192 loc) · 7.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
Summary: A GNU collection of diff utilities
Name: diffutils
Version: 2.8.1
Release: 28%{?dist}
Group: Applications/Text
URL: http://www.gnu.org/software/diffutils/diffutils.html
Source: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.gz
Patch0: diffutils-2.8.4-i18n.patch
Patch1: diffutils-2.8.1-badc.patch
Patch2: diffutils-sdiff.patch
Patch3: diffutils-sdiff-E.patch
Patch4: diffutils-cmp-s-empty.patch
License: GPLv2+
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: help2man
%description
Diffutils includes four utilities: diff, cmp, diff3 and sdiff. Diff
compares two files and shows the differences, line by line. The cmp
command shows the offset and line numbers where two files differ, or
cmp can show the characters that differ between the two files. The
diff3 command shows the differences between three files. Diff3 can be
used when two people have made independent changes to a common
original; diff3 can produce a merged file that contains both sets of
changes and warnings about conflicts. The sdiff command can be used
to merge two files interactively.
Install diffutils if you need to compare text files.
%prep
%setup -q
# Multibyte support.
%patch0 -p1 -b .i18n
# Unintentional use of '|' instead of '||'.
%patch1 -p1 -b .badc
# Fixed sdiff exit code handling (bug #152967).
%patch2 -p1 -b .sdiff
# Fixed 'sdiff -E' (bug #484892).
%patch3 -p1 -b .sdiff-E
# For 'cmp -s', compare file sizes only if both non-zero (bug #565366).
%patch4 -p1 -b .cmp-s-empty
%build
%configure
make PR_PROGRAM=%{_bindir}/pr
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
%find_lang %{name}
%post
if [ -f %{_infodir}/diff.info.gz ]; then
/sbin/install-info %{_infodir}/diff.info.gz %{_infodir}/dir --entry="* diff: (diff). The GNU diff."
fi
exit 0
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/diff.info.gz %{_infodir}/dir --entry="* diff: (diff). The GNU diff."
fi
exit 0
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root)
%doc COPYING NEWS README
%{_bindir}/*
%{_mandir}/*/*
%{_infodir}/diff.info*gz
%changelog
- For 'cmp -s', compare file sizes only if both non-zero (bug #565366).
- Build requires help2man (bug #584043). Fixes empty diff man page.
- Added comments for all patches.
- Use upstream man pages.
- Ship COPYING file.
- Rebuilt for RHEL 6
- Only try to install the info file if it exists so that package
installation does not fail with --excludedocs (bug #515919).
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
- Fixed 'sdiff -E' (bug #484892).
- Rebuild for GCC 4.3.
- Converted spec file to UTF-8 (bug #225696).
- Fixed summary (bug #225696).
- Fixed PreReq (bug #225696).
- Removed Prefix (bug #225696).
- Fixed build root (bug #225696).
- Avoid %%makeinstall (bug #225696).
- Fixed license tag (bug #225696).
- Rebuilt.
- Fixed multibyte speed improvement patch (bug #363831).
- Multibyte speed improvement (bug #252117).
- Make scriptlet unconditionally succeed (bug #223683).
- rebuild
- bump again for double-long bug on ppc(64)
- rebuilt for new gcc4.1 snapshot and glibc changes
* Fri Dec 09 2005 Jesse Keating <[email protected]>
- rebuilt
- Fixed sdiff exit code handling (bug #152967).
- Rebuild for new GCC.
- Rebuilt.
* Tue Jun 15 2004 Elliot Lee <[email protected]>
- rebuilt
* Fri Feb 13 2004 Elliot Lee <[email protected]>
- rebuilt
- Fix mistaken use of '|' instead of '||'.
- Rebuilt.
- Rebuilt.
* Wed Jun 04 2003 Elliot Lee <[email protected]>
- rebuilt
* Wed Jan 22 2003 Tim Powers <[email protected]>
- rebuilt
- i18n patch.
- Ship translations.
* Fri Jun 21 2002 Tim Powers <[email protected]>
- automated rebuild
* Thu May 23 2002 Tim Powers <[email protected]>
- automated rebuild
- 2.8.1.
- No longer need immunix-owl-tmp patch.
- Rebuild in new environment.
* Wed Jan 09 2002 Tim Powers <[email protected]>
- automated rebuild
- Make sure %%post scriplet doesn't fail if --excludedocs is used.
- Install diff.1, since it's no longer in man-pages.
- 2.7.2.
* Wed Jul 12 2000 Prospector <[email protected]>
- automatic rebuild
* Thu Jul 06 2000 Trond Eivind Glomsrød <[email protected]>
- fix %%changelog entries (escape them)
- update source location
- remove manual stripping
- add URL
* Tue Jun 06 2000 Than Ngo <[email protected]>
- add %%defattr
- use rpm macros
* Wed May 31 2000 Ngo Than <[email protected]>
- put man pages and info files in correct place
- cleanup specfile
* Thu Feb 03 2000 Preston Brown <[email protected]>
- rebuild to gzip man pages.
* Mon Apr 19 1999 Jeff Johnson <[email protected]>
- man pages not in %%files.
- but avoid conflict for diff.1
- auto rebuild in the new build environment (release 14)
* Sun Mar 14 1999 Jeff Johnson <[email protected]>
- add man pages (#831).
- add %%configure and Prefix.
* Thu Dec 17 1998 Cristian Gafton <[email protected]>
- build for glibc 2.1
* Tue Jul 14 1998 Bill Kawakami <[email protected]>
- included the four man pages stolen from Slackware
* Tue May 05 1998 Prospector System <[email protected]>
- translations modified for de, fr, tr
* Sun May 03 1998 Cristian Gafton <[email protected]>
- fixed spec file to reference/use the $RPM_BUILD_ROOT always
* Wed Dec 31 1997 Otto Hammersmith <[email protected]>
- fixed where it looks for 'pr' (/usr/bin, rather than /bin)
* Fri Oct 17 1997 Donnie Barnes <[email protected]>
- added BuildRoot
* Sun Sep 14 1997 Erik Troan <[email protected]>
- uses install-info
* Mon Jun 02 1997 Erik Troan <[email protected]>
- built against glibc