File vbindiff.spec of Package vbindiff
#
# spec file for package vbindiff
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015-2018 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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: vbindiff
Version: 3.0_beta5
Release: 0
Summary: Visual Binary Diff
License: GPL-2.0+
Group: Productivity/File utilities
URL: http://www.cjmweb.net/vbindiff/
Source0: https://www.cjmweb.net/vbindiff/vbindiff-3.0_beta5.tar.gz
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: ncurses-devel
%description
Displays files in hexadecimal and ASCII (or EBCDIC). It can also display two files
at once, and highlight the differences between them. Unlike diff, it works well
with large files (up to 4 GB).
%prep
%setup -q
%build
export CXXFLAGS="%{optflags}"
%if 0%{?suse_version} > 1320
export CPPFLAGS="$(pkg-config --cflags ncurses)"
%else
export CPPFLAGS="$(ncurses5-config --cflags)"
%endif
%configure
%install
%make_install
%files
%doc AUTHORS NEWS README README.PuTTY
%{_bindir}/vbindiff
%{_mandir}/man1/vbindiff.1%{ext_man}
%changelog