]> git.pld-linux.org Git - packages/diffutils.git/blobdiff - diffutils.spec
- removed all Group fields translations (oure rpm now can handle translating
[packages/diffutils.git] / diffutils.spec
index c5e2379c8331481874bad0690a5c40e74843d0a2..83225d099d743f480ef8c904a01c42397e0ef29e 100644 (file)
-Summary:       GNU diff Utilities
-Summary(de):   GNU-Diff-Utilities 
+Summary:       A GNU collection of diff utilities
+Summary(de):   GNU-Sammlung von diff-Utilities
 Summary(fr):   Utilitaires diff de GNU
-Summary(pl):   narzêdzia diff GNU
+Summary(pl):   Narzêdzia diff GNU
 Summary(tr):   GNU dosya karþýlaþtýrma araçlarý
 Name:          diffutils
-Version:       2.7
-Release:       17
-Group:         Utilities/Text
-Group(pl):     Narzêdzia/Tekst
-Copyright:     GPL
-Source:                ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
-Patch0:                diffutils-man.patch
-Patch1:                diffutils-info.patch
-Buildroot:     /tmp/%{name}-%{version}-root
+Version:       2.7.2
+Release:       5
+License:       GPL
+Group:         Applications/Text
+Source0:       ftp://alpha.gnu.org/gnu/%{name}-%{version}.tar.gz
+Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.gz
+Source2:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-DESTDIR.patch
+Patch2:                %{name}-immunix-owl-tmp.patch
+URL:           http://www.gnu.org/software/diffutils/
+BuildRequires: autoconf
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Diffutils includes four utilities:  diff, cmp, diff3 and sdiff. Diff
-compares two files and shows the differences, line by line. The cmp command
-shows the offset and line numbers where two files differ, or cmp can show
-the characters that differ between the two files. The diff3 command shows
-the differences between three files. Diff3 can be used when two people have
-made independent changes to a common original; diff3 can produce a merged
-file that contains both persons changes and warnings about conflicts. The
-sdiff command can be used to merge two files interactively.
-
-Install diffutils if you need to compare text files.
+Diffutils includes four utilities: diff, cmp, diff3 and sdiff. Diff
+compares two files and shows the differences, line by line. The cmp
+command shows the offset and line numbers where two files differ, or
+cmp can show the characters that differ between the two files. The
+diff3 command shows the differences between three files. Diff3 can be
+used when two people have made independent changes to a common
+original; diff3 can produce a merged file that contains both persons
+changes and warnings about conflicts. The sdiff command can be used to
+merge two files interactively.
+
+%description -l de
+Diffutils enthält 4 Utilities: diff, cmp, diff3 und sdiff. Diff
+vergleicht zwei Dateien und zeigt die Unterschiede, Zeile für Zeile.
+cmp zeigt Offset und Zeilennummern, in denen sich zwei Dateien
+unterscheiden, cmp kann auch die Zeichen zeigen, die sich
+unterscheiden. diff3 zeigt die Unterschiede zwischen 3 Dateien. Diff3
+kann benutzt werden, wenn zwei Leute unabhängige Änderungen zu einem
+gemeinsamen Ursprung gemacht haben; diff3 kann eine Datei erzeugen,
+die die Änderungen beider Personen und Warnungen zu Konflikten
+enthält. Der sdiff-Befehl kann benutzt werden, um zwei Dateien
+interaktiv zusammenzufügen.
 
 %description -l pl
-Narzêdzia diff s± u¿ywane do porównywania zawarto¶ci plików i tworzenia 
-zbioru z ró¿nicami. Mo¿na go potem u¿yæ (za pomoc± programu patch) do
-uaktualnienia starszego pliku. Wszystkie narzêdzia (za wyj±tkiem cmp)
-pracuj± tylko na plikach tekstowych.
+Diffutils zawiera nastêpuj±ce programy: diff, cmp, diff3 i sdiff. diff
+s³u¿y do porównywania dwóch plików wy¶wietlaj±c ró¿nice miêdzy nimi
+linia po linii. Polecenie cmp numer bajtów na których wystepuj±
+ró¿nice miêdzy porównywanymi plikami. diff3 pokazuje ró¿nice miedzy
+trzema plikami. diff3 moze byæ u¿yty np. w sytuacji kiedy dwie osoby
+wykona³y zmianê niezale¿nie od siebie na jednym pliku, pozwalaj±c
+uzyskaæ po³±czon± listê zmian zawierajac± informacje o tym, kto co
+zmieni³, a takze informacje o konfliktach miedzy tymi dwoma
+modyfikacjami. Polecenie sdiff s³u¿y do interakcyjnego ³aczenia dwóch
+plików.
 
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure \
-       --prefix=%{_prefix}
+autoconf
+%configure
 
-make PR_PROGRAM=%{_bindir}/pr
+%{__make} PR_PROGRAM=%{_bindir}/pr
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_mandir}/{man1,pl/man1}
-
-make install prefix=$RPM_BUILD_ROOT/usr \
-       bindir=$RPM_BUILD_ROOT/%{_bindir} \
-       mandir=$RPM_BUILD_ROOT/%{_mandir} \
-       infodir=$RPM_BUILD_ROOT/%{_infodir}
+install -d $RPM_BUILD_ROOT%{_mandir}/
 
