]> git.pld-linux.org Git - packages/diffutils.git/blob - diffutils.spec
8ce42a74e71e047caa4adfa8a6efbd3e6010f454
[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:        15
9 Group:          Utilities/Text
10 Group(pl):      Narzêdzia/Tekst
11 Copyright:      GPL
12 Source:         ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
13 Patch0:         diffutils-man.patch
14 Patch1:         diffutils-info.patch
15 Prereq:         /sbin/install-info
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 %{_target} \
44         --prefix=/usr 
45
46 make PR_PROGRAM=/usr/bin/pr
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT/usr/man/{man1,pl/man1}
51
52 make prefix=$RPM_BUILD_ROOT/usr install
53 strip $RPM_BUILD_ROOT/usr/bin/*
54
55 install man/*.1 $RPM_BUILD_ROOT/usr/man/man1
56 install man/pl/*.1 $RPM_BUILD_ROOT/usr/man/pl/man1
57
58 gzip -9nf $RPM_BUILD_ROOT/usr/info/diff* \
59         $RPM_BUILD_ROOT/usr/man/{man1/*,pl/man1/*}
60
61 %post
62 /sbin/install-info /usr/info/diff.info.gz /etc/info-dir
63
64 %preun
65 if [ "$1" = "0" ]; then
66         /sbin/install-info --delete /usr/info/diff.info.gz /etc/info-dir
67 fi
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %doc NEWS README
75 %attr(755,root,root) /usr/bin/*
76 /usr/info/diff.info*gz
77 /usr/man/man1/*
78 %lang(pl) /usr/man/pl/man1/*
79
80 %changelog
81 * Thu Apr  1 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
82   [2.7-15]
83 - added cmp(1), diff(1), diff3(1), sdiff(1) man pages and pl man page
84   diff(1),
85 - standarized {un}registration info pages (added diffutils-info.patch).
86
87 * Thu Sep 24 1998 Marcin Korzonek <mkorz@shadow.eu.org>
88   [2.7-12]
89 - added pl translation,
90 - adde -q %setup parameter,
91 - moved CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" from make 
92   to configure (as a much safer solution).
93
94 * Tue May 05 1998 Prospector System <bugs@redhat.com>
95 - translations modified for de, fr, tr
96
97 * Sun May 03 1998 Cristian Gafton <gafton@redhat.com>
98 - fixed spec file to reference/use the $RPM_BUILD_ROOT always
99
100 * Wed Dec 31 1997 Otto Hammersmith <otto@redhat.com>
101 - fixed where it looks for 'pr' (/usr/bin, rather than /bin)
102
103 * Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
104 - added BuildRoot
105
106 * Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
107 - uses install-info
108
109 * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
110 - built against glibc
This page took 0.074516 seconds and 3 git commands to generate.