]> git.pld-linux.org Git - packages/diffutils.git/blob - diffutils.spec
- spec adapterized.
[packages/diffutils.git] / diffutils.spec
1 Summary:        A GNU collection of diff utilities
2 Summary(de):    GNU-Sammlung von 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:        18
9 Group:          Utilities/Text
10 Group(fr):      Utilitaires/Texte
11 Group(pl):      Narzêdzia/Tekst
12 License:        GPL
13 Source0:        ftp://prep.ai.mit.edu/pub/gnu/diffutils/%{name}-%{version}.tar.gz
14 Patch0:         diffutils-man.patch
15 Patch1:         diffutils-info.patch
16 Patch2:         diffutils-DESTDIR.patch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-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 persons
27 changes and warnings about conflicts. The sdiff command can be used to
28 merge two files interactively.
29
30 Install diffutils if you need to compare text files.
31
32 %description -l de
33 Diffutils enthält 4 Utilities: diff, cmp, diff3 und sdiff. Diff
34 vergleicht zwei Dateien und zeigt die Unterschiede, Zeile für Zeile.
35 cmp zeigt Offset und Zeilennummern, in denen sich zwei Dateien
36 unterscheiden, cmp kann auch die Zeichen zeigen, die sich
37 unterscheiden. diff3 zeigt die Unterschiede zwischen 3 Dateien. Diff3
38 kann benutzt werden, wenn zwei Leute unabhängige Änderungen zu einem
39 gemeinsamen Ursprung gemacht haben; diff3 kann eine Datei erzeugen,
40 die die Änderungen beider Personen und Warnungen zu Konflikten
41 enthält. Der sdiff-Befehl kann benutzt werden, um zwei Dateien
42 interaktiv zusammenzufügen.
43
44 Installieren Sie diffutils, wenn Sie Text- oder Source-Dateien
45 vergleichen müssen.
46
47 %description -l pl
48 Diffutils zawiera nastêpuj±ce programy: diff, cmp, diff3 i sdiff. Diff
49 s³u¿y do porównywania dwuch plików wy¶wietlaj±c ró¿nice miêdzy nimi
50 linia po linii. Polecenie cmp numer bajtów na których wystepuj±
51 ró¿nice miêdzy porównywanymi plikami. Diff3 pokazuje ró¿nice miedzy
52 trzema plikami. Diff3 moze byæ u¿yty np. w sytuacji kiedy dwie osoby
53 wykona³y zmienê niezale¿nie od siebie na jednym pliku pozwalaj±c
54 uzyskaæ po³±czon± listê zmian zawierajac± informacje o tym kto co
55 zmieni³, a takze informacje o konfliktach miedzy tymi dwoma
56 modyfikacjami. Polecenie sdiff s³u¿y do interakcyjnego ³aczenia dwuch
57 plików.
58
59 %prep
60 %setup -q
61 %patch0 -p1
62 %patch1 -p1
63 %patch2 -p1
64
65 %build
66 autoconf
67 LDFLAGS="-s"; export LDFLAGS
68 %configure
69
70 make PR_PROGRAM=%{_bindir}/pr
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT%{_mandir}/{man1,pl/man1}
75
76 make install DESTDIR=$RPM_BUILD_ROOT
77
78 install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
79 install man/pl/*.1 $RPM_BUILD_ROOT%{_mandir}/pl/man1
80
81 gzip -9nf $RPM_BUILD_ROOT%{_infodir}/diff* \
82         $RPM_BUILD_ROOT%{_mandir}/{man1/*,pl/man1/*} NEWS README
83
84 %post
85 [ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
86
87 %postun
88 [ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %files
94 %defattr(644,root,root,755)
95 %doc {NEWS,README}.gz
96
97 %attr(755,root,root) %{_bindir}/*
98 %{_infodir}/diff.info*gz
99 %{_mandir}/man1/*
100 %lang(pl) %{_mandir}/pl/man1/*
This page took 0.072196 seconds and 4 git commands to generate.