]> git.pld-linux.org Git - packages/diffutils.git/blob - diffutils.spec
- cosmetics and updated Source Url.
[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 Buildroot:      /tmp/%{name}-%{version}-root
16
17 %description
18 Diffutils includes four utilities:  diff, cmp, diff3 and sdiff. Diff
19 compares two files and shows the differences, line by line. The cmp command
20 shows the offset and line numbers where two files differ, or cmp can show
21 the characters that differ between the two files. The diff3 command shows
22 the differences between three files. Diff3 can be used when two people have
23 made independent changes to a common original; diff3 can produce a merged
24 file that contains both persons changes and warnings about conflicts. The
25 sdiff command can be used to merge two files interactively.
26
27 Install diffutils if you need to compare text files.
28
29 %description -l pl
30 Narzêdzia diff s± u¿ywane do porównywania zawarto¶ci plików i tworzenia 
31 zbioru z ró¿nicami. Mo¿na go potem u¿yæ (za pomoc± programu patch) do
32 uaktualnienia starszego pliku. Wszystkie narzêdzia (za wyj±tkiem cmp)
33 pracuj± tylko na plikach tekstowych.
34
35 %prep
36 %setup -q
37 %patch0 -p1
38 %patch1 -p1
39
40 %build
41 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
42 ./configure \
43         --prefix=%{_prefix}
44
45 make PR_PROGRAM=%{_bindir}/pr
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{_mandir}/{man1,pl/man1}
50
51 make install \
52         prefix=$RPM_BUILD_ROOT/usr \
53         bindir=$RPM_BUILD_ROOT/%{_bindir} \
54         mandir=$RPM_BUILD_ROOT/%{_mandir} \
55         infodir=$RPM_BUILD_ROOT/%{_infodir}
56
57 strip $RPM_BUILD_ROOT%{_bindir}/*
58
59 install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
60 install man/pl/*.1 $RPM_BUILD_ROOT%{_mandir}/pl/man1
61
62 # Conflicts with man-pages
63 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/diff.1 
64
65 gzip -9nf $RPM_BUILD_ROOT%{_infodir}/diff* \
66         $RPM_BUILD_ROOT%{_mandir}/{man1/*,pl/man1/*} NEWS README
67
68 %post
69 /sbin/install-info %{_infodir}/diff.info.gz /etc/info-dir
70
71 %preun
72 if [ "$1" = "0" ]; then
73         /sbin/install-info --delete %{_infodir}/diff.info.gz /etc/info-dir
74 fi
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %files
80 %defattr(644,root,root,755)
81 %doc {NEWS,README}.gz
82
83 %attr(755,root,root) %{_bindir}/*
84 %{_infodir}/diff.info*gz
85 %{_mandir}/man1/*
86 %lang(pl) %{_mandir}/pl/man1/*
87
88 %changelog
89 * Mon Jun 07 1999 Jan Rêkorajski <baggins@pld.org.pl>
90   [2.7-16]
91 - spec cleanup
92
93 * Thu Apr  1 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
94   [2.7-15]
95 - added cmp(1), diff(1), diff3(1), sdiff(1) man pages and pl man page
96   diff(1),
97 - standarized {un}registration info pages (added diffutils-info.patch).
98
99 * Thu Sep 24 1998 Marcin Korzonek <mkorz@shadow.eu.org>
100   [2.7-12]
101 - added pl translation,
102 - adde -q %setup parameter,
103 - moved CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" from make 
104   to configure (as a much safer solution).
This page took 0.044743 seconds and 3 git commands to generate.