Summary: Patchutils is a small collection of programs that operate on patch files Summary(pl): Kolekcja małych programów operujących na plikach patch Name: patchutils Version: 0.2.11 Release: 1 License: GPL Group: Applications/Text Source0: http://cyberelk.net/tim/data/patchutils/stable/%{name}-%{version}.tar.gz Patch0: %{name}-DESTDIR.patch Patch1: %{name}-fixcvsdiff.patch URL: http://cyberelk.net/tim/patchutils/ Requires: diffutils Requires: patch BuildRequires: diffutils BuildRequires: patch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Interdiff generates an incremental patch from two patches against a common source. For example, if you have applied a pre-patch to a source tree, and wish to apply another pre-patch (which is against the same original source tree), you can use interdiff to generate the patch that you need to apply. You can also use this to review changes between two pre-patches. Combinediff generates a single patch from two incremental patches, allowing you to merge patches together. The resulting patch file only alters each file once. Filterdiff will select the portions of a patch file that apply to files matching (or, alternatively, not matching) a shell wildcard. Fixcvsdiff is for correcting the output of 'cvs diff'. Rediff corrects hand-edited patches, by comparing the original patch with the modified one and adjusting the offsets and counts. Lsdiff displays a short listing of affected files in a patch file, along with (optionally) the line numbers of the start of each patch. Splitdiff separates out patches from a patch file so that each new patch file only alters any given file once. In this way, a file containing several incremental patches can be split into individual incremental patches. Grepdiff displays a list of the files modified by a patch where the patch contains a given regular expression. %description -l pl Interdiff generuje inkrementalne patche z dwóch patchy stworzonych w stosunku do jednego źródła. Combinediff generuje pojedyńczy patch z dwóch inkrementalnych patchy pozwalając na ich łączenie. Wygenerowany patch modyfikuje pliki jedynie jednokrotnie. Filterdiff wybierze fragmenty patcha modyfikujące pliki pasujące (lub nie pasujące) do wzorca shella. Fixcvsdiff służy do poprawiania plików wygenerowanych przez `cvs diff'. Rediff poprawia ręcznie-edytowane patche poprzez porównanie oryginalnego patcha ze zmodyfikowanym i poprawianie przesunięć i zliczeń. Lsdiff wyświetla krótką listę plików, które patch modyfikuje wraz z (opcjonalnie) numerami linii każdej zmiany. Splitdiff dzieli patch na więcej patchy tak, że poszczególne patche modyfikują jedynie określony plik jednokrotnie. W ten sposób plik zawierający kilka inkrementalnych zmian może być zamieniony w kilka inkrementalnych łat. Grepdiff wyświetla listę plików modyfikowanych przez patch gdzie patch zawiera określone wyrażenie regularne. %prep %setup -q %patch0 -p1 %patch1 %build %configure %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT gzip -9nf NEWS README %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc *.gz %attr(755,root,root) %{_bindir}/* %{_mandir}/man?/*