Группа :: Работа с файлами
Пакет: xdelta1
Главная Изменения Спек Патчи Загрузить Bugs and FR
Name: xdelta1
Version: 1.1.3
Release: alt0.M24.1
%define _includedir %_usr/include/%name
%define srcname xdelta-%version
%define lib_name libxdelta
%define lib_major 2
Summary: A binary delta generator
License: GPL
Group: File tools
Url: http://www.cs.berkeley.edu/~jmacd/xdelta.html
Packager: Dmitry V. Levin <ldv at altlinux.org>
Source: http://download.sourceforge.net/xdelta/%srcname.tar.bz2
Patch1: xdelta-1.1.3-rh-freegen.patch
Patch2: xdelta-1.1.3-rh-aclocal.patch
Patch3: xdelta-1.1.3-rh-gcc4.patch
Patch4: xdelta-1.1.3-alt-makefile.patch
Requires: %lib_name%lib_major = %version-%release
Provides: xdelta = %version
Obsoletes: xdelta
BuildRequires: glib-devel zlib-devel
%def_disable static
%{?_enable_static:BuildPreReq: glibc-devel-static}
%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 -n %lib_name%lib_major
Summary: Shared libraries for XDelta
Group: System/Libraries
%package -n %lib_name%lib_major-devel
Summary: Development libraries and include files for development with XDelta
Group: Development/C
Requires: %lib_name%lib_major = %version-%release
Provides: xdelta-devel = %version-%release
Obsoletes: xdelta-devel
%package -n %lib_name%lib_major-devel-static
Summary: Static libraries and header files for development with XDelta
Group: Development/C
Requires: %lib_name%lib_major-devel = %version-%release
%description -n %lib_name%lib_major
This package contains shared libraries required by Xdelta applications.
%description -n %lib_name%lib_major-devel
This package contains the development libraries and include files required
to develop applications using Xdelta.
%description -n %lib_name%lib_major-devel-static
This package contains static libraries required to develop statically linked
applications using Xdelta.
%prep
%setup -q -n %srcname
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
autoreconf -fisv
%configure %{subst_enable static}
%make_build all
%install
%makeinstall
%post -n %lib_name%lib_major -p %post_ldconfig
%postun -n %lib_name%lib_major -p %postun_ldconfig
%files
%_bindir/xdelta
%_mandir/man?/*
%doc AUTHORS NEWS README
%files -n %lib_name%lib_major
%_libdir/*.so.*
%files -n %lib_name%lib_major-devel
%_bindir/*-config
%_libdir/*.so
%_includedir
%_datadir/aclocal/*.m4
%if_enabled static
%files -n %lib_name%lib_major-devel-static
%_libdir/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.1.3
Release: alt0.M24.1
%define _includedir %_usr/include/%name
%define srcname xdelta-%version
%define lib_name libxdelta
%define lib_major 2
Summary: A binary delta generator
License: GPL
Group: File tools
Url: http://www.cs.berkeley.edu/~jmacd/xdelta.html
Packager: Dmitry V. Levin <ldv at altlinux.org>
Source: http://download.sourceforge.net/xdelta/%srcname.tar.bz2
Patch1: xdelta-1.1.3-rh-freegen.patch
Patch2: xdelta-1.1.3-rh-aclocal.patch
Patch3: xdelta-1.1.3-rh-gcc4.patch
Patch4: xdelta-1.1.3-alt-makefile.patch
Requires: %lib_name%lib_major = %version-%release
Provides: xdelta = %version
Obsoletes: xdelta
BuildRequires: glib-devel zlib-devel
%def_disable static
%{?_enable_static:BuildPreReq: glibc-devel-static}
%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 -n %lib_name%lib_major
Summary: Shared libraries for XDelta
Group: System/Libraries
%package -n %lib_name%lib_major-devel
Summary: Development libraries and include files for development with XDelta
Group: Development/C
Requires: %lib_name%lib_major = %version-%release
Provides: xdelta-devel = %version-%release
Obsoletes: xdelta-devel
%package -n %lib_name%lib_major-devel-static
Summary: Static libraries and header files for development with XDelta
Group: Development/C
Requires: %lib_name%lib_major-devel = %version-%release
%description -n %lib_name%lib_major
This package contains shared libraries required by Xdelta applications.
%description -n %lib_name%lib_major-devel
This package contains the development libraries and include files required
to develop applications using Xdelta.
%description -n %lib_name%lib_major-devel-static
This package contains static libraries required to develop statically linked
applications using Xdelta.
%prep
%setup -q -n %srcname
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
autoreconf -fisv
%configure %{subst_enable static}
%make_build all
%install
%makeinstall
%post -n %lib_name%lib_major -p %post_ldconfig
%postun -n %lib_name%lib_major -p %postun_ldconfig
%files
%_bindir/xdelta
%_mandir/man?/*
%doc AUTHORS NEWS README
%files -n %lib_name%lib_major
%_libdir/*.so.*
%files -n %lib_name%lib_major-devel
%_bindir/*-config
%_libdir/*.so
%_includedir
%_datadir/aclocal/*.m4
%if_enabled static
%files -n %lib_name%lib_major-devel-static
%_libdir/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь