Sophie

Sophie

distrib > Mandriva > 7.2 > i586 > media > main-src > by-pkgid > 7f559d218c455b2c6ba8c8c482c1bdec > files > 3

xdelta-1.1.1-8mdk.src.rpm

%define version 1.1.1
%define release 8mdk

Summary: A binary delta generator
Name:	xdelta
Version: %{version}
Release: %{release}
Source0: ftp://www.xcf.berkeley.edu/pub/xdelta/%{name}-%{version}.tar.bz2
Patch0: xdelta-edsio.patch.bz2
License: GPL
Group: File tools
BuildRequires: zlib-devel
Prereq: /sbin/install-info
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildPreReq: glib-devel, zlib-devel

%description 
XDelta is a library interface and application program designed to
compute changes between files.  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.

%package devel
Summary: Static libraries and header files for development with XDelta
Group: Development/C
PreReq: /sbin/install-info
Requires: %{name}

%description devel
This package contains the static libraries and header files
required to develop applications using Xdelta.

%prep
%setup -q
%patch -p1

%build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
%configure
make all
cd libedsio 
emacs -batch -q -f batch-byte-compile edsio.el

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
%makeinstall
install -m 644 libedsio/{edsio.el,edsio.elc} \
	$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp

%post
/sbin/ldconfig
%_install_info %{name}.info

%postun -p /sbin/ldconfig

%preun
%_remove_install_info %{name}.info

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc ANNOUNCE AUTHORS COPYING NEWS README xdelta.magic
%{_bindir}/xdelta
%{_infodir}/*.info.bz2
%attr(755,root,root) %{_libdir}/lib*.so.*
%attr(644,root,root) %{_mandir}/man1/*.1.bz2

%files devel
%defattr(-,root,root)
%attr(755,root,root) %{_bindir}/xdelta-config
%attr(755,root,root) %{_bindir}/edsio-comp
%{_includedir}/*
%{_libdir}/lib*.a
%{_libdir}/lib*.la
%{prefix}/share/aclocal/xdelta.m4
%{prefix}/share/emacs/site-lisp/*

%changelog
* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.1.1-8mdk
- automatically added BuildRequires


* Wed Jul 26 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.1.1-7mdk
- fix bad script

* Tue Jul 25 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.1.1-6mdk
- BM

* Mon Apr  3 2000 Adam Lebsack <adam@mandrakesoft.com> 1.1.1-5mdk
- Release build.

* Wed Jan 12 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.1.1-4mdk
- Regnerate libtoolize.

* Thu Nov 11 1999 Giuseppe Ghibò <ghibo@linux-mandrake.com>
- rebuilt for Oxygen

* Fri Aug 20 1999 Giuseppe Ghibò <ghibo@linux-mandrake.com>
- fixed edsio-comp script.

* Tue Aug 19 1999 Giuseppe Ghibò <ghibo@linux-mandrake.com>
- First spec file for Mandrake distribution.