File par.spec of Package par

#
# spec file for package par
#
# 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:           par
Version:        0.8.0
Release:        0
Summary:        Parity File Generator
License:        GPL-2.0+
Group:          System/Filesystems
URL:            https://github.com/Parchive/par2cmdline
Source0:        https://github.com/Parchive/par2cmdline/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
Provides:       %{name} = 1.1
Obsoletes:      %{name} = 1.1

%description
Parchive creates extra parity data over several volumes. These can be
used to restore the complete archive after some data loss or
corruption.

%prep
%setup -q -n par2cmdline-%{version}

%build
autoreconf -fiv
%configure
make %{?_smp_mflags}

%check
make %{?_smp_mflags} check

%install
%make_install
chmod -x ChangeLog

%files
%doc README AUTHORS ChangeLog
%license COPYING
%{_bindir}/par2
%{_bindir}/par2create
%{_bindir}/par2repair
%{_bindir}/par2verify
%{_mandir}/man1/par2.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by