]> git.pld-linux.org Git - packages/diffutils.git/blob - diffutils.spec
f976622ec51154f2ff7760a48d6ce48304dd5f4b
[packages/diffutils.git] / diffutils.spec
1 Summary:        GNU diff Utilities
2 Summary(de):    GNU-Diff-Utilities 
3 Summary(fr):    Utilitaires diff de GNU
4 Summary(pl):    narzêdzia diff GNU
5 Summary(tr):    GNU dosya karþýlaþtýrma araçlarý
6 Name:           diffutils
7 Version:        2.7
8 Release:        17
9 Group:          Utilities/Text
10 Group(pl):      Narzêdzia/Tekst
11 Copyright:      GPL
12 Source:         ftp://prep.ai.mit.edu/pub/gnu/diffutils/%{name}-%{version}.tar.gz
13 Patch0:         diffutils-man.patch
14 Patch1:         diffutils-info.patch
15 Prereq:         /usr/sbin/fix-info-dir
16 Buildroot:      /tmp/%{name}-%{version}-root
17
18 %description
19 Diffutils includes four utilities:  diff, cmp, diff3 and sdiff. Diff
20 compares two files and shows the differences, line by line. The cmp command
21 shows the offset and line numbers where two files differ, or cmp can show
22 the characters that differ between the two files. The diff3 command shows
23 the differences between three files. Diff3 can be used when two people have
24 made independent changes to a common original; diff3 can produce a merged
25 file that contains both persons changes and warnings about conflicts. The
26 sdiff command can be used to merge two files interactively.
27
28 Install diffutils if you need to compare text files.
29
30 %description -l pl
31 Narzêdzia diff s± u¿ywane do porównywania zawarto¶ci plików i tworzenia 
32 zbioru z ró¿nicami. Mo¿na go potem u¿yæ (za pomoc± programu patch) do
33 uaktualnienia starszego pliku. Wszystkie narzêdzia (za wyj±tkiem cmp)
34 pracuj± tylko na plikach tekstowych.
35
36 %prep
37 %setup -q
38 %patch0 -p1
39 %patch1 -p1
40
41 %build
42 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
43 ./configure \
44         --prefix=%{_prefix}
45
46 make PR_PROGRAM=%{_bindir}/pr
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{_mandir}/{man1,pl/man1}
51
52 make install \
53         prefix=$RPM_BUILD_ROOT/usr \
54         bindir=$RPM_BUILD_ROOT/%{_bindir} \
55         mandir=$RPM_BUILD_ROOT/%{_mandir} \
56         infodir=$RPM_BUILD_ROOT/%{_infodir}
57
58 strip $RPM_BUILD_ROOT%{_bindir}/*
59
60 install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
61 install man/pl/*.1 $RPM_BUILD_ROOT%{_mandir}/pl/man1
62
63 # Conflicts with man-pages
64 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/diff.1 
65
66 gzip -9nf $RPM_BUILD_ROOT%{_infodir}/diff* \
67         $RPM_BUILD_ROOT%{_mandir}/{man1/*,pl/man1/*} NEWS README
68
69 %post
70 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
71
72 %preun
73 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc {NEWS,README}.gz
81
82 %attr(755,root,root) %{_bindir}/*
83 %{_infodir}/diff.info*gz
84 %{_mandir}/man1/*
85 %lang(pl) %{_mandir}/pl/man1/*
This page took 0.072597 seconds and 2 git commands to generate.