Summary: XDELTA - version control system
+Summary(es): patch y diff para archivos binarios
Summary(pl): XDELTA - system kontroli wersji
+Summary(pt_BR): patch e diff para arquivos binários
Name: xdelta
-Version: 1.1.1
-Release: 4
+Version: 1.1.3
+Release: 3
License: GPL
Group: Development/Version Control
-Group(de): Entwicklung/Versionkontrolle
-Group(pl): Programowanie/Zarz±dzanie wersjami
-Source0: ftp://www.xcf.berkeley.edu/pub/xdelta/%{name}-%{version}.tar.gz
+Source0: http://dl.sourceforge.net/xdelta/%{name}-%{version}.tar.gz
+# Source0-md5: 08e964c28541605b6fe61c0dd6595516
+Patch0: %{name}-ac_fixes.patch
+Patch1: %{name}-use_sys_getopt.patch
+Patch2: %{name}-am15.patch
+Patch3: %{name}-ac25x.patch
+Patch4: %{name}-am18.patch
URL: http://www.XCF.Berkeley.EDU/~jmacd/xdelta.html
+BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: glib-devel >= 1.2.0
+BuildRequires: libtool
BuildRequires: zlib-devel
-Requires: glib >= 1.2.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
for binaries) and an RCS. These changes (deltas) are similar to the
output of the "diff" program in that they may be used to store and
transmit only the changes between files. However, unlike diff, the
-output of XDelta is not expressed in a human-readable format--XDelta
+output of XDelta is not expressed in a human-readable format - XDelta
can also also apply these deltas to a copy of the original file(s).
XDelta uses a fast, linear algorithm and performs well on both binary
and text files. XDelta typically outperforms GNU diff in both time and
a simple implementation of the Rsync algorithm and several advanced
features for implementing RCS-like file-archival with.
-The Xdelta library performs its work independently of the actual
+The XDelta library performs its work independently of the actual
format used to encode the file and is intended to be used by various
higher-level programs such as XCF's Project Revision Control System
(PRCS). PRCS is a front end for a version control toolset. Xdelta uses
a binary file delta algorithm to replace the standard diff program
used by RCS.
+%description -l es
+xdelta es como las órdenes patch y diff, pero también funciona con
+archivos binarios.
+
%description -l pl
-XDELTA (`X' od XCF) jest bibliotek± systemu kontroli wersji tworzona
-jako zamiennik RCS. Biblioteka XDELTA wykonuje ró¿ne czynno¶ci
-niezale¿nie od bierz±cego formatu plików, u¿ywanych do kodowania
-plików baz danych, systemu kontroli wersji i zaprojektowana jest do
-u¿ywania w ró¿nych wysoko-poziomowych systemach kontroli wersji jak
-PRCS.
+XDelta (`X' od XCF - eXperimental Computing Facility w Berkeley) jest
+bibliotek± i generatorem binarnych delt (ró¿nic podobnych do tych
+tworzonych przez program diff, ale dla binariów) oraz systemem
+kontroli wersji. Te zmiany (delty) s± podobne do wyj¶cia programu diff
+tak¿e w tym, ¿e mog± byæ u¿ywane do przechowywania i transmisji tylko
+zmian miêdzy plikami. Jednak, w przeciwieñstwie do diffa, wyj¶cie
+XDelty nie jest wyra¿one w postaci czytelnej dla cz³owieka; XDelta
+mo¿e tak¿e nanie¶æ te zmiany na kopiê oryginalnego pliku (plików).
+XDelta u¿ywa szybkiego, liniowego algorytmu i dobrze siê sprawdza
+zarówno na binarnych, jak i tekstowych plikach. Algorytm XDelta zwykle
+jest wydajniejszy od GNU diffa zarówno pod wzglêdem czasu jak i
+rozmiaru wygenerowanych ró¿nic, nawet dla plików czysto tekstowych.
+XDelta zawiera tak¿e przyk³adow± implementacjê algorytmy Rsync i kilka
+zaawansowanych mo¿liwo¶ci do implementowania archiwizacji plików
+podobnej do RCS.
+
+Biblioteka XDelta dzia³a dobrze niezale¿nie od formatu u¿ytego przy
+kodowaniu pliku i jest przeznaczona do u¿ywania w ró¿nych
+wysokopoziomowych programach takich jak system kontroli wersji z XCF
+(PRCS - Project Revision Control System), bêd±cy frontendem do
+zbioru narzêdzi s³u¿±cych do kontroli wersji, w którym jest u¿ywany
+algorytm binarnych ró¿nic XDelta zamiast standardowego diffa u¿ywanego
+przez RCS.
+
+%description -l pt_BR
+xdelta é como os comandos patch e diff, mas também funciona com
+arquivos binários.
%package devel
Summary: XDELTA - header files
Summary(pl): XDELTA - pliki nag³ówkowe
+Summary(pt_BR): Arquivos de desenvolvimento xdelta
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
Requires: %{name} = %{version}
%description devel
This package contains the XDELTA header files required to develop
XDELTA-based applications.
-%description -l pl devel
+%description devel -l pl
Pakiet ten zawiera pliki nag³ówkowe potrzebne przy tworzeniu aplikacji
bazuj±cych na XDELTA.
+%description devel -l pt_BR
+Esse pacote contém os arquivos de desenvolvimento do xdelta.
+
%package static
Summary: XDELTA - static library
Summary(pl): XDELTA - biblioteka statyczna
+Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com xdelta
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
Requires: %{name}-devel = %{version}
%description static
-This package contains the XDELTA static libraries
+This package contains the XDELTA static libraries.
-%description -l pl static
+%description static -l pl
Pakiet ten zawiera bibliotekê statyczn± XDELTA.
+%description static -l pt_BR
+Bibliotecas estáticas para desenvolvimento com xdelta.
+
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
%build
-autoconf
-CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
-./configure %{_target_platform}\
- --prefix=%{_prefix} \
- --x-includes=%{_prefix}/X11R6/lib/glib/include
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_infodir}
-%{__make} DESTDIR=$RPM_BUILD_ROOT install
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ m4datadir=%{_aclocaldir}
-gzip -9nf NEWS READ* ChangeLog
+%clean
+rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
%defattr(644,root,root,755)
+%doc NEWS READ*
%attr(755,root,root) %{_bindir}/xdelta
%attr(755,root,root) %{_libdir}/lib*.so.*.*
%{_mandir}/man1/*
%files devel
%defattr(644,root,root,755)
-%doc {NEWS,READ*,ChangeLog}.gz
-
+%doc ChangeLog
%attr(755,root,root) %{_bindir}/xdelta-config
-%{_includedir}/*
-
%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
+%{_aclocaldir}/*
+%{_includedir}/*
%files static
%defattr(644,root,root,755)