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/
#
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
Name: par2cmdline
Version: 0.8.1
Release: 0
Summary: Create and use partiy files to secure data against loss
License: GPL-2.0-only
Group: Productivity/Archiving/Backup
URL: https://github.com/Parchive/par2cmdline
#Fork of original Url: http://sourceforge.net/projects/parchive/
Source: https://github.com/Parchive/par2cmdline/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: automake
BuildRequires: dos2unix
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
Provides: par2 = %{version}
Obsoletes: par2 < %{version}
%description
par2 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 AUTHORS ChangeLog ROADMAP README
%build
autoreconf -fi
%configure
%make_build
%install
%make_install
%check
%make_build check
%files
%doc AUTHORS ChangeLog ROADMAP README
%{_bindir}/par2
%{_bindir}/par2create
%{_bindir}/par2repair
%{_bindir}/par2verify
%{_mandir}/*/par2.1%{?ext_man}
%changelog