File cksfv.spec of Package cksfv

#
# spec file for package cksfv
#
# Copyright (c) 2018 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:           cksfv
Version:        1.3.15
Release:        0
Summary:        Test Archives Using Information from sfv
License:        GPL-2.0-or-later
Group:          Productivity/File utilities
URL:            http://zakalwe.fi/~shd/foss/cksfv/
Source0:        http://zakalwe.fi/~shd/foss/cksfv/files/%{name}-%{version}.tar.bz2
Source1:        http://zakalwe.fi/~shd/foss/cksfv/files/%{name}-%{version}.tar.bz2.asc
Source2:        %{name}.keyring
# PATCH-FIX-UPSTREAM cksfv-1.3.14-fix_hangs.patch deb#612741 sebastien@twolife.org -- fix hangs on some paths passed to -g
Patch0:         cksfv-1.3.14-fix_hangs.patch

%description
Utility to test .sfv files. These files are commonly used to ensure
the correct retrieval or storage of data.

%prep
%setup -q
%autopatch -p0

%build
%configure \
    --package-prefix=%{buildroot}
make %{?_smp_mflags}

%install
%make_install
install -Dpm 0644 scripts/CheckSFV examples/CheckSFV

%check
make %{?_smp_mflags} check

%files
%license COPYING
%doc AUTHORS ChangeLog README.md TODO examples
%{_bindir}/%{name}
%{_mandir}/man?/*

%changelog
openSUSE Build Service is sponsored by