File par2cmdline.spec of Package par2cmdline
#
# spec file for package par2cmdline
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: par2cmdline
Version: 0.8.1
Release: 0
Summary: PAR 2.0 Compatible File Verification and Repair Tool
License: GPL-2.0-only
Group: Productivity/File utilities
URL: https://github.com/Parchive/par2cmdline
Source0: https://github.com/Parchive/par2cmdline/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: automake
BuildRequires: gcc-c++
Provides: par2 = %{version}
Obsoletes: par2 < 0.4
%description
par2cmdline is a program for creating and using PAR2 files to detect
damage in data files and repair them if necessary. It can be used with
any kind of file.
%prep
%setup -q
chmod -x ChangeLog
%build
./automake.sh
%configure
%make_build
%install
%make_install
%check
%make_build check
%files
%license COPYING
%doc AUTHORS ChangeLog README
%{_bindir}/par2
%{_bindir}/par2create
%{_bindir}/par2repair
%{_bindir}/par2verify
%{_mandir}/man?/*
%changelog