X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=xdelta.spec;h=9637c1495b76cb05906dab7c9073f99dcaf47db1;hb=d2b953cabbc7f5da8786d2de286b9aa25c84bf4b;hp=365280d86be2afb22fcf6691978c69986a6ac210;hpb=7a8abf2e4caf376cdb2acb7c4e1eb74d29e2668e;p=packages%2Fxdelta.git diff --git a/xdelta.spec b/xdelta.spec index 365280d..9637c14 100644 --- a/xdelta.spec +++ b/xdelta.spec @@ -1,214 +1,162 @@ 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.0.0 -Release: 3d -Copyright: GPL +Version: 1.1.3 +Release: 3 +License: GPL Group: Development/Version Control -Group(pl): Programowanie/Kontrola Wersji -Source: ftp://www.xcf.berkeley.edu/pub/xdelta/%{name}-%{version}.tar.gz -Patch0: xdelta-info.patch -URL: http://www.XCF.Berkeley.EDU/~jmacd/xdelta.html -PreReq: /sbin/install-info -BuildRoot: /tmp/%{name}-%{version}-root +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 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -XDELTA (`X' for XCF) is a version-control library and file-format designed as -a replacement for RCS. The XDELTA library performs its work independently of -the actual file-format used to encode the version-file and is intended to be -used by various higher-level programs such as PRCS. - -XDELTA uses a binary file-delta algorithm to replace the standard diff -program used by RCS. +XDelta (X for XCF: the eXperimental Computing Facility at Berkeley) is +a library interface and binary delta generator (like a diff program +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 +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 +generated-delta-size, even for plain text files. XDelta also includes +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 +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 u¿ywa binarnego formatu zamiast standardowego diif-a u¿ywanego przez -RCS. +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(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(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 -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ -./configure \ - --prefix=/usr \ - --x-includes=/usr/X11R6/lib/glib/include -make +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} +%configure + +%{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/usr/info -make prefix=$RPM_BUILD_ROOT/usr install-strip +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT \ + m4datadir=%{_aclocaldir} -install doc/xdelta.info $RPM_BUILD_ROOT/usr/info - -gzip -9nf $RPM_BUILD_ROOT/usr/{info/*.info*,man/man1/*} - -bzip2 -9 NEWS READ* xdelta.magic ChangeLog +%clean +rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig -%post devel -/sbin/install-info /usr/info/xdelta.info.gz /etc/info-dir - -%preun devel -if [ $1 = 0 ]; then - /sbin/install-info --delete /usr/info/xdelta.info.gz /etc/info-dir -fi - -%clean -rm -rf $RPM_BUILD_ROOT - %files %defattr(644,root,root,755) - -%attr(755,root,root) /usr/bin/* -%attr(755,root,root) /usr/lib/*.so.* -%attr(644,root, man) /usr/man/man1/* +%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.bz2 READ* xdelta.magic.bz2 ChangeLog.bz2 - -/usr/include/* -/usr/info/xdelta.* - -%attr(755,root,root) /usr/lib/*.so +%doc ChangeLog +%attr(755,root,root) %{_bindir}/xdelta-config +%attr(755,root,root) %{_libdir}/lib*.so +%{_libdir}/lib*.la +%{_aclocaldir}/* +%{_includedir}/* %files static -%attr(755,root,root) /usr/lib/lib*.a - -%changelog -* Sat Jan 23 1999 Tomasz K³oczko - [1.0.0-3d] -- removed xdelta.magic from doc (this is now included in latest file packa). -- changed --x-includes to /usr/X11R6/lib/glib/include, -- standarized {un}registering info pages (added xdelta-info.patch), -- gzipping instead bzipping2 man pages. - -* Sat Jan 23 1999 Wojtek ¦lusarczyk -- added Group(pl), -- compressed man pages && documentation (bizp2), -- fixed %post && %preun, -- fixed static-subpackage. - -* Wed Dec 23 1998 Tomasz K³oczko - [1.0.0-3] -- standarized {un}registering info pages, -- xdelta info pages moved to section "Version Control:", -- added gzipping man pages, -- added URL, -- added using LDFLAGS="-s" to ./configure enviroment. - -* Thu Nov 26 1998 Tomasz K³oczko - [1.0.0-2] -- fixed: removed /usr/info/dir from devel, -- removed xdelta.magic and non existing doc/xdelta.txt from %doc, -- fixed --entry text on {un}registering info page for libtool in %post - %preun in devel. - -* Sat Oct 03 1998 Wojtek ¦lusarczyk - [0.23-1d] -- build against Tornado, -- fixed pl translation, -- fixed files permissions, -- minor modifications of the spec file. - -* Mon Aug 10 1998 Tomasz K³oczko - [0.22-2] -- added pl translation, -- added static subpackage, -- all %doc moved to devel, -- cosmetic changes in %files. - -* Tue Jul 07 1998 Arne Coucheron - [0.22-1] -- removed running of automake, problem fixed in sources - -* Sat Jul 04 1998 Arne Coucheron - [0.21-1] -- added xdelta.magic to %doc -- added running of automake before configure to make this version build -- changed %defattr - -* Sat Jun 27 1998 Arne Coucheron - [0.20-1] - -* Sun Jun 7 1998 Tomasz K³oczko - [0.19-3] -- fixed configuring sources by add --x-includes=/usr/lib/glib/include - configure parameter (for glibconfig.h), -- changed Source url to ftp://www.xcf.berkeley.edu/pub/xdelta/ -- fixed %defattr macros (thanks to René Wuttke ). - -* Wed May 6 1998 Tomasz K³oczko - [0.19-2] -- %%{version} macro instead %%{PACKAGE_VERSION}, -- added -q %setup parameter, -- added using %%{name} macro in Buildroot, Source and Rquires in devel - fields. - -* Sun May 03 1998 Arne Coucheron - [0.19-1] -- removed some older changelogs - -* Wed Apr 28 1998 Tomasz K³oczko - [0.18-2] -- removed COPYING from %doc (copyright statment is in Copyright field), -- /sbin/ldconfig is now -p parameter in %post, %postun, -- replaced "mkdir -p" with "install -d" in %install, -- added "Requires: xdelta = %%{PACKAGE_VERSION}" for devel, -- added using %defattr macro in %files (requires rpm >= 2.4.99), -- added using predefined macro %%{PACKAGE_VERSION} instead %{version}, -- changed permission on /usr/lib/lib*.so links to 644, -- removed /usr/lib/libxdelta.la from devel, -- added striping /usr/lib/lib*.so.*.* libs, -- Buildroot changed to /tmp/xdelta-%%{PACKAGE_VERSION}-root. - -* Fri Apr 24 1998 Arne Coucheron - [0.18-1] -- removed the fakeglib patch - -* Wed Apr 08 1998 Arne Coucheron - [0.15-2] -- splitted the package into a main and devel package - -* Sat Apr 04 1998 Arne Coucheron - [0.15-1] +%defattr(644,root,root,755) +%{_libdir}/lib*.a