1 | Summary: A GNU collection of diff utilities
|
---|
2 | Name: diffutils
|
---|
3 | Version: 3.2
|
---|
4 | Release: 3%{?dist}
|
---|
5 | Group: Applications/Text
|
---|
6 | URL: http://www.gnu.org/software/diffutils/diffutils.html
|
---|
7 | Source: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.xz
|
---|
8 |
|
---|
9 | Source1: cmp.1
|
---|
10 | Source2: diff.1
|
---|
11 | Source3: diff3.1
|
---|
12 | Source4: sdiff.1
|
---|
13 | Patch0: diffutils-os2.patch
|
---|
14 | Patch1: diffutils-cmp-s-empty.patch
|
---|
15 |
|
---|
16 | License: GPLv2+
|
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
---|
18 |
|
---|
19 | %description
|
---|
20 | Diffutils includes four utilities: diff, cmp, diff3 and sdiff. Diff
|
---|
21 | compares two files and shows the differences, line by line. The cmp
|
---|
22 | command shows the offset and line numbers where two files differ, or
|
---|
23 | cmp can show the characters that differ between the two files. The
|
---|
24 | diff3 command shows the differences between three files. Diff3 can be
|
---|
25 | used when two people have made independent changes to a common
|
---|
26 | original; diff3 can produce a merged file that contains both sets of
|
---|
27 | changes and warnings about conflicts. The sdiff command can be used
|
---|
28 | to merge two files interactively.
|
---|
29 |
|
---|
30 | Install diffutils if you need to compare text files.
|
---|
31 |
|
---|
32 | %package debug
|
---|
33 | Summary: HLL debug data for exception handling support.
|
---|
34 |
|
---|
35 | %description debug
|
---|
36 | HLL debug data for exception handling support.
|
---|
37 |
|
---|
38 | %prep
|
---|
39 | %setup -q
|
---|
40 | %patch0 -p1 -b .os2~
|
---|
41 | %patch1 -p1 -b .cmp-s
|
---|
42 |
|
---|
43 | %build
|
---|
44 | export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
|
---|
45 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
---|
46 | export LIBS="-lurpo -lmmap"
|
---|
47 | %configure \
|
---|
48 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
---|
49 | make PR_PROGRAM=%{_bindir}/pr %{?_smp_mflags}
|
---|
50 |
|
---|
51 | %install
|
---|
52 | rm -rf $RPM_BUILD_ROOT
|
---|
53 | make DESTDIR=$RPM_BUILD_ROOT install
|
---|
54 |
|
---|
55 | ( cd $RPM_BUILD_ROOT
|
---|
56 | gzip -9nf .%{_infodir}/diff*
|
---|
57 | mkdir -p .%{_mandir}/man1
|
---|
58 | for manpage in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4}
|
---|
59 | do
|
---|
60 | install -m 0644 ${manpage} .%{_mandir}/man1
|
---|
61 | done
|
---|
62 | )
|
---|
63 |
|
---|
64 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
---|
65 | rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
|
---|
66 |
|
---|
67 | #%find_lang %{name}
|
---|
68 |
|
---|
69 | %clean
|
---|
70 | rm -rf $RPM_BUILD_ROOT
|
---|
71 |
|
---|
72 | %files
|
---|
73 | # -f %{name}.lang
|
---|
74 | %defattr(-,root,root)
|
---|
75 | %doc NEWS README
|
---|
76 | %{_bindir}/*.exe
|
---|
77 | %{_mandir}/*/*
|
---|
78 | %{_infodir}/diffutils.info*gz
|
---|
79 | %{_datadir}/locale/*
|
---|
80 |
|
---|
81 | %files debug
|
---|
82 | %defattr(-,root,root)
|
---|
83 | %{_bindir}/*.dbg
|
---|
84 |
|
---|
85 | %changelog
|
---|
86 | * Fri May 23 2014 yd
|
---|
87 | - r730, Force --binary and no --strip-trailing-cr on OS/2.
|
---|
88 | - r729, Fix broken --binary option on OS/2.
|
---|
89 |
|
---|
90 | * Mon Jan 09 2012 yd
|
---|
91 | - do not build with -Zbin-files flag.
|
---|
92 |
|
---|
93 | * Sun Jan 08 2012 yd
|
---|
94 | - initial unixroot build.
|
---|