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

Last change on this file since 266 was 266, checked in by Yuri Dario, 14 years ago

spec: diffutils, A GNU collection of diff utilities, initial build.

File size: 2.0 KB
Line 
1Summary: A GNU collection of diff utilities
2Name: diffutils
3Version: 3.2
4Release: 1%{?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%prep
33%setup -q
34%patch0 -p1 -b .os2~
35%patch1 -p1 -b .cmp-s
36
37%build
38export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
39export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
40export LIBS="-lurpo -lmmap"
41%configure \
42 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
43make PR_PROGRAM=%{_bindir}/pr %{?_smp_mflags}
44
45%install
46rm -rf $RPM_BUILD_ROOT
47make DESTDIR=$RPM_BUILD_ROOT install
48
49( cd $RPM_BUILD_ROOT
50 gzip -9nf .%{_infodir}/diff*
51 mkdir -p .%{_mandir}/man1
52 for manpage in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4}
53 do
54 install -m 0644 ${manpage} .%{_mandir}/man1
55 done
56)
57
58rm -f $RPM_BUILD_ROOT%{_infodir}/dir
59rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
60
61#%find_lang %{name}
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67# -f %{name}.lang
68%defattr(-,root,root)
69%doc NEWS README
70%{_bindir}/*
71%{_mandir}/*/*
72%{_infodir}/diffutils.info*gz
73%{_datadir}/locale/*
74
75%changelog
76* Sun Jan 08 2012 yd
77- initial unixroot build.
Note: See TracBrowser for help on using the repository browser.