-strip $RPM_BUILD_ROOT%{_bindir}/*
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
-install man/pl/*.1 $RPM_BUILD_ROOT%{_mandir}/pl/man1
+# install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
+# install man/pl/*.1 $RPM_BUILD_ROOT%{_mandir}/pl/man1
+tar xzvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_mandir}/
+bzip2 -dc %{SOURCE2} | tar xvf - -C $RPM_BUILD_ROOT%{_mandir}/
 
-# Conflicts with man-pages
-rm -f $RPM_BUILD_ROOT%{_mandir}/man1/diff.1 
+gzip -9nf NEWS README
 
-gzip -9nf $RPM_BUILD_ROOT%{_infodir}/diff* \
-       $RPM_BUILD_ROOT%{_mandir}/{man1/*,pl/man1/*} NEWS README
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/install-info %{_infodir}/diff.info.gz /etc/info-dir
-
-%preun
-if [ "$1" = "0" ]; then
-       /sbin/install-info --delete %{_infodir}/diff.info.gz /etc/info-dir
-fi
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %files
 %defattr(644,root,root,755)
 %doc {NEWS,README}.gz
 
 %attr(755,root,root) %{_bindir}/*
-%{_infodir}/diff.info*gz
+%{_infodir}/diff.info*
 %{_mandir}/man1/*
+%lang(de) %{_mandir}/de/man1/*
+%lang(es) %{_mandir}/es/man1/*
+%lang(fr) %{_mandir}/fr/man1/*
+%lang(hu) %{_mandir}/hu/man1/*
+%lang(it) %{_mandir}/it/man1/*
+%lang(ko) %{_mandir}/ko/man1/*
+%lang(nl) %{_mandir}/nl/man1/*
 %lang(pl) %{_mandir}/pl/man1/*
-
-%changelog
-* Mon Jun 07 1999 Jan Rêkorajski <baggins@pld.org.pl>
-  [2.7-16]
-- spec cleanup
-
-* Thu Apr  1 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [2.7-15]
-- added cmp(1), diff(1), diff3(1), sdiff(1) man pages and pl man page
-  diff(1),
-- standarized {un}registration info pages (added diffutils-info.patch).
-
-* Thu Sep 24 1998 Marcin Korzonek <mkorz@shadow.eu.org>
-  [2.7-12]
-- added pl translation,
-- adde -q %setup parameter,
-- moved CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" from make 
-  to configure (as a much safer solution).
+%lang(pt) %{_mandir}/pt/man1/*
+%lang(ru) %{_mandir}/ru/man1/*
This page took 0.106356 seconds and 4 git commands to generate.