Group :: System/Libraries
RPM: libxdiff
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# BEGIN SourceDeps(oneline):
BuildRequires: gcc-c++
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define major 1
%define libname libxdiff%{major}
%define develname libxdiff-devel
# Matches 1.0 tag.
%global commit 9c6289c5a088bf24f18f0b7bf8acaaf643aa411d
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: libxdiff
Version: 1.0
Release: alt1_1
Summary: Create diffs/patches for text/binary files
License: LGPLv2.1+
Group: System/Libraries
URL: https://github.com/spotrh/libxdiff
Source0: https://github.com/spotrh/libxdiff/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
Patch0: %{name}-1.0-big-endian.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
Source44: import.info
%description
The LibXDiff library implements basic and yet complete functionalities
to create file differences/patches to both binary and text files. It
uses memory files as file abstraction to achieve both performance and
portability. For binary files, it implements (with some modification)
the algorithm described in "File System Support for Delta Compression"
by Joshua P. MacDonald. For text files, it follows directives described
in "An O(ND) Difference Algorithm and Its Variations" by Eugene W.
Myers. Memory files used by the library are basically a collection of
buffers that store the file content.
%package -n %{libname}
Summary: Shared libxdiff library
Group: System/Libraries
%description -n %{libname}
The LibXDiff library implements basic and yet complete functionalities
to create file differences/patches to both binary and text files. It
uses memory files as file abstraction to achieve both performance and
portability. For binary files, it implements (with some modification)
the algorithm described in "File System Support for Delta Compression"
by Joshua P. MacDonald. For text files, it follows directives described
in "An O(ND) Difference Algorithm and Its Variations" by Eugene W.
Myers. Memory files used by the library are basically a collection of
buffers that store the file content
%package -n %{develname}
Summary: Header files for libxdiff library
Group: Development/C
Requires: %{libname} = %{version}
Provides: %{name}-devel = %{version}-%{release}
%description -n %{develname}
The LibXDiff library implements basic and yet complete functionalities to
create file differences/patches to both binary and text files. It uses memory
files as file abstraction to achieve both performance and portability. For
binary files, it implements (with some modification) the algorithm described in
"File System Support for Delta Compression" by Joshua P. MacDonald. For text
files, it follows directives described in "An O(ND) Difference Algorithm and
Its Variations" by Eugene W. Myers. Memory files used by the library are
basically a collection of buffers that store the file content.
Header files for libxdiff library.
%prep
%setup -q -n %{name}-%{commit}
%patch0 -p1
%build
%configure --disable-static
%make_build
%install
%makeinstall_std
#don't ship static libraries
rm -f %{buildroot}%{_libdir}/*.*a
%files -n %{libname}
%doc AUTHORS COPYING ChangeLog
%{_libdir}/*.so.%{major}
%{_libdir}/*.so.%{major}*
%files -n %{develname}
%{_includedir}/xdiff
%{_libdir}/*.so
%{_libdir}/pkgconfig/libxdiff.pc
%changelog
…
Full changelog you can see here
BuildRequires: gcc-c++
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define major 1
%define libname libxdiff%{major}
%define develname libxdiff-devel
# Matches 1.0 tag.
%global commit 9c6289c5a088bf24f18f0b7bf8acaaf643aa411d
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: libxdiff
Version: 1.0
Release: alt1_1
Summary: Create diffs/patches for text/binary files
License: LGPLv2.1+
Group: System/Libraries
URL: https://github.com/spotrh/libxdiff
Source0: https://github.com/spotrh/libxdiff/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
Patch0: %{name}-1.0-big-endian.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
Source44: import.info
%description
The LibXDiff library implements basic and yet complete functionalities
to create file differences/patches to both binary and text files. It
uses memory files as file abstraction to achieve both performance and
portability. For binary files, it implements (with some modification)
the algorithm described in "File System Support for Delta Compression"
by Joshua P. MacDonald. For text files, it follows directives described
in "An O(ND) Difference Algorithm and Its Variations" by Eugene W.
Myers. Memory files used by the library are basically a collection of
buffers that store the file content.
%package -n %{libname}
Summary: Shared libxdiff library
Group: System/Libraries
%description -n %{libname}
The LibXDiff library implements basic and yet complete functionalities
to create file differences/patches to both binary and text files. It
uses memory files as file abstraction to achieve both performance and
portability. For binary files, it implements (with some modification)
the algorithm described in "File System Support for Delta Compression"
by Joshua P. MacDonald. For text files, it follows directives described
in "An O(ND) Difference Algorithm and Its Variations" by Eugene W.
Myers. Memory files used by the library are basically a collection of
buffers that store the file content
%package -n %{develname}
Summary: Header files for libxdiff library
Group: Development/C
Requires: %{libname} = %{version}
Provides: %{name}-devel = %{version}-%{release}
%description -n %{develname}
The LibXDiff library implements basic and yet complete functionalities to
create file differences/patches to both binary and text files. It uses memory
files as file abstraction to achieve both performance and portability. For
binary files, it implements (with some modification) the algorithm described in
"File System Support for Delta Compression" by Joshua P. MacDonald. For text
files, it follows directives described in "An O(ND) Difference Algorithm and
Its Variations" by Eugene W. Myers. Memory files used by the library are
basically a collection of buffers that store the file content.
Header files for libxdiff library.
%prep
%setup -q -n %{name}-%{commit}
%patch0 -p1
%build
%configure --disable-static
%make_build
%install
%makeinstall_std
#don't ship static libraries
rm -f %{buildroot}%{_libdir}/*.*a
%files -n %{libname}
%doc AUTHORS COPYING ChangeLog
%{_libdir}/*.so.%{major}
%{_libdir}/*.so.%{major}*
%files -n %{develname}
%{_includedir}/xdiff
%{_libdir}/*.so
%{_libdir}/pkgconfig/libxdiff.pc
%changelog
…
Full changelog you can see here