File xdelta3.spec of Package xdelta3

#
# spec file for package xdelta3
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           xdelta3
Version:        3.0.10
Release:        0
Summary:        A diff utility which works with binary files
License:        GPL-2.0
Group:          Productivity/Archiving/Compression
Url:            http://xdelta.org/
Source0:        https://github.com/jmacd/xdelta-devel/releases/download/v%{version}/xdelta3-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  xz-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Xdelta3 is a set of tools designed to compute changes between
binary files.  These changes (delta files) are similar to the output of the
"diff" program, in that they may be used to store and transmit only the
changes between files.  The "delta files" that Xdelta3 manages are
stored in RFC3284 (VCDIFF) format.

%prep
%setup -q

%build
sed -i -e '/python/s:2.6:2:' testing/xdelta3-regtest.py || die
sed -i -e '/python/s:2.7:2:' testing/xdelta3-test.py || die
%configure
make CFLAGS="%{optflags} -Wall -Wshadow -fno-builtin" %{?_smp_mflags}

%check
./xdelta3regtest

%install
strip %{name}
install -D -m 0755 %{name} %{buildroot}/%{_bindir}/%{name}

%files
%defattr(-, root, root)
%doc COPYING
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by