source: spec/trunk/SPECS/diffutils.spec@ 858

Last change on this file since 858 was 425, checked in by Yuri Dario, 11 years ago

spec: diffutils, fix --binary and no --strip-trailing-cr.

File size: 2.4 KB
Line 
1Summary: A GNU collection of diff utilities
2Name: diffutils
3Version: 3.2
4Release: 3%{?dist}
5Group: Applications/Text
6URL: http://www.gnu.org/software/diffutils/diffutils.html
7Source: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.xz
8
9Source1: cmp.1
10Source2: diff.1
11Source3: diff3.1
12Source4: sdiff.1
13Patch0: diffutils-os2.patch
14Patch1: diffutils-cmp-s-empty.patch
15
16License: GPLv2+
17BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18
19%description
20Diffutils includes four utilities: diff, cmp, diff3 and sdiff. Diff
21compares two files and shows the differences, line by line. The cmp
22command shows the offset and line numbers where two files differ, or
23cmp can show the characters that differ between the two files. The
24diff3 command shows the differences between three files. Diff3 can be
25used when two people have made independent changes to a common
26original; diff3 can produce a merged file that contains both sets of
27changes and warnings about conflicts. The sdiff command can be used
28to merge two files interactively.
29
30Install diffutils if you need to compare text files.
31
32%package debug
33Summary: HLL debug data for exception handling support.
34
35%description debug
36HLL 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
44export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
45export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
46export LIBS="-lurpo -lmmap"
47%configure \
48 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
49make PR_PROGRAM=%{_bindir}/pr %{?_smp_mflags}
50
51%install
52rm -rf $RPM_BUILD_ROOT
53make 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
64rm -f $RPM_BUILD_ROOT%{_infodir}/dir
65rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
66
67#%find_lang %{name}
68
69%clean
70rm -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.
Note: See TracBrowser for help on using the repository browser.