Summary: GNU patch Utilities
+Summary(de): GNU-Patch-Utilities
+Summary(fr): Utilitaires patch de GNU
Summary(pl): GNU patch
+Summary(tr): GNU yama yardýmcý programlarý
Name: patch
Version: 2.5.3
-Release: 5
+Release: 7
Copyright: GPL
Group: Utilities/Text
Group(pl): Narzêdzia/Tekst
Buildroot: /tmp/%{name}-%{version}-root
%description
-Patch is a program to aid in patching programs. :-) You can use it to apply
-'diff's. Basically, you can use diff to note the changes in a file, send
+Patch is a program to aid in patching programs. You can use it to apply
+'diff's. Basically, you can use diff to note the changes in a file, send
the changes to someone who has the original file, and they can use 'patch'
to combine your changes to their original.
+%description -l de
+Patch ist ein Programm zum Ausbessern von Programmen. Benutzen Sie zunächst
+ein Diffs-Programm, um die Änderungen an der Datei zu ermitteln und senden
+Sie diese an die Personen mit der Originaldatei. Diese können dann mit Hilfe
+von PATCH ihre Dateien auf den neuesten Stand bringen.
+
+%description -l fr
+patch est un programme aidant à patcher des programmes. Vous pouvez
+l'utiliser pour appliquer des « diffs ». On utilise diff pour noter les
+changements dans un fichier, on envoie ces changements à celui qui a le
+fichier original et qui peut utiliser « patch » pour combiner nos
+modifications avec son original.
+
%description -l pl
Patch jest programem umo¿liwiaj±cym nak³adanie ³atek (patchy) na pliki. Przy
pomocy programu diff mo¿esz sprawdziæ jakie zmiany zosta³y zrobione w pliku,
s± jedynie zmiany, jakie zosta³y wprowadzone w stosunku do orginalnych
plików.
+%description -l tr
+Bu programý 'diff' komutunu uygulamak için kullanabilirsiniz. diff, bir
+dosya içindeki deðiþikliklerý belirtir; 'patch' komutu deðiþiklikleri
+asýllarý ile birleþtirir.
+
%prep
%setup -q
%build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target_platform} \
- --prefix=%{_prefix}
+chmod +w configure
+autoconf
+
+# XXX unset CPPFLAGS on (ultra)sparc to avoid large file system support
+%ifarch sparc sparc64
+CPPFLAGS=""
+export CPPFLAGS
+%endif
+
+LDFLAGS="-s"; export LDFLAGS
+%configure
make
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
-
-install -s patch $RPM_BUILD_ROOT%{_bindir}
-install patch.man $RPM_BUILD_ROOT%{_mandir}/man1/patch.1
+make install install-strip \
+ bindir=$RPM_BUILD_ROOT%{_bindir} \
+ man1dir=$RPM_BUILD_ROOT%{_mandir}/man1
-gzip -9nf NEWS README AUTHORS ChangeLog \
- $RPM_BUILD_ROOT%{_mandir}/man1/patch.1
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*\
+ NEWS README AUTHORS ChangeLog
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc {NEWS,README,AUTHORS,ChangeLog}.gz
-%attr(755,root,root) %{_bindir}/patch
-%{_mandir}/man1/patch.1*
-
-%changelog
-* Tue May 25 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [2.5.3-5]
-- spec based on RH version,
-- rewrited by PLD team,
-- pl translation Andrzej Nakonieczny <dzemik@shadow.eu.org>.
+
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*